/* ==========================================================================
   Igarapé dos Saberes — site público
   Baseado em "Fundamentos Visuais": Manrope, verde (core), amarelo pastel
   (acento), cantos de 24px, botões em pílula.
   Mobile-first: os estilos-base valem para telas pequenas e crescem em
   @media (min-width).
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Valores em hex para navegadores antigos; oklch logo abaixo. */
  --green-900: #12301f;
  --green-800: #1a3d28;
  --green-700: #1f4a30;
  --green-600: #2d5a3d;
  --green-500: #4a7f5c;
  --green-200: #c5e3cc;
  --green-100: #e6f3e7;
  --yellow-600: #94700f;
  --yellow-400: #dcc06a;
  --yellow-300: #f0d98c;
  --yellow-100: #fbf2d5;
  --yellow-ink: #453a16;
  --ink: #0b0b0b;
  --ink-2: #5b5f5c;
  --ink-3: #6e736f;
  --line: #dfe2df;
  --bg: #f2f4f2;
  --surface: #ecefec;
  --white: #fff;

  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --pill: 980px;
  --nav-h: 60px;
  --gutter: clamp(20px, 4vw, 32px);
  --section-y: clamp(56px, 9vw, 110px);
  --container: 1120px;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@supports (color: oklch(0% 0 0)) {
  :root {
    --green-900: oklch(20% 0.05 152);
    --green-800: oklch(24% 0.06 152);
    --green-700: oklch(30% 0.09 152);
    --green-600: oklch(38% 0.09 152);
    --green-500: oklch(52% 0.1 152);
    --green-200: oklch(88% 0.05 150);
    --green-100: oklch(95% 0.03 145);
    --yellow-600: oklch(45% 0.1 85);
    --yellow-400: oklch(80% 0.1 92);
    --yellow-300: oklch(89% 0.08 95);
    --yellow-100: oklch(96% 0.04 95);
    --yellow-ink: oklch(30% 0.05 90);
    --ink: oklch(15% 0 0);
    --ink-2: oklch(42% 0.005 145);
    --ink-3: oklch(48% 0.005 145);
    --line: oklch(90% 0.005 145);
    --bg: oklch(96% 0.003 145);
    --surface: oklch(94% 0.005 145);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-700); }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--green-500); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--green-600); color: #fff; padding: 10px 16px; border-radius: var(--pill);
  font-weight: 600; font-size: 14px;
}
.skip-link:focus { top: 10px; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(760px + 2 * var(--gutter)); }
.container--tight { max-width: calc(640px + 2 * var(--gutter)); }
.center { text-align: center; }
.section { padding-block: var(--section-y); }
.section--flush { padding-bottom: clamp(40px, 6vw, 64px); }
.section--list { padding-bottom: clamp(64px, 10vw, 120px); }

.band--neutral { background: var(--surface); }
.band--yellow { background: var(--yellow-100); }
.band { padding-block: clamp(56px, 8vw, 88px); }
.band--tall { padding-block: clamp(64px, 9vw, 96px); }
.band--dark { background: var(--green-900); color: #fff; }

.section__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 8px 24px; margin-bottom: clamp(20px, 3vw, 28px);
}

