/* =====================================================================
   AQUADIVIN — sistema visual
   1. Fontes            6. Cabeçalho          11. Quiz
   2. Tokens            7. Hero               12. Jogos
   3. Base              8. Cenários/artes     13. Comparador
   4. Atmosfera         9. Cartões e painéis  14. Rodapé
   5. Layout           10. Artigo             15. Responsivo
   ===================================================================== */

/* 1. Fontes ---------------------------------------------------------- */
@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

/* 2. Tokens ---------------------------------------------------------- */
:root {
  --abyss: #04070e;
  --deep: #070c17;
  --deep-2: #0a1121;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --amber: #ffb300;
  --amber-soft: #ffcb4d;
  --amber-deep: #b97a00;
  --aqua: #2fd9d0;
  --aqua-deep: #0f7d86;
  --violet: #7c6bff;
  --coral: #ff5f6d;
  --lime: #4fdc8f;

  --ink: #f4f7fb;
  --ink-2: #b9c4d6;
  --ink-3: #7f8ca4;
  --ink-4: #55617a;

  --font-display: "Anton", "Arial Narrow", Impact, system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-xl: 38px;

  --shadow-soft: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --shadow-deep: 0 40px 120px -40px rgba(0, 0, 0, 1);
  --glow-amber: 0 0 60px -12px rgba(255, 179, 0, 0.55);
  --glow-aqua: 0 0 70px -15px rgba(47, 217, 208, 0.5);

  --wrap: 1240px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 3. Base ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--abyss);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
svg { display: block; }
[hidden] { display: none !important; }

a {
  color: var(--amber-soft);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.35rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.1rem; letter-spacing: 0.02em; }

p { margin: 0 0 1.1em; }

::selection { background: var(--amber); color: #10131c; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 999;
  background: var(--amber);
  color: #10131c;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #10131c; }

/* 4. Atmosfera ------------------------------------------------------- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 78% -10%, rgba(255, 179, 0, 0.16), transparent 55%),
    radial-gradient(90% 70% at 12% 6%, rgba(47, 217, 208, 0.16), transparent 58%),
    radial-gradient(120% 90% at 50% 105%, rgba(124, 107, 255, 0.14), transparent 60%),
    linear-gradient(180deg, #060b16 0%, #04070e 45%, #03050b 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* raios de luz descendo, como em água profunda */
.rays {
  position: fixed;
  inset: -20% 0 auto 0;
  height: 130vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background:
    linear-gradient(172deg, rgba(255, 205, 100, 0.09) 0 2%, transparent 3.5%),
    linear-gradient(186deg, rgba(120, 240, 235, 0.07) 0 1.5%, transparent 3%),
    linear-gradient(168deg, rgba(255, 255, 255, 0.045) 0 1%, transparent 2.4%);
  background-size: 55% 100%, 40% 100%, 70% 100%;
  background-position: 12% 0, 62% 0, 82% 0;
  background-repeat: no-repeat;
  filter: blur(3px);
  animation: raySway 22s ease-in-out infinite alternate;
}

@keyframes raySway {
  from { transform: translateX(-2%) skewX(-1deg); }
  to { transform: translateX(3%) skewX(1.5deg); }
}

#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}

/* 5. Layout ---------------------------------------------------------- */
.wrap {
  width: min(100% - 2.6rem, var(--wrap));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 2.6rem, 860px); }

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}
.section-head p {
  max-width: 46ch;
  color: var(--ink-2);
  margin: 0.6rem 0 0;
}
.section-head h2 { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
}
.eyebrow--aqua { color: var(--aqua); }
.eyebrow--aqua::before { background: linear-gradient(90deg, var(--aqua), transparent); }

.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--ink-2);
  line-height: 1.65;
}

.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

/* botões */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, #ffcf4d 0%, var(--amber) 55%, #ef8f00 100%);
  color: #14100a;
  border-color: transparent;
  box-shadow: 0 14px 34px -14px rgba(255, 179, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--primary:hover {
  color: #14100a;
  box-shadow: 0 22px 50px -16px rgba(255, 179, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn--aqua {
  background: linear-gradient(135deg, #55efe6, var(--aqua) 60%, #0f9aa2);
  color: #04191b;
  border-color: transparent;
  box-shadow: 0 14px 34px -14px rgba(47, 217, 208, 0.8);
}
.btn--aqua:hover { color: #04191b; }
.btn--ghost { background: transparent; }
.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* etiquetas */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.tag--amber { color: #ffd77a; border-color: rgba(255, 179, 0, 0.35); background: rgba(255, 179, 0, 0.1); }
.tag--aqua { color: #8ff2ec; border-color: rgba(47, 217, 208, 0.35); background: rgba(47, 217, 208, 0.1); }
.tag--violet { color: #c3b9ff; border-color: rgba(124, 107, 255, 0.35); background: rgba(124, 107, 255, 0.12); }
.tag--coral { color: #ffb0b6; border-color: rgba(255, 95, 109, 0.35); background: rgba(255, 95, 109, 0.12); }
.tag--lime { color: #a6f0c8; border-color: rgba(79, 220, 143, 0.32); background: rgba(79, 220, 143, 0.1); }

/* 6. Cabeçalho ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(5, 9, 17, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.05rem 0;
}

.brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand:hover { filter: brightness(1.12); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-block: 0;
}
.nav-links a {
  display: block;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.93rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--surface-2); color: #fff; }
.nav-links a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 179, 0, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 179, 0, 0.3);
}

.nav-cta { flex-shrink: 0; }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s var(--ease), background 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* 7. Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

.hero__stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.hero__glow--amber {
  width: 46vw; height: 46vw;
  right: -6vw; top: 4vh;
  background: radial-gradient(circle, rgba(255, 179, 0, 0.4), transparent 66%);
  animation: pulseGlow 9s ease-in-out infinite alternate;
}
.hero__glow--aqua {
  width: 40vw; height: 40vw;
  left: -10vw; bottom: -8vh;
  background: radial-gradient(circle, rgba(47, 217, 208, 0.32), transparent 66%);
  animation: pulseGlow 11s ease-in-out infinite alternate-reverse;
}
@keyframes pulseGlow {
  from { opacity: 0.65; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1.08); }
}

/* silhuetas em camadas de profundidade */
.hero__layer {
  position: absolute;
  color: rgba(180, 220, 255, 0.09);
  will-change: transform;
}
.hero__layer svg { width: 100%; height: auto; }

.hero__layer--whale {
  width: clamp(420px, 52vw, 900px);
  right: -6%;
  bottom: 2%;
  color: rgba(120, 190, 220, 0.14);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
  animation: floatY 14s ease-in-out infinite alternate;
}
.hero__layer--birds {
  width: clamp(160px, 20vw, 300px);
  left: 4%;
  top: 14%;
  color: rgba(255, 179, 0, 0.22);
  animation: floatY 9s ease-in-out infinite alternate-reverse;
}
.hero__layer--jelly {
  width: clamp(80px, 9vw, 140px);
  left: 6%;
  bottom: 12%;
  color: rgba(150, 130, 255, 0.26);
  animation: floatY 12s ease-in-out infinite alternate;
}
.hero__layer--turtle {
  width: clamp(110px, 13vw, 200px);
  left: 22%;
  bottom: -2%;
  color: rgba(47, 217, 208, 0.16);
  animation: floatY 16s ease-in-out infinite alternate-reverse;
}
@keyframes floatY {
  from { transform: translate3d(0, 0, 0) rotate(-1deg); }
  to { transform: translate3d(0, -26px, 0) rotate(1.5deg); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 42rem;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .accent {
  background: linear-gradient(100deg, #ffe08a, var(--amber) 40%, #ff8a3d 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 26px rgba(255, 179, 0, 0.35));
}
.hero .lead { max-width: 38rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 3.6rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1;
  color: #fff;
}
.stat__num span { color: var(--amber); }
.stat__label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 0.4rem;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 42px;
  background: linear-gradient(180deg, var(--amber), transparent);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.2; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* faixa de fatos rápidos */
.factbar {
  position: relative;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 179, 0, 0.06), rgba(47, 217, 208, 0.06));
  overflow: hidden;
  padding: 0.85rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.factbar__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.factbar:hover .factbar__track { animation-play-state: paused; }
.factbar__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.87rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.factbar__item b { color: var(--amber); font-weight: 700; }
.factbar__item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 10px var(--aqua);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 8. Cenários (arte por categoria) ----------------------------------- */
.scene {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--deep-2);
}
.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--scene-bg, radial-gradient(120% 100% at 30% 0%, #16324a, #060c17 70%));
}
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 42%, rgba(4, 7, 14, 0.72) 100%);
  pointer-events: none;
}
.scene__art {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--scene-fg, rgba(255, 255, 255, 0.3));
  transition: transform 0.7s var(--ease);
}
.scene__art::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--scene-glow, radial-gradient(circle, rgba(120, 220, 255, 0.22), transparent 68%));
  filter: blur(18px);
}
.scene__art svg {
  position: relative;
  width: 72%;
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.6));
}
.scene__caption {
  position: relative;
  z-index: 3;
}

.scene--oceanos {
  --scene-bg: radial-gradient(120% 110% at 26% -10%, #16617f 0%, #0c3251 42%, #060d1c 100%);
  --scene-fg: rgba(186, 240, 255, 0.42);
  --scene-glow: radial-gradient(circle, rgba(60, 200, 235, 0.3), transparent 68%);
}
.scene--aves {
  --scene-bg: radial-gradient(120% 110% at 74% -10%, #8a5f10 0%, #3a2c14 45%, #0a0b12 100%);
  --scene-fg: rgba(255, 220, 150, 0.44);
  --scene-glow: radial-gradient(circle, rgba(255, 180, 40, 0.28), transparent 68%);
}
.scene--mamiferos {
  --scene-bg: radial-gradient(120% 110% at 30% -10%, #7a4415 0%, #35211a 45%, #0a0b12 100%);
  --scene-fg: rgba(255, 205, 160, 0.42);
  --scene-glow: radial-gradient(circle, rgba(255, 140, 60, 0.25), transparent 68%);
}
.scene--repteis {
  --scene-bg: radial-gradient(120% 110% at 70% -10%, #1f7a4c 0%, #12402d 45%, #060f10 100%);
  --scene-fg: rgba(170, 255, 210, 0.4);
  --scene-glow: radial-gradient(circle, rgba(60, 230, 150, 0.26), transparent 68%);
}
.scene--insetos {
  --scene-bg: radial-gradient(120% 110% at 40% -10%, #613a8c 0%, #2c2050 45%, #0a0818 100%);
  --scene-fg: rgba(216, 198, 255, 0.44);
  --scene-glow: radial-gradient(circle, rgba(150, 110, 255, 0.28), transparent 68%);
}
.scene--extremos {
  --scene-bg: radial-gradient(120% 110% at 60% -10%, #24698f 0%, #182f47 42%, #05090f 100%);
  --scene-fg: rgba(200, 240, 255, 0.42);
  --scene-glow: radial-gradient(circle, rgba(90, 200, 255, 0.26), transparent 68%);
}

/* 9. Cartões e painéis ----------------------------------------------- */
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    rgba(8, 13, 24, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.panel--flat { backdrop-filter: none; }

/* cartão de artigo */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 179, 0, 0.35);
  box-shadow: var(--shadow-deep), 0 0 50px -22px rgba(255, 179, 0, 0.7);
}
.card:hover .scene__art { transform: scale(1.09) translateY(-4px); }
.card__media {
  aspect-ratio: 16 / 10;
  position: relative;
}
.card__media .tag { position: absolute; top: 1rem; left: 1rem; z-index: 3; backdrop-filter: blur(6px); }
.card__body {
  padding: 1.35rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.06;
  margin: 0;
  color: #fff;
}
.card__excerpt {
  color: var(--ink-2);
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0;
}
.card__meta {
  margin-top: auto;
  padding-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.7rem;
  font-size: 0.78rem;
  color: var(--ink-4);
  letter-spacing: 0.05em;
}
.card__meta > span + span::before { content: "·"; margin-right: 0.7rem; }
.card__link { position: absolute; inset: 0; z-index: 4; }
.card__link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* cartão em destaque (composição maior) */
.card--feature {
  grid-column: span 2;
  flex-direction: row;
  min-height: 340px;
}
.card--feature .card__media { aspect-ratio: auto; flex: 1 1 44%; }
.card--feature .card__body { flex: 1 1 56%; justify-content: center; padding: clamp(1.5rem, 2.4vw, 2.2rem); }
.card--feature .card__title { font-size: clamp(1.5rem, 2.1vw, 2rem); }
.card--feature .card__excerpt { font-size: .96rem; }

/* mosaico de categorias */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 250px;
  padding: 1.4rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.tile:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.tile:hover .scene__art { transform: scale(1.12) rotate(-2deg); }
.tile--wide { grid-column: span 2; }
.tile--full { grid-column: 1 / -1; min-height: 200px; }
.tile--tall { grid-row: span 2; min-height: 100%; }
.tile__label {
  position: relative;
  z-index: 3;
}
.tile__label h3 { margin: 0 0 0.2rem; color: #fff; }
.tile__label p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--ink-3);
}
.tile__count {
  position: absolute;
  top: 1.2rem; right: 1.3rem;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.16);
}

/* blocos de "sabia que" */
.factgrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.factcard {
  position: relative;
  padding: 1.5rem 1.4rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.factcard:hover { transform: translateY(-5px); border-color: rgba(47, 217, 208, 0.4); }
.factcard::before {
  content: "";
  position: absolute;
  width: 130px; height: 130px;
  right: -50px; top: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 217, 208, 0.22), transparent 70%);
}
.factcard__icon {
  width: 44px; height: 44px;
  margin-bottom: 0.9rem;
  color: var(--amber);
}
.factcard h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.factcard p { margin: 0; font-size: 0.9rem; color: var(--ink-2); }

/* faixa de destaque com número gigante */
.bignum {
  font-family: var(--font-display);
  font-size: clamp(4rem, 13vw, 11rem);
  line-height: 0.82;
  background: linear-gradient(180deg, #fff 10%, rgba(255, 179, 0, 0.75) 60%, rgba(255, 179, 0, 0.1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* barras de busca e filtros */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 2.2rem;
}
.search {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
}
.search input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.9rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search input::placeholder { color: var(--ink-4); }
.search input:focus {
  outline: none;
  border-color: rgba(255, 179, 0, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 179, 0, 0.12);
}
.search svg {
  position: absolute;
  left: 1.05rem; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--ink-4);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}
.chip:hover { color: #fff; border-color: var(--line-strong); }
.chip[aria-pressed="true"] {
  background: linear-gradient(135deg, #ffcf4d, var(--amber));
  color: #14100a;
  border-color: transparent;
  font-weight: 600;
}
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--ink-3);
}

/* 10. Artigo --------------------------------------------------------- */
.article-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}
.article-hero__art {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(300px, 42vw, 660px);
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  animation: floatY 15s ease-in-out infinite alternate;
}
.article-hero__art svg { width: 100%; height: auto; filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6)); }
.article-hero h1 { max-width: 20ch; }
.article-hero .lead { max-width: 46ch; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  font-size: 0.8rem;
  color: var(--ink-4);
}
.breadcrumb li { display: flex; align-items: center; gap: 0.45rem; }
.breadcrumb li + li::before { content: "/"; color: var(--ink-4); }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--amber); }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  align-items: center;
  margin-top: 1.6rem;
  font-size: 0.83rem;
  color: var(--ink-3);
}
/* O separador acompanha o item seguinte para não sobrar solto no fim da linha. */
.article-meta > span + span::before {
  content: "·";
  margin-right: 1.2rem;
  color: var(--ink-4);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
}
.article-tags li {
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 4vw, 3.6rem);
  align-items: start;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.prose { max-width: 72ch; font-size: 1.06rem; }