/* ---------- Tipografia ---------- */
.display { font-size: clamp(48px, 11vw, 88px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; text-wrap: balance; }
.display--md { font-size: clamp(36px, 7vw, 56px); letter-spacing: -0.02em; line-height: 1.04; margin-block: 14px 16px; }
.h1 { font-size: clamp(27px, 4.4vw, 38px); font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; max-width: 620px; text-wrap: balance; }
.h1--sm { font-size: clamp(25px, 4vw, 34px); }
.center .h1, .h1.center { max-width: none; }
.h1.center { margin-bottom: clamp(24px, 4vw, 40px); }
.h2 { font-size: clamp(20px, 2.8vw, 24px); font-weight: 700; line-height: 1.25; }
.h2--lg { font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -0.015em; }
.lead { font-size: clamp(16px, 2vw, 18px); color: var(--ink-2); line-height: 1.55; max-width: 560px; }
.center .lead { margin-inline: auto; }
.body { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.muted { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-600); }
.eyebrow--light { color: var(--yellow-300); }
.more { font-size: 15px; font-weight: 600; white-space: nowrap; }
.more--back { display: inline-block; margin-bottom: 20px; }

/* ---------- Botões e etiquetas ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 26px; border-radius: var(--pill);
  border: 1.5px solid transparent; font-size: 15px; font-weight: 600; line-height: 1.2;
  cursor: pointer; text-align: center; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 36px; padding: 8px 20px; font-size: 12px; }
.btn--md { min-height: 42px; padding: 10px 22px; font-size: 14px; }
.btn--lg { min-height: 50px; padding: 14px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green-600); color: #fff; }
.btn--primary:hover { background: var(--green-700); color: #fff; }
.btn--accent { background: var(--yellow-300); color: var(--yellow-ink); }
.btn--accent:hover { background: var(--yellow-400); color: var(--yellow-ink); }
.btn--outline { border-color: var(--green-600); color: var(--green-600); }
.btn--outline:hover { background: var(--green-600); color: #fff; }
.btn--ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn--white { background: #fff; color: var(--green-900); font-weight: 700; }
.btn--white:hover { background: var(--yellow-100); color: var(--green-900); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.btn-row--center { justify-content: center; }

.link-btn { background: none; border: 0; padding: 8px 4px; cursor: pointer; color: var(--ink-3); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--green-600); }

.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--pill); text-transform: uppercase; letter-spacing: .02em; }
.tag--green { background: var(--green-100); color: var(--green-600); }
.tag--yellow { background: var(--yellow-100); color: var(--yellow-600); }
.tag--neutral { background: var(--surface); color: var(--ink-2); }
.tag--highlight { background: var(--yellow-300); color: var(--yellow-ink); font-size: 12px; padding: 5px 12px; }

/* ---------- Mídia ---------- */
.media { width: 100%; height: 100%; object-fit: cover; }
.media--empty {
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: repeating-linear-gradient(135deg, #e3e7e3 0 12px, #dde2dd 12px 24px);
  color: var(--ink-3); font-size: 12px; font-weight: 600; text-align: center; line-height: 1.4;
}

/* ---------- Navegação fixa ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  background: rgba(247, 249, 247, .9);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
body { padding-top: var(--nav-h); }
.nav__brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.nav__brand:hover { color: var(--ink); }
.nav__brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.nav__brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav__end { display: flex; align-items: center; gap: 8px; }
.nav__cta { display: none; }

.nav__toggle {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 12px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu em painel no celular */
.nav__links {
  position: fixed; inset: var(--nav-h) 0 auto 0; max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  display: flex; flex-direction: column; padding: 8px var(--gutter) 24px;
  background: rgba(247, 249, 247, .98); border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .25);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav.is-open .nav__links { visibility: visible; opacity: 1; transform: none; }
.nav__links a:not(.btn) {
  padding: 16px 4px; border-bottom: 1px solid var(--line);
  font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
}
.nav__links a.is-active { color: var(--green-600); }
.nav__cta-mobile { margin-top: 20px; min-height: 48px; font-size: 15px; }

@media (min-width: 900px) {
  .nav { padding-inline: 40px; }
  .nav__toggle, .nav__cta-mobile { display: none; }
  .nav__cta { display: inline-flex; }
  .nav__links {
    position: static; flex-direction: row; gap: clamp(18px, 2.4vw, 32px); padding: 0; overflow: visible;
    background: none; border: 0; box-shadow: none; visibility: visible; opacity: 1; transform: none;
  }
  .nav__links a:not(.btn) { padding: 6px 0; border: 0; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #333a35; }
  .nav__links a:not(.btn):hover { color: var(--green-600); }
}

/* ---------- Herói ---------- */
.hero { position: relative; min-height: min(88vh, 900px); min-height: min(88svh, 900px); display: flex; align-items: flex-end; background: var(--green-900); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg.media--empty { background: linear-gradient(160deg, var(--green-600), var(--green-900)); color: rgba(255, 255, 255, .5); align-items: flex-start; padding-top: 40px; }
.hero__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 38, 25, calc(var(--overlay, .55) * .2)) 0%, rgba(8, 26, 16, var(--overlay, .55)) 100%);
}
.hero__content { position: relative; width: 100%; padding: 120px var(--gutter) clamp(36px, 7vw, 64px); color: #fff; }
.hero__lead { font-size: clamp(16px, 2.2vw, 19px); font-weight: 500; line-height: 1.5; max-width: 540px; margin: 14px 0 28px; color: #f1f4f1; }
@media (min-width: 900px) { .hero__content { padding-inline: 48px; } }
@media (max-width: 420px) { .hero .btn { flex: 1 1 100%; } }

/* ---------- Destaque (imagem + texto) ---------- */
.feature { display: grid; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.feature--yellow { background: var(--yellow-100); }
.feature--green { background: var(--green-100); }
.feature__text { padding: clamp(28px, 5vw, 56px) clamp(24px, 4.5vw, 48px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; }
.feature__text p { font-size: clamp(15px, 1.8vw, 17px); color: var(--ink-2); max-width: 420px; margin-bottom: 6px; }
.feature__media { min-height: 240px; aspect-ratio: 4 / 3; order: -1; }
@media (min-width: 800px) {
  .feature { grid-template-columns: 1.05fr 1fr; }
  .feature__media { order: 0; aspect-ratio: auto; min-height: 420px; }
  .feature--image-left { grid-template-columns: 1fr 1.05fr; }
  .feature--image-left .feature__media { order: -1; }
}

/* ---------- Vídeo em tela cheia ---------- */
.video-band { position: relative; min-height: clamp(420px, 100svh, 900px); background: #0b0b0a; color: #fff; display: flex; align-items: flex-end; overflow: hidden; }
.video-band__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-band__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .7) 100%); }
.video-band__text { position: relative; padding: clamp(24px, 5vw, 48px); max-width: 720px; }
.video-band__text .eyebrow { margin-bottom: 10px; }
.video-band__text p { margin-top: 10px; font-size: clamp(15px, 1.9vw, 17px); color: #eef1ee; max-width: 560px; }

/* ---------- Linha do tempo ---------- */
.timeline { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.timeline__item { border-top: 3px solid var(--green-600); padding-top: 16px; }
.timeline__item:nth-child(even) { border-top-color: var(--yellow-400); }
.timeline__year { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.timeline__title { font-size: 15px; font-weight: 700; margin: 8px 0 6px; }
.timeline__item p { font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* ---------- Números ---------- */
.stats { display: grid; gap: 36px 24px; grid-template-columns: repeat(2, 1fr); text-align: center; }
.stats__item { display: flex; flex-direction: column-reverse; }
.stats dd { font-size: clamp(34px, 6vw, 48px); font-weight: 800; color: var(--yellow-300); letter-spacing: -0.02em; line-height: 1.1; }
.stats dt { font-size: 14px; color: #dfe9e1; margin-top: 8px; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }

/* ---------- Cartões ---------- */
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; color: inherit; transition: transform .25s, box-shadow .25s; }
a.card:hover { color: inherit; transform: translateY(-3px); box-shadow: 0 16px 40px -16px rgba(20, 30, 24, .3); }
.card__media { height: auto; aspect-ratio: 16 / 10; }
.card__body { padding: 18px; }
.card__body h3 { font-size: 16px; font-weight: 700; margin: 10px 0 4px; line-height: 1.3; }
.card__body > h3:first-child { margin-top: 0; }
.card__body p { font-size: 13px; color: var(--ink-2); line-height: 1.45; }

.card--lg { border-radius: var(--radius-lg); }
.card--lg .card__media { aspect-ratio: 16 / 9; }
.card--lg .card__body { padding: clamp(22px, 3.5vw, 32px); }
.card--lg h3 { font-size: 22px; margin: 0 0 8px; }
.card--lg p { font-size: 15px; margin-bottom: 20px; }

.card-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
.card-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.explore { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }

/* ---------- Galeria ---------- */
.gallery { display: grid; gap: 6px; grid-template-columns: 1fr; }
.gallery > * { aspect-ratio: 4 / 3; height: auto; }
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery > :first-child { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
  .gallery--1 > *, .gallery--2 > :first-child, .gallery--4 > :first-child, .gallery--6 > :first-child { grid-column: auto; aspect-ratio: 4 / 3; }
  .gallery--1 { grid-template-columns: 1fr; }
}
@media (min-width: 1000px) {
  .gallery { height: 520px; grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-columns: 1.4fr; }
  .gallery > *, .gallery > :first-child { grid-column: auto; aspect-ratio: auto; height: 100%; }
  .gallery--4, .gallery--5, .gallery--6 { height: 400px; }
}

/* ---------- Citação ---------- */
.quote { text-align: center; }
.quote blockquote { font-size: clamp(22px, 3.8vw, 32px); font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; text-wrap: balance; }
.quote blockquote::before { content: '“'; }
.quote blockquote::after { content: '”'; }
.quote figcaption { margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--yellow-600); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Comparação ---------- */
.compare { display: grid; gap: 24px 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.compare .media { border-radius: var(--radius-lg); aspect-ratio: 16 / 10; height: auto; }
.compare figcaption { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Texto + imagem ---------- */
.split { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
.split .h1 { margin: 14px 0 18px; }
.split__media { border-radius: var(--radius-lg); aspect-ratio: 16 / 10; height: auto; }
@media (min-width: 800px) { .split { grid-template-columns: 1.1fr 1fr; } }

/* ---------- Lista em faixa escura ---------- */
.heritage { display: grid; gap: 24px 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.heritage li { border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 18px; }
.heritage strong { display: block; font-size: 17px; font-weight: 700; }
.heritage span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: #d3dfd6; }

/* ---------- Chamada final ---------- */
.section.center .h1 { margin: 0 auto 18px; }
.section.center .lead { margin-bottom: 28px; }
@media (max-width: 480px) { .btn-row--center .btn { flex: 1 1 100%; } }

/* ---------- Cabeçalho de página ---------- */
.page-head { padding: clamp(40px, 7vw, 72px) 0 clamp(28px, 4vw, 48px); }

/* ---------- Quadrinhos: lista ---------- */
.featured {
  display: grid; border-radius: 28px; overflow: hidden; background: var(--green-900); color: #fff;
  box-shadow: 0 20px 60px -20px rgba(18, 48, 31, .5); transition: transform .3s, box-shadow .3s;
}
.featured:hover { color: #fff; transform: translateY(-4px); box-shadow: 0 28px 70px -18px rgba(18, 48, 31, .55); }
.featured__text { padding: clamp(28px, 5vw, 56px) clamp(24px, 4.6vw, 52px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.featured__text .h1 { margin: 18px 0 14px; }
.featured__text p { font-size: 16px; line-height: 1.6; color: #d8e4da; max-width: 420px; margin-bottom: 28px; }
.featured__media { aspect-ratio: 16 / 10; height: auto; order: -1; }
.featured__media.media--empty { background: var(--green-700); color: rgba(255, 255, 255, .6); }
@media (min-width: 800px) {
  .featured { grid-template-columns: 1.15fr 1fr; }
  .featured__media { order: 0; aspect-ratio: auto; height: 100%; min-height: 380px; }
}

.comic-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.comic-card { display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; color: inherit; transition: transform .25s, box-shadow .25s; }
a.comic-card:hover { color: inherit; transform: translateY(-3px); box-shadow: 0 16px 40px -16px rgba(20, 30, 24, .3); }
.comic-card__cover { position: relative; aspect-ratio: 16 / 10; }
.comic-card--soon .media { filter: saturate(.85); }
.comic-card__soon { position: absolute; inset: 0; background: rgba(10, 10, 10, .4); display: flex; align-items: center; justify-content: center; }
.comic-card__soon span { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(20, 28, 22, .6); padding: 8px 18px; border-radius: var(--pill); }
.comic-card__body { padding: 24px; }
.comic-card__body h3 { font-size: 21px; font-weight: 700; margin: 12px 0 6px; line-height: 1.25; }
.comic-card__body > h3:first-child { margin-top: 0; }
.comic-card__body p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* ---------- Textos ---------- */
.article__cover .media { border-radius: var(--radius-lg); aspect-ratio: 16 / 8; height: auto; margin-bottom: clamp(28px, 5vw, 48px); }
.article .prose { padding-bottom: var(--section-y); }
.notice { margin-top: 18px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--yellow-100); color: var(--yellow-ink); font-size: 14px; font-weight: 600; }

.prose { font-size: 17px; line-height: 1.7; color: #2d312e; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; margin-top: 1.8em; color: var(--ink); }
.prose h3 { font-size: 20px; font-weight: 700; margin-top: 1.6em; color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose blockquote { border-left: 3px solid var(--yellow-400); padding: 4px 0 4px 18px; font-weight: 600; color: var(--ink); }
.prose img { border-radius: var(--radius-sm); height: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; font-size: 14px; font-weight: 600; }
.pagination .is-disabled { color: #a3a8a4; }
.pagination__status { color: var(--ink-3); }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 28px; }
.footer__grid { display: grid; gap: 32px 40px; grid-template-columns: 1fr 1fr; }
.footer__grid > :first-child { grid-column: 1 / -1; }
.footer__title { font-size: 17px; font-weight: 700; }
.footer__text { font-size: 13px; color: var(--ink-2); max-width: 300px; margin-top: 10px; line-height: 1.5; }
.footer__heading { font-size: 12px; font-weight: 700; color: #474c48; margin-bottom: 12px; }
.footer__links { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.footer__links a { display: inline-block; padding: 4px 0; color: #474c48; }
.footer__links a:hover { color: var(--green-600); }
.footer__legal { margin-top: 32px; padding-top: 18px; font-size: 12px; color: var(--ink-3); position: relative; }
.footer__legal::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
@media (min-width: 720px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer__grid > :first-child { grid-column: auto; }
}

/* ---------- Animação de entrada ---------- */
/* O JS só esconde (.is-waiting) o que está abaixo da dobra; sem JS tudo fica visível. */
[data-reveal] { transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-waiting { opacity: 0; transform: translateY(28px); }

/* ==========================================================================
   Leitor de quadrinhos
   ========================================================================== */
body.is-reader { padding-top: 0; background: #000; overflow: hidden; overscroll-behavior: none; }
.reader { position: fixed; inset: 0; background: #0a0a0a; color: #fff; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; outline: none; }
.reader * { -webkit-tap-highlight-color: transparent; }

.reader__top {
  position: absolute; inset: 0 0 auto 0; z-index: 20; display: flex; flex-direction: column; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 28px max(14px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 100%); pointer-events: none;
}
.reader__bars { display: flex; gap: 4px; }
.reader__bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .28); transition: background-color .25s; }
.reader__bars i.is-done { background: #fff; }
.reader__bars--compact { gap: 0; background: rgba(255, 255, 255, .28); border-radius: 2px; height: 3px; overflow: hidden; }
.reader__bars--compact i { flex: none; border-radius: 0; background: #fff; transition: width .25s; }
.reader__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: auto; }
.reader__title { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; font-weight: 700; }
.reader__title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader__tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.reader__counter { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .78); font-variant-numeric: tabular-nums; margin-right: 2px; }
.reader__btn {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s;
}
.reader__btn:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.reader__btn .off, .reader__btn[aria-pressed='false'] .on { display: none; }
.reader__btn[aria-pressed='false'] .off { display: block; }

.reader__stage { position: absolute; inset: 0; }
.reader__slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: calc(76px + env(safe-area-inset-top)) 12px calc(52px + env(safe-area-inset-bottom));
  transition: transform .35s cubic-bezier(.22, .61, .36, 1); will-change: transform;
}
.reader.is-dragging .reader__slide { transition: none; }
.reader__slide img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  transition: transform .3s ease; transform-origin: center; -webkit-user-drag: none; pointer-events: none;
}
.reader.is-panning .reader__slide img { transition: none; }
.reader.is-zoomed .reader__stage { cursor: grab; }
.reader__placeholder {
  width: min(100%, 560px); height: 100%; max-height: 760px; border-radius: 20px; padding: 28px;
  background: linear-gradient(160deg, #2d5a3d, #12301f); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
}
.reader__placeholder b { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #f0d98c; }
.reader__placeholder span { font-size: clamp(17px, 3vw, 22px); font-weight: 700; line-height: 1.35; max-width: 360px; }
.reader__placeholder small { font-size: 12px; color: rgba(255, 255, 255, .6); }
@media (min-width: 800px) { .reader__slide { padding-inline: 84px; } }

.reader__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 15; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; cursor: pointer; display: none; align-items: center; justify-content: center;
}
.reader__arrow:hover { background: rgba(255, 255, 255, .26); }
.reader__arrow--prev { left: 18px; }
.reader__arrow--next { right: 18px; }
.reader__arrow[disabled] { opacity: 0; pointer-events: none; }
@media (hover: hover) and (min-width: 800px) { .reader__arrow { display: flex; } }

.reader__hint { position: absolute; inset: auto 0 0 0; padding: 0 16px calc(14px + env(safe-area-inset-bottom)); display: flex; justify-content: center; pointer-events: none; transition: opacity .4s; }
.reader__hint span { background: rgba(255, 255, 255, .12); font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: var(--pill); letter-spacing: .02em; text-align: center; }
.reader.is-quiet .reader__hint { opacity: 0; }

.reader__end { position: absolute; inset: 0; z-index: 30; background: rgba(8, 26, 16, .94); display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.reader__end[hidden] { display: none; }
.reader__end .h1 { margin: 12px auto 28px; }
.reader__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: rgba(255, 255, 255, .7); }

/* ==========================================================================
   Jogo da memória
   ========================================================================== */
.game { min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; align-items: center; padding: clamp(20px, 4vw, 36px) clamp(14px, 3vw, 24px) 40px; }
.game__empty { margin-block: auto; }
.game__empty .lead { margin-block: 14px 24px; }
.game__head { width: 100%; max-width: 900px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 16px; margin-bottom: 18px; }
.game__title { font-size: clamp(20px, 4vw, 26px); font-weight: 800; letter-spacing: -0.01em; margin-top: 2px; line-height: 1.2; }
.game__score { display: flex; gap: clamp(16px, 4vw, 24px); text-align: center; }
.game__score dd { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.game__score dt { font-size: 11px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; }
.game__score .is-accent dd { color: var(--green-600); }
.game__progress { width: 100%; max-width: 900px; height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; margin-bottom: clamp(20px, 4vw, 32px); }
.game__progress div { height: 100%; width: 0; background: var(--green-600); border-radius: 4px; transition: width .4s ease; }

/* O tabuleiro calcula o tamanho da carta para caber na largura e na altura da tela. */
.game__board {
  --cols: 4; --rows: 2; --gap: clamp(8px, 2vw, 16px);
  --size: min(150px, calc((100vw - 2 * clamp(14px, 3vw, 24px) - (var(--cols) - 1) * var(--gap)) / var(--cols)), calc((100svh - 300px - (var(--rows) - 1) * var(--gap)) / var(--rows)));
  display: grid; grid-template-columns: repeat(var(--cols), max(64px, var(--size))); gap: var(--gap); justify-content: center;
}
.game__board[data-cols='2'] { --size: min(180px, calc((100vw - 60px - var(--gap)) / 2), calc((100svh - 300px - (var(--rows) - 1) * var(--gap)) / var(--rows))); }
.game__actions { margin-top: 28px; }

.mcard { position: relative; aspect-ratio: 1; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 18px; perspective: 800px; }
.mcard__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.3, .7, .3, 1), opacity .3s; }
.mcard.is-open .mcard__inner { transform: rotateY(180deg); }
.mcard.is-matched { cursor: default; }
.mcard.is-matched .mcard__inner { opacity: .55; }
.mcard.is-open { cursor: default; }
.mcard__face { position: absolute; inset: 0; border-radius: clamp(12px, 2.4vw, 18px); backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.mcard__back {
  background: linear-gradient(145deg, var(--green-600), var(--green-800)); box-shadow: 0 6px 16px -6px rgba(18, 48, 31, .4);
  display: flex; align-items: center; justify-content: center; font-size: clamp(24px, 6vw, 40px); font-weight: 800; color: rgba(240, 222, 160, .85);
}
.mcard:not(.is-open):hover .mcard__back { filter: brightness(1.12); }
.mcard__front { transform: rotateY(180deg); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; padding: clamp(5px, 1.2vw, 10px); gap: clamp(3px, 1vw, 8px); }
.mcard__front .media { flex: 1; min-height: 0; border-radius: clamp(8px, 1.8vw, 14px); font-size: 0; }
.mcard__front span { font-size: clamp(9.5px, 2.2vw, 12px); font-weight: 700; text-align: center; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mcard.is-wrong .mcard__inner { animation: shake .4s .35s; }
@keyframes shake { 25% { translate: -5px 0; } 75% { translate: 5px 0; } }

.modal { position: fixed; inset: 0; z-index: 200; background: rgba(10, 10, 10, .58); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .2s; }
.modal[hidden] { display: none; }
.modal__box { background: #fff; border-radius: 28px; width: 100%; max-width: 640px; max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; animation: pop .25s; }
.modal__box--sm { max-width: 420px; }
.modal__media { aspect-ratio: 16 / 8; }
.modal__media:empty { display: none; }
.modal__body { padding: clamp(22px, 5vw, 36px); }
.modal__box--sm .modal__body { padding: clamp(28px, 6vw, 44px); }
.modal__body h2 { font-size: clamp(22px, 4vw, 28px); font-weight: 800; letter-spacing: -0.015em; margin: 14px 0 12px; line-height: 1.2; }
.modal__body p { font-size: 16px; line-height: 1.6; color: #3d423e; margin-bottom: 24px; }
.modal__video { width: 100%; border-radius: 16px; background: #000; margin-bottom: 24px; aspect-ratio: 16 / 9; }
.modal__video[hidden] { display: none; }
.modal__score { font-size: 52px; font-weight: 800; margin: 12px 0; color: var(--green-600); line-height: 1.1; }
.modal__score--light { color: var(--yellow-300); font-size: clamp(40px, 9vw, 56px); margin: 16px 0 28px; }
.modal__meta { display: flex; justify-content: center; gap: 28px; margin-bottom: 28px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.modal--final { background: rgba(14, 38, 25, .95); color: #fff; }
.modal--final .h1 { font-size: clamp(28px, 6vw, 42px); margin: 16px auto 0; max-width: 480px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* ---------- Página de erro ---------- */
.error-page { min-height: 100vh; min-height: 100svh; margin-top: calc(-1 * var(--nav-h)); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.error-page .h1 { margin: 12px auto; }
.error-page .lead { margin: 0 auto 28px; }

/* ---------- Preferências do usuário ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal].is-waiting { opacity: 1; transform: none; }
}

@media print {
  .nav, .footer, .skip-link { display: none; }
  body { padding-top: 0; background: #fff; }
}

/* ==========================================================================
   Blocos adicionais
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.section--compact { padding-block: clamp(40px, 6vw, 64px); }
.container--media { max-width: calc(920px + 2 * var(--gutter)); }
.section__intro { margin-bottom: clamp(22px, 3.5vw, 36px); }
.section__intro:empty { display: none; }
.section__intro .eyebrow { margin-bottom: 10px; }
.section__intro .lead { margin-top: 12px; }
.section__intro.center .h1 { margin-inline: auto; }

/* ---------- Faixa com imagem ---------- */
.banner { position: relative; min-height: clamp(340px, 52vw, 520px); display: flex; align-items: center; background: var(--green-900); color: #fff; overflow: hidden; }
.banner__bg { position: absolute; inset: 0; }
.banner__bg.media--empty { background: linear-gradient(120deg, var(--green-600), var(--green-900)); color: rgba(255, 255, 255, .45); align-items: flex-start; justify-content: flex-end; }
.banner__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 26, 16, var(--overlay, .6)) 0%, rgba(8, 26, 16, calc(var(--overlay, .6) * .45)) 100%); }
.banner__content { position: relative; padding-block: clamp(40px, 7vw, 72px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.banner__content p { font-size: clamp(15px, 2vw, 18px); line-height: 1.55; max-width: 520px; color: #eef2ee; margin-bottom: 8px; }

/* ---------- Curiosidades ---------- */
.facts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.fact { border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 30px); background: var(--green-100); min-height: 200px; display: flex; flex-direction: column; }
.fact--yellow { background: var(--yellow-100); }
.fact--white { background: #fff; border: 1px solid var(--line); }
.fact--dark { background: var(--green-900); color: #fff; }
.fact__n { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--green-600); margin-bottom: auto; padding-bottom: 28px; }
.fact--yellow .fact__n { color: var(--yellow-600); }
.fact--dark .fact__n { color: var(--yellow-300); }
.fact h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 8px; text-wrap: balance; }
.fact p { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.fact--dark p { color: #d3dfd6; }

/* ---------- Personagens ---------- */
.people { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.person { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); color: inherit; transition: transform .25s, box-shadow .25s; }
a.person:hover { color: inherit; transform: translateY(-3px); box-shadow: 0 16px 40px -16px rgba(20, 30, 24, .3); }
.person__photo { width: 76px; height: 76px; flex-shrink: 0; border-radius: 50%; font-size: 10px; padding: 6px; }
.person h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.person__role { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--green-600); margin: 4px 0 8px; }
.person p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* ---------- Perguntas e respostas ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font-size: clamp(16px, 2vw, 18px); font-weight: 700; line-height: 1.35; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--green-100); color: var(--green-600); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--green-600); }
.faq__item p { padding: 0 44px 22px 4px; font-size: 16px; line-height: 1.65; color: var(--ink-2); }

/* ---------- Glossário ---------- */
.glossary { display: grid; gap: 0 clamp(24px, 4vw, 48px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.glossary__item { padding: 16px 0; border-top: 1px solid var(--line); break-inside: avoid; }
.glossary dt { font-size: 16px; font-weight: 800; color: var(--green-600); }
.glossary dd { margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Quiz ---------- */
.quiz { background: #fff; border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 36px); box-shadow: 0 20px 50px -30px rgba(60, 50, 10, .45); }
.quiz__top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.quiz__bar { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 10px 0 24px; }
.quiz__bar div { height: 100%; width: 0; background: var(--green-600); border-radius: 4px; transition: width .35s ease; }
.quiz__q { border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz__q[hidden], .quiz__feedback[hidden], .quiz__result[hidden] { display: none; }
.quiz__q legend { padding: 0; font-size: clamp(19px, 3vw, 24px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 18px; text-wrap: balance; }
.quiz__options { display: grid; gap: 10px; }
.quiz__opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 10px 16px; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-size: 15px; font-weight: 600; line-height: 1.35; transition: border-color .15s, background-color .15s; }
.quiz__opt b { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.quiz__opt:not(:disabled):hover { border-color: var(--green-600); background: var(--green-100); }
.quiz__opt:disabled { cursor: default; color: var(--ink-3); }
.quiz__opt.is-correct { border-color: var(--green-600); background: var(--green-100); color: var(--ink); }
.quiz__opt.is-correct b { background: var(--green-600); color: #fff; }
.quiz__opt.is-wrong { border-color: #c8553d; background: #fdeeea; color: var(--ink); }
.quiz__opt.is-wrong b { background: #c8553d; color: #fff; }
.quiz__feedback { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.quiz__feedback strong { display: block; font-size: 16px; font-weight: 800; }
.quiz__feedback strong.is-right { color: var(--green-600); }
.quiz__feedback strong.is-miss { color: #a8432e; }
.quiz__feedback p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.quiz__feedback .btn { margin-top: 16px; }
.quiz__result { text-align: center; padding-block: 12px; }
.quiz__total { font-size: clamp(44px, 9vw, 64px); font-weight: 800; letter-spacing: -0.02em; color: var(--green-600); line-height: 1.1; margin: 10px 0 6px; }
.quiz__result p { font-size: 16px; color: var(--ink-2); margin-bottom: 22px; }

/* ---------- Vídeo do YouTube ---------- */
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #0b0b0a; box-shadow: 0 24px 60px -30px rgba(18, 48, 31, .6); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Áudios ---------- */
.audio-list { display: grid; gap: 14px; }
.audio { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: clamp(18px, 3vw, 24px); }
.audio h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.audio__author { font-size: 13px; font-weight: 600; color: var(--green-600); margin-top: 2px; }
.audio audio { display: block; width: 100%; margin-top: 14px; }
.audio__empty { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-3); }
.audio details { margin-top: 12px; }
.audio summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--green-600); }
.audio details p { margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }

/* ---------- Materiais para baixar ---------- */
.downloads { display: grid; gap: 12px; }
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px clamp(16px, 3vw, 24px); }
.download__icon { width: 48px; height: 56px; flex-shrink: 0; border-radius: 8px; background: var(--yellow-100); color: var(--yellow-600); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.download__text { flex: 1 1 220px; min-width: 0; }
.download__text h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.download__text .tag { margin-bottom: 6px; }
.download__text p { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin-top: 2px; }
@media (max-width: 520px) { .download .btn { flex: 1 1 100%; } }

/* ---------- Realização e apoio ---------- */
.partners { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px clamp(24px, 5vw, 56px); margin-top: 24px; }
.partner { display: flex; align-items: center; justify-content: center; min-height: 64px; color: var(--ink-2); font-size: 15px; }
.partner img { max-height: 64px; max-width: 180px; width: auto; object-fit: contain; }
a.partner { transition: opacity .2s; }
a.partner:hover { opacity: .7; }
.notice--bar { margin: 0; border-radius: 0; text-align: center; }

/* ==========================================================================
   Redesenho 2026 — identidade mais forte
   Paleta do design system (verde core + amarelo pastel), agora com contraste
   maior, textura de papel, tipografia de impacto, movimento por rolagem
   (com fallback) e respeito a prefers-reduced-motion.
   ========================================================================== */

:root {
  --ink: oklch(16% 0.02 152);
  --ink-2: oklch(38% 0.02 152);
  --ground: oklch(97.5% 0.012 95);      /* papel quente, em vez do cinza frio */
  --surface: oklch(94.5% 0.02 145);
  --accent-soft: oklch(94% 0.07 95);
  --shadow-lift: 0 1px 2px oklch(20% 0.03 152 / .06), 0 18px 40px -18px oklch(20% 0.05 152 / .28);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
}

body { background: var(--ground); color: var(--ink); font-feature-settings: 'ss01', 'cv11'; }
::selection { background: var(--yellow-300); color: var(--ink); }

/* Textura de grão sobre as faixas escuras (SVG inline, sem arquivo extra) */
.band--dark, .hero, .banner, .video-band, .fact--dark, .featured {
  isolation: isolate;
}
.band--dark::before, .hero::after, .banner::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Eyebrow: rótulo com marcador, como sinalização de museu ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--green-700);
}
.eyebrow::before {
  content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: .9;
}
.eyebrow--light { color: var(--yellow-300); }

/* ---------- Títulos: mais peso e mais respiro ---------- */
.display { font-size: clamp(56px, 12.5vw, 150px); font-weight: 800; letter-spacing: -0.045em; line-height: .92; }
.h1 { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -0.03em; line-height: 1.06; }
.h1--sm { font-size: clamp(28px, 4vw, 44px); }
.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--ink-2); }

/* ---------- Navegação: barra flutuante em pílula (desktop) ---------- */
.nav {
  background: oklch(99% 0.006 95 / .92); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.nav.is-scrolled {
  background: oklch(99% 0.006 95 / .82);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px oklch(20% 0.05 152 / .35);
}
.nav__brand img { box-shadow: 0 0 0 2px #fff, 0 4px 14px -4px oklch(20% 0.05 152 / .5); }
.nav__brand span { font-size: 15px; letter-spacing: -0.02em; }
.nav__cta { box-shadow: 0 6px 18px -8px var(--green-600); }
@media (min-width: 900px) {
  .nav { top: 12px; left: 50%; right: auto; width: min(1120px, calc(100% - 32px)); transform: translateX(-50%); height: 58px; border-radius: var(--pill); padding-inline: 14px 10px; }
  .nav.is-scrolled { background: oklch(99% 0.006 95 / .9); }
  .nav__links { background: none; }
  .nav__links a:not(.btn) { padding: 8px 14px; border-radius: var(--pill); font-size: 12.5px; letter-spacing: .04em; }
  .nav__links a:not(.btn):hover { background: var(--green-100); color: var(--green-700); }
  .nav__links a.is-active { background: var(--green-100); color: var(--green-700); }
  /* A barra flutuante fica sobre o conteúdo: a página começa abaixo dela. */
  body { padding-top: 84px; }
  .hero { margin-top: -84px; }
}
@media (max-width: 899px) {
  .nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
}

/* ---------- Herói: campo de cor, título gigante, rodapé com fade ---------- */
.hero {
  min-height: min(92svh, 960px); align-items: flex-end;
  background: radial-gradient(120% 90% at 85% 0%, oklch(44% 0.1 152) 0%, transparent 60%), var(--green-900);
}
.hero__bg { transform: scale(1.06); transition: transform 2.4s var(--ease-out); }
.hero.is-ready .hero__bg { transform: scale(1); }
.hero__overlay {
  background:
    linear-gradient(180deg, oklch(16% 0.05 152 / .15) 0%, oklch(16% 0.05 152 / .35) 45%, oklch(14% 0.05 152 / calc(var(--overlay, .55) + .25)) 100%);
}
.hero__content { padding-top: 140px; padding-bottom: clamp(48px, 9vw, 96px); max-width: 1120px; margin-inline: auto; }
.hero__content .display { text-wrap: balance; }
.hero__lead { font-size: clamp(17px, 2.1vw, 21px); font-weight: 500; color: oklch(96% 0.01 145); max-width: 560px; }
.hero .btn { min-height: 52px; padding-inline: 30px; font-size: 15px; }
.hero .btn--primary { background: var(--yellow-300); color: var(--yellow-ink); border-color: var(--yellow-300); box-shadow: 0 12px 30px -12px oklch(90% 0.1 95 / .6); }
.hero .btn--primary:hover { background: var(--yellow-400); border-color: var(--yellow-400); color: var(--yellow-ink); }

/* ---------- Botões: forma de pílula com seta que anda no hover ---------- */
.btn { position: relative; isolation: isolate; overflow: hidden; }
.btn:not(.btn--sm)::after {
  content: '→'; font-weight: 600; margin-left: -2px; transition: transform .3s var(--ease-spring);
}
.btn--sm::after, .btn--md::after, .btn--lg::after, .btn--block::after { display: none; }
.btn:hover::after { transform: translateX(4px); }
.btn--primary:hover { box-shadow: 0 14px 28px -14px var(--green-600); transform: translateY(-1px); }
.btn--outline:hover { color: #fff; }
.btn:focus-visible { outline: 3px solid var(--yellow-400); outline-offset: 3px; }

/* ---------- Seções: cabeçalho com número de capítulo ---------- */
.section { position: relative; }
.section__head { align-items: flex-end; }
.section__head .h1 { max-width: 760px; }
.more {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 2px; color: var(--green-700);
  border-bottom: 1.5px solid transparent; transition: border-color .2s, gap .3s var(--ease-out);
}
.more:hover { border-color: currentColor; gap: 10px; color: var(--green-700); }

/* ---------- Cartões: elevação, zoom suave na imagem ---------- */
.card, .person, .fact, .comic-card, .download, .audio, .quiz {
  border-color: oklch(90% 0.012 145);
}
.card__media, .comic-card__cover .media, .featured__media, .banner__bg {
  transition: transform .8s var(--ease-out);
}
a.card:hover .card__media, a.comic-card:hover .media { transform: scale(1.04); }
a.card:hover, a.comic-card:hover, a.person:hover, .featured:hover {
  box-shadow: var(--shadow-lift); transform: translateY(-4px);
}
.card, .comic-card, .person { transition: transform .45s var(--ease-spring), box-shadow .45s var(--ease-out); }

/* ---------- Destaque (imagem + texto): cor mais viva ---------- */
.feature { border-radius: 32px; }
.feature--neutral { background: #fff; box-shadow: 0 1px 0 oklch(90% 0.012 145); }
.feature--yellow { background: linear-gradient(135deg, oklch(96% 0.05 95), oklch(93% 0.08 92)); }
.feature--green { background: linear-gradient(135deg, oklch(95% 0.03 145), oklch(91% 0.05 150)); }
.feature__text .h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; line-height: 1.12; }
.feature__text .more { font-size: 15px; }

/* ---------- Vídeo: sombra e moldura ---------- */
.video-band { border-radius: 0; }
.video-band__shade { background: linear-gradient(180deg, oklch(15% 0.04 152 / .1) 0%, oklch(14% 0.04 152 / .85) 100%); }
.video-band__text .h1 { font-size: clamp(34px, 5.5vw, 64px); }

/* ---------- Linha do tempo: marcador de marco ---------- */
.timeline__item { position: relative; border-top: 0; padding-top: 22px; }
.timeline__item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--green-600), var(--green-500));
}
.timeline__item:nth-child(even)::before { background: linear-gradient(90deg, var(--yellow-400), var(--yellow-300)); }
.timeline__item::after {
  content: ''; position: absolute; top: -5px; left: 0; width: 13px; height: 13px; border-radius: 50%;
  background: var(--ground); border: 3px solid var(--green-600);
}
.timeline__year { font-size: clamp(32px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; color: var(--green-900); }
.timeline__title { font-size: 16px; }

/* ---------- Números: faixa escura com brilho ---------- */
.band--dark { background: radial-gradient(90% 120% at 0% 0%, oklch(36% 0.08 152) 0%, var(--green-900) 60%); }
.stats dd { font-size: clamp(40px, 6.5vw, 64px); letter-spacing: -0.04em; text-shadow: 0 6px 30px oklch(90% 0.1 95 / .25); }

/* ---------- Curiosidades ---------- */
.fact { border-radius: 28px; transition: transform .45s var(--ease-spring), box-shadow .45s var(--ease-out); }
.fact:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.fact__n { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; padding-bottom: 0; margin-bottom: 40px; opacity: .9; }
.fact h3 { font-size: clamp(20px, 2.2vw, 24px); }

/* ---------- Citação: aspas grandes ---------- */
.quote { position: relative; }
.quote blockquote { font-size: clamp(26px, 4.4vw, 42px); letter-spacing: -0.02em; line-height: 1.25; font-weight: 800; }
.quote blockquote::before, .quote blockquote::after { color: var(--yellow-600); }

/* ---------- Quadrinho em destaque ---------- */
.featured { border-radius: 36px; background: radial-gradient(110% 100% at 100% 0%, oklch(40% 0.1 152) 0%, var(--green-900) 62%); }
.featured__text .h1 { font-size: clamp(32px, 4.8vw, 56px); letter-spacing: -0.03em; }
.featured__text .btn--white { background: var(--yellow-300); color: var(--yellow-ink); }
.featured__text .btn--white:hover { background: var(--yellow-400); }

/* ---------- Quiz: destaque maior ---------- */
.quiz { border-radius: 32px; border: 1px solid oklch(92% 0.04 95); }
.quiz__opt { border-radius: 16px; }
.quiz__total { font-size: clamp(56px, 10vw, 84px); letter-spacing: -0.04em; }

/* ---------- Glossário e perguntas: tipografia editorial ---------- */
.glossary dt { font-size: 18px; letter-spacing: -0.01em; }
.faq__item summary { font-size: clamp(17px, 2.2vw, 20px); letter-spacing: -0.01em; }

/* ---------- Rodapé: bloco de identidade ---------- */
.footer { background: var(--green-900); color: #dbe8df; border-top: 0; padding: 72px 0 32px; }
.footer__title { color: #fff; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; font-weight: 800; }
.footer__text { color: #b9cfc0; font-size: 15px; max-width: 420px; }
.footer__heading { color: var(--yellow-300); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.footer__links a { color: #dbe8df; }
.footer__links a:hover { color: var(--yellow-300); }
.footer__legal { color: #8fab98; }
.footer__legal::before { border-top-color: oklch(40% 0.05 152); }

/* ---------- Movimento por rolagem (2026): nativo, com fallback ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .js [data-reveal].is-waiting { opacity: 1; transform: none; }
    [data-reveal]:not(.is-waiting) {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
    @keyframes reveal-up {
      from { opacity: 0; transform: translateY(40px); }
      to { opacity: 1; transform: none; }
    }
  }
}

/* Evita que o zoom inicial da imagem do herói gere rolagem horizontal. */
.hero, .banner, .video-band { overflow: hidden; }

/* Barra sempre legível: texto e botão nunca somem sobre imagens. */
.nav__toggle span { background: var(--ink); }
.nav__brand, .nav__links a:not(.btn) { color: var(--ink); }

/* Painel do menu no celular: cor sólida em hex (sem depender de oklch aqui). */
@media (max-width: 899px) {
  .nav__links { background: #fcfcfa; }
}

/* ==========================================================================
   Jogo 2.0 — HUD, cartas, efeitos, ranking, conta e conquistas
   ========================================================================== */

/* ---------- Tela do jogo: fundo e cabeçalho ---------- */
body.is-game { background: radial-gradient(120% 60% at 50% -10%, oklch(96% 0.05 95) 0%, var(--ground) 55%); }
.game { max-width: 1040px; margin-inline: auto; padding-top: 28px; }
.hud { width: 100%; display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 18px; }
@media (min-width: 760px) { .hud { grid-template-columns: minmax(260px, 340px) 1fr; align-items: stretch; } }

.hud-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 14px 16px; box-shadow: 0 1px 0 var(--line), 0 14px 30px -20px oklch(20% 0.05 152 / .35); }
.hud-card--guest { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: #fff; border: 0; }
.hud-card--guest b { display: block; font-size: 16px; }
.hud-card--guest span { font-size: 13px; color: #d7e6dc; display: block; margin-top: 4px; line-height: 1.45; }
.hud-card--guest .btn--ghost { color: #fff; }
.hud-card--guest .btn--ghost:hover { background: oklch(100% 0 0 / .14); color: #fff; }
.hud-card__cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.hud-card__body { flex: 1; min-width: 0; }
.hud-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hud-card__top b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-card__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13px; font-weight: 700; }
.hud-card__meta a { color: var(--green-700); }
.hud-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(140deg, var(--yellow-300), var(--yellow-400)); color: var(--yellow-ink); font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 0 0 3px #fff, 0 6px 16px -6px oklch(45% 0.1 85 / .6); }
.hud-avatar--lg { width: 88px; height: 88px; font-size: 36px; }
.hud-level { background: var(--green-700); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: var(--pill); white-space: nowrap; }
.hud-xp { height: 8px; border-radius: 8px; background: var(--green-100); margin-top: 10px; overflow: hidden; }
.hud-xp > div { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--green-500), var(--yellow-400)); transition: width .8s var(--ease-out); }
.hud-xp--lg { height: 12px; margin-top: 12px; }
.hud-streak { display: inline-flex; align-items: center; gap: 4px; color: oklch(50% 0.16 40); }
.hud-streak small { color: var(--ink-3); font-weight: 600; }

.hud-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hud-tile { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 12px 8px; text-align: center; box-shadow: 0 1px 0 var(--line); transition: transform .2s var(--ease-spring), background-color .3s; }
.hud-tile b { display: block; font-size: clamp(18px, 3vw, 24px); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hud-tile span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.hud-tile--points { background: var(--green-900); border-color: var(--green-900); }
.hud-tile--points b { color: var(--yellow-300); }
.hud-tile--points span { color: #bcd4c3; }
.hud-tile.is-hot { background: var(--yellow-300); border-color: var(--yellow-400); transform: scale(1.04); }
.hud-tile--combo.is-hot b, .hud-tile--combo.is-hot span { color: var(--yellow-ink); }
.hud-tile--combo.is-hot { animation: hot-pulse 1s ease-in-out infinite; }
@keyframes hot-pulse { 50% { box-shadow: 0 0 0 6px oklch(89% 0.08 95 / .5); } }

/* ---------- Cabeçalho da fase ---------- */
.game__phase { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 16px; margin-bottom: 14px; }
.game__title { font-size: clamp(22px, 3.6vw, 32px); letter-spacing: -0.02em; line-height: 1.1; margin-top: 4px; }
.game__tools { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 38px; padding: 8px 14px; border-radius: var(--pill); border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 800; color: var(--ink-2); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--green-500); color: var(--green-700); }
.chip[aria-pressed='false'] { color: var(--ink-3); text-decoration: line-through; }
.game__progress { width: 100%; height: 10px; border-radius: 10px; background: var(--green-100); overflow: hidden; margin-bottom: 26px; }
.game__progress > div { height: 100%; width: 0; border-radius: 10px; background: repeating-linear-gradient(-45deg, var(--green-600) 0 10px, var(--green-500) 10px 20px); transition: width .6s var(--ease-out); }

/* ---------- Tabuleiro e cartas ---------- */
.game__board { gap: clamp(10px, 2vw, 18px); }
.mcard { border-radius: 22px; animation: card-in .5s var(--ease-spring) both; }
@keyframes card-in { from { transform: translateY(14px) scale(.96); } }
.mcard__inner { transition: transform .55s cubic-bezier(.3, .7, .25, 1), opacity .4s; }
.mcard__face { border-radius: 20px; }
.mcard__back {
  background: radial-gradient(120% 90% at 20% 0%, var(--green-500), var(--green-800) 60%, var(--green-900));
  box-shadow: 0 10px 24px -12px oklch(20% 0.05 152 / .65), inset 0 1px 0 oklch(100% 0 0 / .15);
  border: 1px solid oklch(100% 0 0 / .08);
}
.mcard__back::after { content: ''; position: absolute; inset: 10px; border-radius: 14px; border: 1.5px dashed oklch(89% 0.08 95 / .35); pointer-events: none; }
.mcard__mark { font-size: clamp(26px, 6vw, 44px); font-weight: 800; color: var(--yellow-300); text-shadow: 0 4px 14px oklch(89% 0.08 95 / .35); }
.mcard:not(.is-open):not(.is-matched):hover { transform: translateY(-3px); }
.mcard:not(.is-open):not(.is-matched):hover .mcard__back { filter: brightness(1.1); }
.mcard:focus-visible { outline: 3px solid var(--yellow-400); outline-offset: 4px; }
.mcard__front { background: #fff; border: 0; box-shadow: 0 12px 28px -14px oklch(20% 0.05 152 / .45); padding: clamp(6px, 1.4vw, 12px); }
.mcard__front .media { flex: 1; min-height: 0; border-radius: 14px; }
.mcard__label { font-size: clamp(10px, 2.2vw, 12.5px); font-weight: 800; color: var(--ink-2); }
.mcard.is-matched .mcard__inner { opacity: .5; }
.mcard.is-matched .mcard__front { box-shadow: 0 0 0 3px var(--green-500); }
.mcard.is-celebrate .mcard__front { animation: celebrate .6s var(--ease-spring); }
@keyframes celebrate { 40% { transform: rotateY(180deg) scale(1.08); } }
.mcard.is-wrong .mcard__inner { animation: shake .4s .3s; }

/* Efeitos */
.spark { position: fixed; z-index: 150; width: 9px; height: 9px; border-radius: 50%; pointer-events: none; animation: spark .8s var(--ease-out) forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.confetti { position: fixed; top: -20px; z-index: 250; width: 10px; height: 16px; border-radius: 3px; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--sway), 110vh) rotate(720deg); opacity: .9; } }
.combo-pop { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.6); z-index: 160; font-size: clamp(34px, 8vw, 64px); font-weight: 800; letter-spacing: -0.03em; color: var(--yellow-300); text-shadow: 0 6px 24px oklch(20% 0.05 152 / .6); opacity: 0; pointer-events: none; }
.combo-pop.is-show { animation: combo .9s var(--ease-spring) forwards; }
@keyframes combo { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.5); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1); } }

.game__status { min-height: 22px; margin-top: 18px; text-align: center; font-size: 13px; font-weight: 800; color: var(--green-700); }
.game__status.is-error { color: oklch(50% 0.17 27); }

/* Notificação de conquista */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.badge-toast { display: flex; align-items: center; gap: 12px; background: var(--green-900); color: #fff; border-radius: 20px; padding: 12px 18px 12px 12px; box-shadow: 0 24px 50px -20px oklch(12% 0.04 152 / .7); animation: toast-pop .45s var(--ease-spring); }
.badge-toast__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--yellow-300); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.badge-toast small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow-300); }
.badge-toast b { font-size: 15px; }
.badge-toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
@keyframes toast-pop { from { opacity: 0; transform: translateY(16px) scale(.96); } }

/* Modais do jogo */
.stars { display: flex; justify-content: center; gap: 6px; margin: 10px 0 2px; }
.star { font-size: 44px; line-height: 1; color: oklch(88% 0.02 145); transform: scale(.6); }
.star.is-on { color: var(--yellow-400); text-shadow: 0 6px 16px oklch(80% 0.1 92 / .6); animation: star-in .5s var(--ease-spring) both; }
.star:nth-child(2).is-on { animation-delay: .15s; }
.star:nth-child(3).is-on { animation-delay: .3s; }
@keyframes star-in { from { transform: scale(0) rotate(-90deg); } }
.modal__msg { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); font-weight: 600; }
.modal__meta span { background: var(--green-50); padding: 6px 10px; border-radius: var(--pill); }
.modal__box--sm .modal__score { margin-top: 2px; }
.modal__final { text-align: center; color: #fff; max-width: 520px; width: 100%; padding: 24px; animation: pop .35s var(--ease-spring); }
.trophy { font-size: 72px; line-height: 1; filter: drop-shadow(0 12px 24px oklch(0% 0 0 / .3)); animation: float 2.4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.final-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 14px; }
.final-stats > div { background: oklch(100% 0 0 / .08); border-radius: 18px; padding: 12px 8px; }
.final-stats b { display: block; font-size: 22px; font-weight: 800; }
.final-stats span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #cfe2d5; }
.final-saved { font-size: 14px; color: #d7e6dc; margin-bottom: 22px; }
.modal--final .h1 { margin: 10px auto 0; }
.modal--final .btn-row { margin-top: 20px; }
.chip--ghost { color: #fff; }

/* ---------- Ranking ---------- */
.tabs-pill { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--pill); margin-bottom: 28px; box-shadow: 0 1px 0 var(--line); }
.tabs-pill a { padding: 10px 18px; border-radius: var(--pill); font-weight: 800; font-size: 14px; color: var(--ink-2); }
.tabs-pill a:hover { color: var(--ink); background: var(--green-50); }
.tabs-pill a.is-active { background: var(--green-900); color: #fff; }

.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; margin-bottom: 26px; max-width: 720px; }
.podium__place { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 10px 16px; border-radius: 24px; background: #fff; border: 1px solid var(--line); text-align: center; min-width: 0; }
.podium__place b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.podium__place span { font-weight: 800; color: var(--green-700); font-variant-numeric: tabular-nums; }
.podium__place--1 { background: linear-gradient(180deg, var(--yellow-100), #fff); border-color: var(--yellow-300); padding-top: 28px; }
.podium__place--2, .podium__place--3 { padding-top: 22px; }
.podium__medal { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; background: var(--green-100); color: var(--green-700); margin-bottom: 6px; }
.podium__place--1 .podium__medal { background: var(--yellow-400); color: var(--yellow-ink); width: 52px; height: 52px; font-size: 20px; }

.board { background: #fff; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.board__row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); }
.board__row:first-child { border-top: 0; }
.board__row:nth-child(-n+3) { background: var(--green-50); }
.board__pos { font-weight: 800; font-size: 18px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.board__row:nth-child(1) .board__pos { color: var(--yellow-600); }
.board__nick { min-width: 0; }
.board__nick b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__nick small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 700; }
.board__value { font-weight: 800; font-size: 18px; color: var(--green-700); font-variant-numeric: tabular-nums; text-align: right; }
.board__value small { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.empty-state { padding: 48px 20px; text-align: center; color: var(--ink-2); }
.empty-state b { display: block; font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.empty-state .btn { margin-top: 14px; }

/* ---------- Conta (entrar, cadastro, perfil) ---------- */
.auth { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 48px var(--gutter); }
.auth__card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: clamp(28px, 5vw, 42px); box-shadow: 0 30px 70px -40px oklch(20% 0.05 152 / .5); }
.auth__card .h1 { margin: 10px 0 6px; }
.auth__card .hint { font-size: 14px; color: var(--ink-2); margin-bottom: 22px; line-height: 1.5; }
.auth__form { display: flex; flex-direction: column; gap: 16px; }
.auth__form .field > label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.auth__form .field > label i { font-style: normal; font-weight: 600; color: var(--ink-3); font-size: 12px; margin-left: 4px; }
.auth__form input[type='text'], .auth__form input[type='email'], .auth__form input[type='password'] { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid oklch(84% 0.015 152); font-size: 16px; font-family: var(--font); }
.auth__form input:focus { outline: 0; border-color: var(--green-500); box-shadow: 0 0 0 4px oklch(52% 0.1 152 / .15); }
.auth__form .field small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.auth__form .field__error { display: block; color: oklch(50% 0.17 27); font-size: 12px; font-weight: 700; margin-top: 6px; }
.auth__form .check { font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1.45; }
.auth__form .check input { accent-color: var(--green-600); width: 18px; height: 18px; }
.auth__alt { margin-top: 22px; text-align: center; font-size: 14px; color: var(--ink-2); }
.auth .alert { border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; font-weight: 700; }
.auth .alert--error { background: oklch(96% 0.025 27); color: oklch(40% 0.15 27); }
.auth .alert--error ul { padding-left: 18px; font-weight: 600; }
.auth .alert--ok { background: var(--green-100); color: var(--green-700); }
.auth__form--inline { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
.auth__form--inline .field { flex: 1 1 200px; }

.profile-hero { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-bottom: 22px; }
.profile-hero > div:nth-child(2) { flex: 1 1 260px; min-width: 0; }
.profile-hero__logout { margin-left: auto; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 760px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px; box-shadow: 0 1px 0 var(--line); }
.stat-card b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-card span { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.xp-card { background: var(--green-900); color: #fff; border-radius: 24px; padding: 18px 20px; margin-bottom: 8px; }
.xp-card__row { display: flex; justify-content: space-between; font-size: 14px; color: #cfe2d5; }
.xp-card__row b { color: #fff; font-size: 16px; }
.xp-card .hud-xp { background: oklch(100% 0 0 / .14); }

.two-col { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.3fr 1fr; } }
.badges { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); margin-top: 16px; }
.badge-card { background: #fff; border: 1px dashed oklch(82% 0.02 152); border-radius: 22px; padding: 18px 14px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; opacity: .6; }
.badge-card.is-earned { opacity: 1; border: 1px solid var(--line); border-top: 3px solid var(--yellow-400); box-shadow: 0 1px 0 var(--line), 0 16px 30px -22px oklch(20% 0.05 152 / .5); }
.badge-card__icon { font-size: 36px; line-height: 1.1; }
.badge-card b { font-size: 14px; }
.badge-card small { font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.history { display: flex; flex-direction: column; margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.history__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.history__row:first-child { border-top: 0; }
.history__row b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.history__row small { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.history > .hint { padding: 16px 18px; margin: 0; }

/* ---------- Ajustes gerais ---------- */
.nav__links a[href*='ranking'], .nav__links a[href*='entrar'], .nav__links a[href*='perfil'] { font-weight: 800; }
@media (max-width: 480px) { .hud-stats { gap: 8px; } .hud-tile { padding: 10px 4px; border-radius: 16px; } .mcard { border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) { .spark, .confetti, .combo-pop, .trophy { display: none; } .mcard { animation: none; } }

/* Menu com mais itens: sem quebra de linha e espaçamento que cabe em telas médias. */
@media (min-width: 900px) {
  .nav__links { gap: clamp(12px, 1.6vw, 22px); }
  .nav__links a:not(.btn) { white-space: nowrap; }
  .nav__brand span { max-width: 180px; }
}
/* O botão Jogar fica sempre visível no desktop (regra que o escondia entre 900px e 1180px foi removida). */

/* Abas do ranking: em uma linha no celular, com rolagem horizontal se faltar espaço. */
.tabs-pill { display: flex; width: 100%; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.tabs-pill a { flex-shrink: 0; white-space: nowrap; padding: 10px 16px; }
@media (min-width: 640px) { .tabs-pill { display: inline-flex; width: auto; } }

/* ==========================================================================
   Desafio entre as fases (estilo Duolingo)
   ========================================================================== */
.modal__quiz { background: #fff; border-radius: 32px; width: 100%; max-width: 620px; max-height: calc(100dvh - 32px); overflow: auto; padding: clamp(22px, 4vw, 34px); box-shadow: 0 40px 90px -30px oklch(10% 0.04 152 / .7); animation: pop .3s var(--ease-spring); }
.quiz-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.quiz-kind { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-700); background: var(--green-100); padding: 6px 12px; border-radius: var(--pill); }
.quiz-bonus { font-size: 13px; font-weight: 800; color: var(--yellow-ink); background: var(--yellow-300); padding: 6px 12px; border-radius: var(--pill); }
.quiz-prompt { font-size: clamp(20px, 3.2vw, 26px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; margin: 18px 0 14px; text-wrap: balance; }
.quiz-blank { display: inline-block; min-width: 90px; padding: 0 10px; margin: 0 4px; border-bottom: 3px solid var(--green-500); color: var(--green-700); text-align: center; transition: background-color .2s; }
.quiz-blank.is-correct { color: var(--green-700); background: var(--green-100); border-radius: 8px; }
.quiz-blank.is-wrong { color: oklch(50% 0.17 27); border-color: oklch(50% 0.17 27); }
.quiz-quote { margin: 0 0 16px; padding: 14px 18px; border-left: 4px solid var(--yellow-400); background: var(--yellow-100); border-radius: 0 16px 16px 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); font-style: italic; }
.quiz-options { display: grid; gap: 10px; }
.quiz-options--tf { grid-template-columns: 1fr 1fr; }
.quiz-options--chips { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-options--chips .quiz-opt { width: auto; padding: 12px 18px; border-radius: var(--pill); font-size: 15px; }
.quiz-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 12px 16px; text-align: left; background: #fff; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 18px; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--ink); transition: transform .15s var(--ease-spring), border-color .15s, background-color .15s; }
.quiz-opt:hover:not(:disabled) { border-color: var(--green-500); background: var(--green-50); }
.quiz-opt:active:not(:disabled) { transform: scale(.98); }
.quiz-opt.is-picked { border-color: var(--green-600); background: var(--green-100); color: var(--green-800, var(--green-700)); }
.quiz-opt.is-correct { border-color: var(--green-500); background: var(--green-100); color: var(--green-700); }
.quiz-opt.is-wrong { border-color: oklch(70% 0.14 27); background: oklch(96% 0.03 27); color: oklch(45% 0.16 27); animation: shake .4s; }
.quiz-opt:disabled { cursor: default; }
.quiz-options--tf .quiz-opt { justify-content: center; font-size: 17px; min-height: 84px; }
.quiz-match { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz-match > div { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt--left, .quiz-opt--right { font-size: 14px; min-height: 52px; }
.quiz-opt--left::before { content: attr(data-hint); }
.quiz-opt.is-paired { background: var(--yellow-100); border-color: var(--yellow-400); }
.quiz-opt--left.is-picked { border-color: var(--yellow-600, var(--yellow-400)); background: var(--yellow-100); }
.quiz-feedback { margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: var(--green-50); border: 1px solid var(--line); }
.quiz-feedback strong { display: block; font-size: 17px; font-weight: 800; }
.quiz-feedback strong.is-right { color: var(--green-700); }
.quiz-feedback strong.is-miss { color: oklch(45% 0.16 27); }
.quiz-feedback p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.quiz-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.quiz-actions .btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
@media (max-width: 520px) { .quiz-options--tf { grid-template-columns: 1fr; } .quiz-match { gap: 8px; } }

/* O atributo hidden precisa vencer a classe .btn/.quiz-feedback dentro do desafio. */
.quiz-actions [hidden], .quiz-feedback[hidden], .quiz-body [hidden] { display: none !important; }

/* ==========================================================================
   Painel lateral do item encontrado (substitui o modal de informações)
   ========================================================================== */
.game__stage { width: 100%; display: grid; gap: 22px; grid-template-columns: 1fr; align-items: start; }
.game__stage .game__board { justify-self: center; }
@media (min-width: 960px) {
  .game__stage { grid-template-columns: minmax(0, 1fr) 320px; }
  .game__stage .game__board { justify-self: start; }
  .info-panel { position: sticky; top: 92px; }
}

.info-panel { background: #fff; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 20px 40px -26px oklch(20% 0.05 152 / .4); min-height: 280px; }
.info-panel[hidden] { display: none; }
.info-panel__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; min-height: 280px; padding: 28px; color: var(--ink-2); }
.info-panel__empty b { font-size: 17px; color: var(--ink); }
.info-panel__empty span { font-size: 14px; line-height: 1.5; max-width: 240px; }
.info-panel__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green-100); display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 4px; }
.info-panel.is-empty .info-panel__content { display: none; }
.info-panel:not(.is-empty) .info-panel__empty { display: none; }
.info-panel__content { display: flex; flex-direction: column; }
.info-panel__media { aspect-ratio: 4 / 3; background: var(--green-50); overflow: hidden; }
.info-panel__media img { width: 100%; height: 100%; object-fit: cover; }
.info-panel__media .media--empty { font-size: 14px; }
.info-panel__body { padding: 20px 22px 24px; }
.info-panel__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.info-panel__count { font-size: 12px; font-weight: 800; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.info-panel__title { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 12px 0 8px; }
.info-panel__desc { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.info-panel__desc[hidden] { display: none; }
.info-panel__video { width: 100%; border-radius: 16px; background: #000; margin-top: 16px; aspect-ratio: 16 / 9; }
.info-panel__video[hidden] { display: none; }
.info-panel.is-new .info-panel__content { animation: panel-in .45s var(--ease-spring); }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* ==========================================================================
   Elementos novos: moedas, missões, loja, coleção e power-ups
   Mesmos tokens e formas do site (cards 20–28px, pílulas, verde e amarelo).
   ========================================================================== */

/* ---------- Moedas ---------- */
.coins-card { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 20px; border-radius: var(--pill); background: var(--yellow-300); color: var(--yellow-ink); font-size: 16px; box-shadow: 0 10px 24px -14px oklch(80% 0.1 92 / .9); }
.coins-card b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.coins-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--pill); background: var(--yellow-300); color: var(--yellow-ink); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.hud-coins { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 13px; color: var(--yellow-ink); background: var(--yellow-100); padding: 3px 9px; border-radius: var(--pill); }

/* ---------- Missões (perfil) ---------- */
.missions { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 3vw, 28px); margin-bottom: 28px; box-shadow: 0 1px 0 var(--line), 0 20px 40px -28px oklch(20% 0.05 152 / .35); }
.missions__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.missions__head .h2 { margin: 0; }
.missions__list { display: flex; flex-direction: column; gap: 10px; }
.mission { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 20px; background: var(--green-50); border: 1px solid var(--line); }
.mission.is-done { background: var(--green-100); border-color: oklch(86% 0.05 150); }
.mission__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mission__info b { font-size: 15px; font-weight: 800; }
.mission__info span { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.mission__bar { height: 8px; border-radius: 8px; background: var(--line); margin-top: 8px; overflow: hidden; }
.mission__bar div { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--green-500), var(--yellow-400)); transition: width .6s var(--ease-out); }
.mission__reward { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; text-align: right; }
.mission__reward small { font-size: 12px; font-weight: 800; color: var(--ink-3); white-space: nowrap; }
.quick-links { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 640px) { .quick-links { grid-template-columns: 1fr 1fr; } }
.quick-link { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: var(--green-900); color: #fff; font-weight: 800; font-size: 15px; transition: transform .2s var(--ease-spring), box-shadow .2s; }
.quick-link:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -18px oklch(20% 0.05 152 / .7); }
.quick-link span:first-child { width: 42px; height: 42px; border-radius: 14px; background: oklch(100% 0 0 / .1); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.quick-link small { display: block; font-size: 12px; font-weight: 700; color: #bcd4c3; margin-top: 2px; }

/* ---------- Loja ---------- */
.shop-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
.shop-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 26px 22px 22px; box-shadow: 0 1px 0 var(--line), 0 20px 40px -28px oklch(20% 0.05 152 / .35); transition: transform .25s var(--ease-spring), box-shadow .25s; }
.shop-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 28px 50px -26px oklch(20% 0.05 152 / .45); }
.shop-card__icon { width: 68px; height: 68px; border-radius: 22px; background: var(--yellow-100); display: flex; align-items: center; justify-content: center; font-size: 34px; margin-bottom: 4px; }
.shop-card b { font-size: 20px; font-weight: 800; letter-spacing: -0.015em; }
.shop-card p { font-size: 14px; line-height: 1.55; color: var(--ink-2); flex: 1; }
.shop-card__stock { font-size: 13px; font-weight: 700; color: var(--ink-3); padding: 8px 12px; border-radius: 12px; background: var(--green-50); }
.shop-card__stock strong { color: var(--green-700); font-size: 15px; }
.shop-card .btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ---------- Coleção ---------- */
.collection-progress { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; max-width: 560px; }
.collection-progress__bar { flex: 1 1 260px; height: 12px; border-radius: 12px; background: var(--green-100); overflow: hidden; }
.collection-progress__bar div { height: 100%; border-radius: 12px; background: linear-gradient(90deg, var(--green-600), var(--yellow-400)); transition: width .8s var(--ease-out); }
.collection-progress b { font-size: 14px; font-weight: 800; color: var(--green-800, var(--green-700)); white-space: nowrap; }
.collection-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .collection-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .collection-grid { grid-template-columns: repeat(4, 1fr); } }
.item-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 16px 34px -26px oklch(20% 0.05 152 / .4); transition: transform .25s var(--ease-spring); }
.item-card:not(.is-locked):hover { transform: translateY(-3px); }
.item-card__media { aspect-ratio: 4 / 3; background: repeating-linear-gradient(135deg, var(--soft) 0 10px, oklch(92% 0.012 145) 10px 20px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.item-card__media img { width: 100%; height: 100%; object-fit: cover; }
.item-card__media span { font-size: 15px; font-weight: 800; color: var(--green-700); padding: 12px; text-align: center; }
.item-card.is-locked .item-card__media { background: var(--green-100); }
.item-card.is-locked .item-card__media span { font-size: 44px; color: var(--green-500); }
.item-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.item-card__body b { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.item-card__body p { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.item-card.is-locked .item-card__body b { color: var(--ink-2); }
.item-card .tag { align-self: flex-start; }

/* ---------- Power-ups na partida ---------- */
.game__tools { align-items: center; }
.powers { display: flex; flex-wrap: wrap; gap: 8px; }
.power { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 8px 6px 12px; border-radius: var(--pill); border: 1px solid var(--line); background: #fff; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; box-shadow: 0 1px 0 var(--line); transition: transform .15s var(--ease-spring), border-color .15s, background-color .15s; }
.power span { font-size: 16px; line-height: 1; }
.power b { font-weight: 800; }
.power em { font-style: normal; min-width: 24px; height: 24px; padding: 0 7px; border-radius: var(--pill); background: var(--green-100); color: var(--green-700); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.power:hover:not(:disabled) { border-color: var(--green-500); transform: translateY(-1px); }
.power:active:not(:disabled) { transform: scale(.97); }
.power:disabled { opacity: .55; cursor: not-allowed; }
.power:disabled em { background: var(--soft); color: var(--ink-3); }
.power:focus-visible { outline: 3px solid var(--yellow-400); outline-offset: 3px; }
.hud-card__meta .hud-coins { font-size: 12px; }
@media (max-width: 560px) { .powers { width: 100%; } .power b { display: none; } .power { padding: 6px 10px; } }

/* ---------- Novos minijogos do desafio ---------- */
.quiz-hint { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; line-height: 1.5; }
.quiz-seq { display: flex; flex-direction: column; gap: 8px; min-height: 64px; padding: 12px; margin-bottom: 14px; border-radius: 18px; background: var(--green-50); border: 2px dashed oklch(84% 0.03 152); }
.quiz-seq__empty { font-size: 14px; color: var(--ink-3); font-weight: 700; text-align: center; padding: 14px 0; }
.quiz-opt--seq { background: var(--green-100); border-color: var(--green-500); min-height: 46px; padding: 8px 14px; font-size: 14px; }
.quiz-opt--seq.is-correct { background: var(--green-100); border-color: var(--green-600); }
.quiz-opt--seq.is-wrong { background: oklch(96% 0.03 27); border-color: oklch(70% 0.14 27); }
.quiz-type { display: flex; }
.quiz-type__input { width: 100%; min-height: 56px; padding: 12px 18px; border-radius: 18px; border: 2px solid var(--line); font: inherit; font-size: 17px; font-weight: 700; color: var(--ink); background: #fff; }
.quiz-type__input:focus { outline: 0; border-color: var(--green-500); box-shadow: 0 0 0 4px oklch(52% 0.1 152 / .15); }
.quiz-type__input.is-correct { border-color: var(--green-500); background: var(--green-100); color: var(--green-700); }
.quiz-type__input.is-wrong { border-color: oklch(70% 0.14 27); background: oklch(96% 0.03 27); color: oklch(45% 0.16 27); }

/* ==========================================================================
   Cartas do jogo em formato de carta: imagem em retrato (3:4)
   ========================================================================== */
.mcard { aspect-ratio: 3 / 4; }
.mcard__front { padding: clamp(6px, 1.2vw, 10px); gap: clamp(6px, 1.2vw, 10px); }
.mcard__front .media { flex: 1 1 auto; height: auto; min-height: 0; border-radius: 14px; }
.mcard__label { flex: 0 0 auto; text-align: center; line-height: 1.2; padding: 0 2px; }
/* O tamanho da carta agora respeita a altura do retrato (largura × 4/3). */
.game__board { --size: min(150px, calc((100vw - 2 * clamp(14px, 3vw, 24px) - (var(--cols) - 1) * var(--gap)) / var(--cols)), calc((100svh - 300px - (var(--rows) - 1) * var(--gap)) / var(--rows) * 0.75)); }
.game__board[data-cols='2'] { --size: min(180px, calc((100vw - 60px - var(--gap)) / 2), calc((100svh - 300px - (var(--rows) - 1) * var(--gap)) / var(--rows) * 0.75)); }

/* Painel do item e coleção: a foto também em retrato */
.info-panel__media { aspect-ratio: 3 / 4; max-height: 420px; }
.info-panel__media img { object-position: center top; }
.item-card__media { aspect-ratio: 3 / 4; }

/* Miniatura no CMS */
.row__thumb--portrait { width: 54px; height: 72px; }

/* ==========================================================================
   Mesa de jogo de cartas: feltro verde, moldura dourada e cartas com verso decorado
   ========================================================================== */
.game__board {
  --pad: clamp(12px, 2.2vw, 22px);
  position: relative; isolation: isolate;
  padding: var(--pad); border-radius: 34px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 20%, oklch(46% 0.1 152) 0%, oklch(31% 0.08 152) 60%, oklch(23% 0.06 152) 100%);
  box-shadow:
    0 0 0 6px oklch(74% 0.1 88),
    0 0 0 9px oklch(40% 0.07 85),
    0 40px 70px -28px oklch(14% 0.05 152 / .75),
    inset 0 2px 0 oklch(100% 0 0 / .12),
    inset 0 -30px 60px -30px oklch(0% 0 0 / .45);
  --size: min(150px, calc((100vw - 2 * clamp(14px, 3vw, 24px) - 2 * var(--pad) - (var(--cols) - 1) * var(--gap)) / var(--cols)), calc((100svh - 300px - 2 * var(--pad) - (var(--rows) - 1) * var(--gap)) / var(--rows) * 0.75));
}
.game__board[data-cols='2'] {
  --size: min(180px, calc((100vw - 60px - 2 * var(--pad) - var(--gap)) / 2), calc((100svh - 300px - 2 * var(--pad) - (var(--rows) - 1) * var(--gap)) / var(--rows) * 0.75));
}
/* textura de feltro e linha pontilhada da mesa (não ocupam células da grade) */
.game__board::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}
.game__board::after {
  content: ''; position: absolute; inset: calc(var(--pad) / 2); z-index: -1; border-radius: 24px; pointer-events: none;
  border: 1.5px dashed oklch(89% 0.08 95 / .35);
}

/* Verso da carta: losango dourado sobre verde */
.mcard { border-radius: 16px; }
.mcard__back {
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 50%, oklch(89% 0.08 95 / .22) 0 16%, transparent 17%),
    repeating-linear-gradient(45deg, oklch(100% 0 0 / .06) 0 2px, transparent 2px 12px),
    repeating-linear-gradient(-45deg, oklch(100% 0 0 / .05) 0 2px, transparent 2px 12px),
    linear-gradient(150deg, oklch(44% 0.1 152), oklch(26% 0.07 152));
  border: 2px solid oklch(89% 0.08 95 / .85);
  box-shadow: 0 10px 22px -10px oklch(10% 0.04 152 / .9), inset 0 1px 0 oklch(100% 0 0 / .18);
}
.mcard__back::after { inset: 8px; border-radius: 11px; border: 1.5px solid oklch(89% 0.08 95 / .45); }
.mcard__mark { width: 46%; aspect-ratio: 1; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: radial-gradient(circle, oklch(30% 0.07 152), oklch(22% 0.06 152)); border: 2px solid oklch(89% 0.08 95 / .7); font-size: clamp(20px, 4.4vw, 34px); }

/* Frente da carta: moldura de carta, faixa de título em verde */
.mcard__front {
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, oklch(99% 0.01 95), oklch(96% 0.025 95));
  border: 2px solid oklch(89% 0.08 95);
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px oklch(88% 0.04 150), 0 14px 26px -16px oklch(15% 0.04 152 / .8);
  padding: 6px;
}
.mcard__front .media { border-radius: 11px; }
.mcard__label {
  margin: 0 -2px -2px; padding: 6px 4px; border-radius: 0 0 10px 10px;
  background: var(--green-900); color: var(--yellow-300);
  font-size: clamp(9.5px, 1.9vw, 11.5px); letter-spacing: .02em; text-transform: uppercase;
}
.mcard.is-matched .mcard__front { box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px var(--yellow-400), 0 0 0 3px var(--yellow-400), 0 0 26px 6px oklch(89% 0.08 95 / .55); }
.mcard:not(.is-open):not(.is-matched):hover .mcard__back { box-shadow: 0 16px 30px -12px oklch(10% 0.04 152 / .95), inset 0 1px 0 oklch(100% 0 0 / .25); }

/* ==========================================================================
   Layout do jogo: desktop usa a tela toda; celular empilha e não estoura
   ========================================================================== */
.game { max-width: none; width: 100%; }
.hud { margin-bottom: 12px; gap: 12px; }
.hud-card { padding: 10px 14px; border-radius: 20px; }
.hud-avatar { width: 40px; height: 40px; font-size: 17px; }
.hud-stats { gap: 8px; }
.hud-tile { padding: 8px 6px; border-radius: 16px; }
.hud-tile b { font-size: clamp(16px, 2vw, 22px); }
.game__phase { margin-bottom: 8px; }
.game__title { font-size: clamp(20px, 2.4vw, 28px); }
.game__progress { margin-bottom: 14px; height: 8px; }
.game__table { width: 100%; min-width: 0; }
.game__board {
  --pad: clamp(12px, 1.6vw, 20px);
  width: 100%; max-width: 100%; box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--size));
  justify-content: center; align-content: center;
  --size: min(200px, calc((100cqw - 2 * var(--pad) - (var(--cols) - 1) * var(--gap)) / var(--cols)));
}
.game__table { container-type: inline-size; }

/* Cartas: tudo em proporção do tamanho da carta, para acompanhar a tela */
.mcard { border-radius: calc(var(--size) * 0.09); }
.mcard__back { border-radius: calc(var(--size) * 0.09); }
.mcard__mark { width: 48%; font-size: calc(var(--size) * 0.2); }
.mcard__front { border-radius: calc(var(--size) * 0.09); padding: calc(var(--size) * 0.045); gap: calc(var(--size) * 0.04); display: flex; flex-direction: column; }
.mcard__front .media { flex: 1 1 auto; min-height: 0; height: auto; border-radius: calc(var(--size) * 0.06); }
.mcard__front .mcard__label { display: flex; align-items: center; justify-content: center; min-height: 2.5em; padding: calc(var(--size) * 0.03) calc(var(--size) * 0.04); font-size: calc(var(--size) * 0.085); line-height: 1.2; -webkit-line-clamp: 2; }

@media (min-width: 960px) {
  .game { height: calc(100svh - var(--nav-h)); min-height: 620px; padding-bottom: 12px; display: flex; flex-direction: column; }
  .game > .hud, .game > .game__phase, .game > .game__progress { flex: 0 0 auto; }
  .game__stage { flex: 1 1 auto; min-height: 0; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: stretch; }
  .game__table { height: 100%; min-height: 0; container-type: size; display: flex; align-items: center; justify-content: center; }
  .game__board { width: max-content; max-width: 100%; --size: min(200px, calc((100cqw - 2 * var(--pad) - (var(--cols) - 1) * var(--gap)) / var(--cols)), calc((100cqh - 2 * var(--pad) - (var(--rows) - 1) * var(--gap)) / var(--rows) * 0.75)); }
  .game__stage .game__board { justify-self: center; }
  .info-panel { position: static; height: 100%; display: flex; flex-direction: column; min-height: 0; }
  .info-panel:not(.is-empty) .info-panel__content { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .info-panel__media { flex: 1 1 auto; aspect-ratio: auto; max-height: none; min-height: 0; }
  .info-panel__body { flex: 0 0 auto; }
  .info-panel__desc { font-size: 16px; }
}
@media (max-width: 959px) {
  .game__stage { grid-template-columns: 1fr; }
  .game__board { width: 100%; }
  .info-panel__media { aspect-ratio: 4 / 3; max-height: 320px; }
}
@media (max-width: 480px) {
  .game__board { --pad: 10px; --gap: 8px; }
  .game__board { padding: var(--pad); }
}
@media (min-width: 960px) {
  .hud-card--guest { padding: 8px 12px; }
  .hud-card--guest span { display: none; }
  .hud-card--guest b { font-size: 14px; }
  .hud-card__cta { margin-top: 4px; }
  .hud-card__cta .btn { min-height: 34px; padding: 6px 14px; }
}
@media (min-width: 960px) {
  /* cabeçalho mais baixo: mais altura para a mesa */
  .hud { margin-bottom: 8px; }
  .hud-card { padding: 8px 12px; }
  .hud-tile { padding: 6px 4px; }
  .game__phase { margin-bottom: 4px; align-items: center; }
  .game__phase > div:first-child { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .game__phase .eyebrow { margin: 0; }
  .game__title { margin: 0; font-size: clamp(18px, 2vw, 24px); }
  .game__progress { height: 6px; margin-bottom: 8px; }
  /* a mesa ocupa a área toda e as cartas se distribuem por ela */
  .game__board { width: 100%; height: 100%; justify-content: space-evenly; align-content: space-evenly; }
  .game__board { --size: min(200px, calc((100cqw - 2 * var(--pad) - (var(--cols) - 1) * var(--gap)) / var(--cols)), calc((100cqh - 2 * var(--pad) - (var(--rows) - 1) * var(--gap)) / var(--rows) * 0.75)); }
  .game__table { container-type: size; }
}
@media (max-width: 959px) {
  .hud-card--guest span { display: none; }
  .hud-card--guest { padding: 10px 14px; }
  .game__tools { gap: 6px; }
  .game__tools .chip { min-height: 34px; padding: 6px 12px; font-size: 12px; }
  .game__phase { margin-bottom: 6px; }
  .game__progress { margin-bottom: 10px; }
}

/* ==========================================================================
   Alinhamento do jogo (desktop): uma margem esquerda e direita para tudo,
   cabeçalho compacto, mesa e painel lado a lado, sem sobreposição.
   ========================================================================== */
@media (min-width: 960px) {
  .game {
    position: relative;
    height: calc(100svh - 84px - 4px);
    min-height: 620px;
    padding: 0 0 22px;
    align-items: stretch;
    max-width: 1120px;
    margin-inline: auto;
    box-sizing: border-box;
  }
  .game > * { width: 100%; box-sizing: border-box; }

  /* cabeçalho em uma linha: perfil à esquerda, indicadores à direita */
  .hud { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 10px; margin: 0 0 10px; }
  .hud-card { padding: 8px 12px; height: 100%; box-sizing: border-box; }
  .hud-card--player .hud-card__top b { font-size: 15px; }
  .hud-card--player .hud-xp { margin-top: 6px; }
  .hud-card__meta { margin-top: 6px; }
  .hud-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; height: 100%; }
  .hud-tile { padding: 6px 8px; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 0; }
  .hud-tile b { font-size: 20px; line-height: 1.1; }
  .hud-tile span { margin-top: 2px; }

  /* título da fase e ferramentas na mesma linha */
  .game__phase { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 8px; }
  .game__phase > div:first-child { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
  .game__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .game__tools { flex-wrap: nowrap; justify-content: flex-end; gap: 8px; flex-shrink: 0; }
  .game__tools .chip { white-space: nowrap; }
  .powers { flex-wrap: nowrap; gap: 6px; }

  .game__progress { margin: 0 0 12px; height: 6px; max-width: none; }

  /* mesa e painel ocupam o restante, alinhados ao topo e à base */
  .game__stage { flex: 1 1 auto; min-height: 0; margin: 0 0 22px; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
  .game__table { min-width: 0; min-height: 0; }
  .info-panel { min-height: 0; }

  /* rodapé de status: sem empurrar a página */
  .game__status { position: absolute; left: 24px; bottom: 2px; margin: 0; min-height: 0; font-size: 12px; }
  .game__status:empty { display: none; }
}
@media (min-width: 960px) {
  .game { padding-left: 24px; padding-right: 24px; }
  .game__tools .chip { padding: 6px 10px; font-size: 12px; }
  .power { padding: 5px 7px 5px 10px; font-size: 12px; min-height: 36px; }
}
@media (min-width: 960px) and (max-width: 1240px) {
  .power b { display: none; }
}

/* Aviso de desafio e de vez na partida (visível para jogadores logados). */
.notify { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 16px; background: var(--yellow-300, #f4c542); color: var(--green-900, #183d2b); font-weight: 800; box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .5); }
.notify[hidden] { display: none !important; }
.notify__text { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.notify__close { border: 0; background: transparent; font: inherit; font-size: 22px; line-height: 1; color: inherit; cursor: pointer; padding: 0 4px; }

/* Card de aviso: convite de duelo e vez na partida. */
.notify { position: fixed; top: 84px; right: 16px; left: auto; z-index: 70; width: min(360px, calc(100vw - 32px)); background: transparent; padding: 0; box-shadow: none; display: block; }
.notify[hidden] { display: none !important; }
.notify-card { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 22px; background: #fff; border: 1px solid var(--line, #d7e3d8); box-shadow: 0 24px 40px -22px oklch(14% 0.05 152 / .7); animation: notify-in .4s cubic-bezier(.2, .9, .3, 1.2) both; }
.notify-card--invite { border-color: var(--yellow-400, #e8b923); }
.notify-card__avatar { flex: 0 0 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--green-900, #183d2b); color: var(--yellow-300, #f4c542); font-weight: 800; font-size: 20px; }
.notify-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.notify-card__tag { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red-600, #b8432b); }
.notify-card__title { font-size: 17px; color: var(--green-900, #183d2b); }
.notify-card__sub { color: var(--ink-3, #5b6f63); font-size: 13px; line-height: 1.45; }
.notify-card__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.notify-card__btn { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line, #d7e3d8); background: #fff; color: var(--green-900, #183d2b); font: inherit; font-weight: 800; font-size: 14px; text-decoration: none; cursor: pointer; }
.notify-card__btn--primary { background: var(--green-900, #183d2b); border-color: var(--green-900, #183d2b); color: #fff; }
.notify-card__close { position: absolute; top: 6px; right: 10px; border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--ink-3, #5b6f63); cursor: pointer; }
@keyframes notify-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .notify { top: 72px; left: 12px; right: 12px; width: auto; } }