.prose h2 {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}
.prose h3 {
  margin-top: 2rem;
  font-size: 1.28rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.prose p { color: var(--ink-2); }
.prose strong { color: #fff; font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 179, 0, 0.4); }
.prose ul, .prose ol { color: var(--ink-2); padding-left: 1.3rem; margin: 0 0 1.3rem; }
.prose li { margin-bottom: 0.55rem; }
.prose li::marker { color: var(--amber); }
.prose figure { margin: 2rem 0; }
.prose blockquote {
  margin: 2rem 0;
  padding: 1.3rem 1.6rem;
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: linear-gradient(90deg, rgba(255, 179, 0, 0.1), transparent);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.6;
}
.prose blockquote p:last-child { margin: 0; }

.callout {
  margin: 2.2rem 0;
  padding: 1.4rem 1.6rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(47, 217, 208, 0.28);
  background: linear-gradient(135deg, rgba(47, 217, 208, 0.12), rgba(47, 217, 208, 0.02));
}
.callout h4 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--aqua);
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.callout p:last-child { margin: 0; }
.callout--amber { border-color: rgba(255, 179, 0, 0.3); background: linear-gradient(135deg, rgba(255, 179, 0, 0.12), rgba(255, 179, 0, 0.02)); }
.callout--amber h4 { color: var(--amber); }

/* ficha de dados */
.datasheet {
  margin: 2.4rem 0;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
}
.datasheet__head {
  padding: 0.9rem 1.3rem;
  background: linear-gradient(90deg, rgba(255, 179, 0, 0.16), transparent);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}
.datasheet dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
}
.datasheet div {
  background: #070c17;
  padding: 1rem 1.3rem;
}
.datasheet dt {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 0.3rem;
}
.datasheet dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
  color: #fff;
}
.datasheet dd small {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-3);
  font-weight: 500;
}

/* barra de progresso de leitura */
.readbar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  z-index: 80;
  background: linear-gradient(90deg, var(--aqua), var(--amber));
  box-shadow: 0 0 14px rgba(255, 179, 0, 0.6);
  transition: width 0.1s linear;
}

/* sidebar */
.sidebar { position: sticky; top: 92px; display: grid; gap: 1.2rem; }
.sidebar .panel { padding: 1.3rem 1.4rem; border-radius: var(--r-md); }
.sidebar h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.9rem;
}
.toc { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.15rem; }
.toc a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  border-left: 2px solid transparent;
  color: var(--ink-2);
  font-size: 0.88rem;
  line-height: 1.4;
}
.toc a:hover { background: var(--surface-2); color: #fff; }
.toc a.is-active {
  border-left-color: var(--amber);
  color: #fff;
  background: rgba(255, 179, 0, 0.1);
}
.sidelist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.sidelist a { display: block; color: var(--ink-2); font-size: 0.9rem; line-height: 1.4; font-weight: 500; }
.sidelist a:hover { color: var(--amber); }
.sidelist span { display: block; font-size: 0.72rem; color: var(--ink-4); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.15rem; }

/* FAQ */
.faq { display: grid; gap: 0.7rem; margin-top: 1.5rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq details[open] { border-color: rgba(255, 179, 0, 0.3); }
.faq summary {
  padding: 1.05rem 1.3rem;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--amber);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--ink-2); font-size: 0.95rem; }

/* navegação entre artigos */
.pagenav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.pagenav a {
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.pagenav a:hover { border-color: rgba(255, 179, 0, 0.4); transform: translateY(-3px); }
.pagenav span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 0.35rem;
}
.pagenav b { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.pagenav a:last-child { text-align: right; }

/* 11. Quiz ----------------------------------------------------------- */
.quiz {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(255, 179, 0, 0.14), transparent 55%),
    radial-gradient(80% 120% at 0% 100%, rgba(47, 217, 208, 0.12), transparent 55%),
    rgba(7, 12, 23, 0.85);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: clamp(1.6rem, 3.6vw, 2.8rem);
  overflow: hidden;
}
.quiz__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.quiz__score { color: var(--amber); font-weight: 700; }
.progress {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 1.8rem;
}
.progress__fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--aqua), var(--amber));
  transition: width 0.45s var(--ease);
}
.quiz__question {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.08;
  margin: 0 0 1.5rem;
  color: #fff;
}
.quiz__options { display: grid; gap: 0.7rem; }
.option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  text-align: left;
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.option:hover:not(:disabled) {
  border-color: rgba(255, 179, 0, 0.5);
  background: rgba(255, 179, 0, 0.08);
  transform: translateX(4px);
}
.option__key {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--ink-2);
}
.option.is-correct {
  border-color: rgba(79, 220, 143, 0.7);
  background: rgba(79, 220, 143, 0.14);
}
.option.is-correct .option__key { background: var(--lime); color: #04150c; }
.option.is-wrong {
  border-color: rgba(255, 95, 109, 0.7);
  background: rgba(255, 95, 109, 0.13);
}
.option.is-wrong .option__key { background: var(--coral); color: #1c0507; }
.option:disabled { cursor: default; }

.quiz__feedback {
  margin-top: 1.3rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.93rem;
  color: var(--ink-2);
  display: none;
}
.quiz__feedback.is-visible { display: block; animation: fadeUp 0.35s var(--ease); }
.quiz__feedback b { color: #fff; display: block; margin-bottom: 0.25rem; }

.quiz__footer { display: flex; justify-content: flex-end; margin-top: 1.4rem; }

.quiz__result { text-align: center; padding: 1rem 0 0.5rem; }
.quiz__result .bignum { display: block; margin-bottom: 0.4rem; }
.quiz__result p { color: var(--ink-2); max-width: 40ch; margin-inline: auto; }
.quiz__actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* seletor de quiz */
.quizlist { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.quizcard {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012));
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
  overflow: hidden;
}
.quizcard:hover { transform: translateY(-6px); border-color: rgba(255, 179, 0, 0.4); box-shadow: 0 0 44px -20px rgba(255, 179, 0, 0.8); }
.quizcard[aria-pressed="true"] { border-color: var(--amber); box-shadow: 0 0 44px -18px rgba(255, 179, 0, 0.9); }
.quizcard h3 { font-size: 1.25rem; margin: 0.8rem 0 0.4rem; color: #fff; }
.quizcard p { font-size: 0.88rem; color: var(--ink-3); margin: 0 0 0.9rem; }
.quizcard__meta { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.quizcard__icon { width: 40px; height: 40px; color: var(--aqua); }

/* 12. Jogos ---------------------------------------------------------- */
.gameboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  max-width: 620px;
  margin-inline: auto;
}
.memcard {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  perspective: 900px;
}
.memcard__inner {
  display: block;
  position: relative;
  width: 100%; height: 100%;
  transition: transform 0.5s var(--ease);
  transform-style: preserve-3d;
}
.memcard.is-flipped .memcard__inner,
.memcard.is-matched .memcard__inner { transform: rotateY(180deg); }
.memcard__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  backface-visibility: hidden;
  overflow: hidden;
}
.memcard__face--back {
  background:
    radial-gradient(70% 70% at 50% 30%, rgba(255, 179, 0, 0.22), transparent 70%),
    linear-gradient(160deg, #121a2c, #080d18);
}
.memcard__face--back img { width: 42%; opacity: 0.55; }
.memcard__face--front {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, rgba(47, 217, 208, 0.16), rgba(8, 13, 24, 0.9));
  color: var(--aqua);
}
.memcard__face--front svg { width: 68%; height: auto; }
.memcard.is-matched .memcard__face--front {
  border-color: rgba(79, 220, 143, 0.6);
  background: linear-gradient(160deg, rgba(79, 220, 143, 0.2), rgba(8, 13, 24, 0.9));
  color: var(--lime);
}
.memcard:hover:not(.is-matched) .memcard__inner { transform: translateY(-3px) rotateY(0deg); }
.memcard.is-flipped:hover .memcard__inner { transform: rotateY(180deg); }

.gamebar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.8rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  width: fit-content;
  margin-inline: auto;
}
.gamebar div { text-align: center; }
.gamebar b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
}
.gamebar span {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* duelo de animais */
.duel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
}
.duel__vs {
  align-self: center;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--amber);
  text-shadow: 0 0 30px rgba(255, 179, 0, 0.6);
}
.duel__side {
  position: relative;
  padding: 1.6rem 1.4rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  cursor: pointer;
  text-align: center;
  font: inherit;
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.25s, box-shadow 0.3s;
}
.duel__side:hover:not(:disabled) {
  transform: translateY(-5px);
  border-color: rgba(255, 179, 0, 0.5);
  box-shadow: 0 0 50px -22px rgba(255, 179, 0, 0.9);
}
.duel__side svg {
  width: 58%;
  margin: 0 auto 0.8rem;
  height: auto;
  color: rgba(190, 232, 255, 0.6);
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.55));
  transition: color 0.3s var(--ease), transform 0.4s var(--ease);
}
.duel__side:hover:not(:disabled) svg { color: var(--amber-soft); transform: scale(1.05); }
.duel__side.is-win svg { color: var(--lime); }
.duel__side h3 { margin: 0 0 0.2rem; font-size: 1.3rem; color: #fff; }
.duel__side p { margin: 0; font-size: 0.8rem; color: var(--ink-3); }
.duel__side.is-win { border-color: rgba(79, 220, 143, 0.7); background: linear-gradient(180deg, rgba(79, 220, 143, 0.16), rgba(255, 255, 255, 0.01)); }
.duel__side.is-lose { border-color: rgba(255, 95, 109, 0.5); opacity: 0.7; }
.duel__value {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--amber);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.35s var(--ease);
}
.duel__side.is-revealed .duel__value { opacity: 1; transform: none; }

/* silhueta misteriosa */
.guess__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 90% at 50% 20%, rgba(47, 217, 208, 0.16), transparent 70%),
    linear-gradient(180deg, #0b1424, #060a13);
  overflow: hidden;
  margin-bottom: 1.6rem;
}
.guess__stage svg {
  width: 46%;
  height: auto;
  color: #04070e;
  filter: drop-shadow(0 0 40px rgba(47, 217, 208, 0.55));
  transition: color 0.5s, filter 0.5s;
}
.guess__stage.is-revealed svg { color: rgba(255, 179, 0, 0.85); filter: drop-shadow(0 0 60px rgba(255, 179, 0, 0.6)); }

/* 13. Comparador ----------------------------------------------------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}
.selector {
  display: grid;
  gap: 0.8rem;
}
.selector select {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: #0a1122;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  cursor: pointer;
}
.selector select:focus { outline: none; border-color: var(--amber); }

.animalcard {
  position: relative;
  padding: 1.6rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}
.animalcard svg {
  display: block;
  width: auto;
  height: 96px;
  max-width: 76%;
  margin: 0.4rem auto 1.1rem;
  color: rgba(180, 225, 255, 0.55);
}
.animalcard h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3em;
  margin: 0 0 0.15rem;
  color: #fff;
}
.animalcard em { font-style: italic; font-size: 0.82rem; color: var(--ink-4); }

.statbars { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.statbar__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}
.statbar__head b {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.statbar__v { font-style: normal; display: inline-flex; align-items: center; gap: 0.4rem; }
.statbar__v::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.statbar__v--a { color: var(--aqua); }
.statbar__v--b { color: var(--amber); }
.statbar__track {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.statbar__fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--aqua-deep), var(--aqua));
  transition: width 0.8s var(--ease);
}
.statbar__fill--b { background: linear-gradient(90deg, var(--amber-deep), var(--amber)); }
.verdict {
  margin-top: 1.6rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 179, 0, 0.3);
  background: linear-gradient(120deg, rgba(255, 179, 0, 0.12), transparent);
  font-size: 0.95rem;
  color: var(--ink-2);
}
.verdict b { color: #fff; }

/* tabela de recordes */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
table.records {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 520px;
}
table.records th,
table.records td { padding: 0.9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
table.records th {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  background: rgba(255, 255, 255, 0.03);
}
table.records td { color: var(--ink-2); }
table.records tbody tr:hover { background: rgba(255, 179, 0, 0.05); }
table.records td:first-child { color: #fff; font-weight: 600; }
table.records td b { font-family: var(--font-display); font-weight: 400; color: var(--amber); font-size: 1.05rem; }
table.records tr:last-child td { border-bottom: 0; }

/* Em telas estreitas a tabela vira uma pilha de fichas: rolagem lateral em
   tabela de quatro colunas é desconfortável e esconde a coluna do número. */
@media (max-width: 640px) {
  .table-wrap { border: 0; border-radius: 0; overflow: visible; }
  table.records { min-width: 0; display: block; font-size: 0.95rem; }
  table.records thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.records tbody { display: block; }
  table.records tr {
    display: block;
    margin-bottom: 0.8rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.02);
  }
  table.records tr:hover { background: rgba(255, 255, 255, 0.02); }
  table.records td { display: block; padding: 0; border: 0; }
  table.records td:first-child {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.2rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
    margin-bottom: 0.7rem;
  }
  table.records td:not(:first-child) {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border-top: 1px solid var(--line);
  }
  table.records td:not(:first-child)::before {
    content: attr(data-rotulo);
    flex: none;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-4);
  }
  table.records td:last-child { text-align: right; font-size: 0.88rem; }
  table.records td b { font-size: 1.15rem; }
}

/* 14. CTA e rodapé --------------------------------------------------- */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(2.2rem, 5vw, 4rem);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 130% at 85% 10%, rgba(255, 179, 0, 0.24), transparent 60%),
    radial-gradient(70% 120% at 5% 90%, rgba(47, 217, 208, 0.2), transparent 60%),
    linear-gradient(160deg, #0c1526, #06090f);
  box-shadow: var(--shadow-deep);
}
.cta-band__art {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(200px, 26vw, 420px);
  color: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}
.cta-band h2 { max-width: 16ch; }
.cta-band p { max-width: 46ch; color: var(--ink-2); }
.cta-band > * { position: relative; z-index: 2; }

.site-footer {
  position: relative;
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.4rem;
}
.footer-grid p { color: var(--ink-3); font-size: 0.9rem; max-width: 34ch; }
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-grid a { color: var(--ink-2); font-size: 0.91rem; }
.footer-grid a:hover { color: var(--amber); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-4);
}

/* 15. Animações de entrada e responsivo ------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile--tall { grid-row: span 1; min-height: 250px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 1rem 1.3rem 1.6rem;
    background: #060a13;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .nav-links.is-open { transform: none; }

  body.nav-aberto { overflow: hidden; }
  body.nav-aberto::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(2, 5, 11, 0.7);
    backdrop-filter: blur(3px);
  }
  .nav-links a { padding: 0.85rem 1rem; font-size: 1rem; }
  .nav-toggle { display: grid; }
  .nav-cta { display: none; }
  .nav-links .nav-cta-mobile { display: block; margin-top: 0.7rem; }
  /* Sem isto o `.nav-links a` sobrescreve a cor do texto do botão. */
  .nav-links .nav-cta-mobile a.btn--primary {
    justify-content: center;
    padding: 0.9rem 1rem;
    color: #14100a;
  }

  .hero { min-height: auto; padding-top: 2.5rem; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero__layer--jelly, .hero__layer--turtle { display: none; }
  .hero__layer--whale { width: 130%; right: -30%; bottom: -4%; opacity: 0.55; }
  .hero__layer--birds { width: 130px; left: auto; right: 6%; top: 4%; }
  .hero__scroll { display: none; }
  .hero__content { max-width: none; }

  .card--feature { grid-column: span 1; flex-direction: column; }
  .card--feature .card__media { aspect-ratio: 16 / 10; }
  .compare { grid-template-columns: 1fr; }
  .duel { grid-template-columns: 1fr; }
  .duel__vs { justify-self: center; }
  /* São 16 cartas: manter 4 colunas fecha o tabuleiro em quatro linhas cheias. */
  .gameboard { gap: 0.5rem; }
  .article-hero__art { opacity: 0.4; right: -20%; width: 90%; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .pagenav a:last-child { text-align: left; }
}

@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gamebar { width: 100%; border-radius: var(--r-md); }
  .datasheet dl { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .atmosphere, .rays, #particles, .sidebar, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
}
