/* OncoPediPlay — visual Claude Design */

@import url("https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800;900&display=swap");

:root {
  --bg: #fff9eb;
  --bg-soft: #fffdf6;
  --bg-dark: #f5ecd8;
  --pink: #ff6eb4;
  --pink-deep: #db2777;
  --blue: #4d96ff;
  --blue-deep: #2563eb;
  --green: #6bcb77;
  --green-deep: #15803d;
  --yellow: #ffd93d;
  --yellow-deep: #d97706;
  --purple: #c77dff;
  --purple-deep: #7c3aed;
  --text: #444;
  --text-soft: #556;
  --text-muted: #b09ab8;
  --surface: #fff;
  --max: 940px;
  --radius: 20px;
  --radius-lg: 28px;
  --sea: #3eb8e8;
  --sea-deep: #1682b5;
  --shore-line: 36vh;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--sea-deep);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

@keyframes fadeInSlide {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes bgDrift {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-22px) rotate(180deg) scale(1.1); }
}

@keyframes popIn {
  0% { transform: scale(0.4); opacity: 0; }
  65% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes tvFloat {
  0% { transform: translateY(120%); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(-120%); opacity: 0; }
}

@keyframes antennaPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px currentColor; }
  50% { transform: scale(1.2); box-shadow: 0 0 22px currentColor; }
}

@keyframes swim {
  0%, 100% { transform: translateX(0) translateY(0) scaleX(1); }
  25% { transform: translateX(18px) translateY(-8px) scaleX(1); }
  50% { transform: translateX(8px) translateY(4px) scaleX(-1); }
  75% { transform: translateX(-14px) translateY(-5px) scaleX(-1); }
}

@keyframes bubbleRise {
  0% { transform: translateY(0) scale(1); opacity: 0.5; }
  100% { transform: translateY(-120vh) scale(1.2); opacity: 0; }
}

@keyframes waveShift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes waveWash {
  0%, 100% { transform: translateY(28px); }
  50% { transform: translateY(-6px); }
}

@keyframes waveWash2 {
  0%, 100% { transform: translateY(18px); }
  50% { transform: translateY(-14px); }
}

@keyframes wetSandWash {
  0%, 100% { transform: translateY(22px); opacity: 0.5; }
  50% { transform: translateY(-8px); opacity: 1; }
}

@keyframes foamBubblePop {
  0%, 100% { transform: scale(0.85); opacity: 0.35; }
  50% { transform: scale(1.15); opacity: 0.75; }
}

@keyframes planktonDrift {
  0%, 100% { transform: translate(0, 0); opacity: 0.35; }
  25% { transform: translate(12px, -8px); opacity: 0.65; }
  50% { transform: translate(-6px, -14px); opacity: 0.5; }
  75% { transform: translate(-14px, -4px); opacity: 0.6; }
}

@keyframes raysShimmer {
  0%, 100% { opacity: 0.55; transform: translateX(0); }
  50% { opacity: 0.85; transform: translateX(18px); }
}

@keyframes creatureBob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

/* === Cenário mar / areia === */
.ocean-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ocean-sand {
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--shore-line, 36vh) + 16px);
  min-height: 240px;
  z-index: 0;
  background:
    radial-gradient(ellipse at 15% 90%, rgba(210, 175, 120, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(200, 165, 110, 0.28) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(180, 140, 90, 0.15) 0%, transparent 40%),
    linear-gradient(
      180deg,
      #fdf8ee 0%,
      #f7e7c3 45%,
      #e8d4a8 72%,
      rgba(232, 212, 168, 0.55) 88%,
      transparent 100%
    );
}

.ocean-sand-wet {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--shore-line, 36vh) - 80px);
  height: 88px;
  z-index: 2;
  background:
    radial-gradient(ellipse 60% 100% at 15% 100%, rgba(100, 72, 38, 0.55) 0%, transparent 74%),
    radial-gradient(ellipse 50% 100% at 48% 100%, rgba(92, 66, 34, 0.5) 0%, transparent 70%),
    radial-gradient(ellipse 55% 100% at 84% 100%, rgba(105, 76, 40, 0.52) 0%, transparent 72%),
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(140, 108, 62, 0.12) 18%,
      rgba(120, 90, 52, 0.32) 48%,
      rgba(88, 64, 36, 0.58) 78%,
      rgba(72, 52, 28, 0.42) 100%
    );
  mix-blend-mode: multiply;
  animation: wetSandWash 5s ease-in-out infinite;
  pointer-events: none;
}

.ocean-sea {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--shore-line, 36vh) - 96px);
  bottom: 0;
  min-height: 50vh;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 70% 60%, rgba(0, 80, 120, 0.2) 0%, transparent 50%),
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(110, 207, 245, 0.18) 10%,
      rgba(110, 207, 245, 0.55) 22%,
      #6ecff5 32%,
      #3eb8e8 48%,
      #2596c9 68%,
      #1682b5 100%
    );
}

.ocean-rays {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(168deg, transparent 38%, rgba(255, 255, 255, 0.07) 44%, transparent 50%),
    linear-gradient(175deg, transparent 32%, rgba(255, 255, 255, 0.05) 40%, transparent 46%),
    linear-gradient(182deg, transparent 42%, rgba(255, 255, 255, 0.06) 48%, transparent 54%),
    linear-gradient(190deg, transparent 28%, rgba(255, 255, 255, 0.04) 36%, transparent 42%);
  animation: raysShimmer 22s ease-in-out infinite;
  pointer-events: none;
}

.ocean-waves {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--shore-line, 36vh) - 88px);
  height: 110px;
  z-index: 4;
  overflow: hidden;
}

.ocean-wave-layer {
  position: absolute;
  left: 0;
  width: 200%;
  height: 100%;
  animation: waveShift 12s linear infinite;
}

.ocean-wave-layer--2 {
  animation-duration: 16s;
  animation-direction: reverse;
  opacity: 0.75;
  top: 8px;
}

.ocean-wave-layer--3 {
  animation-duration: 9s;
  opacity: 0.55;
  top: 16px;
}

.ocean-wave-layer svg {
  width: 50%;
  height: 100%;
  float: left;
  display: block;
}

.ocean-wave-foam {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--shore-line, 36vh) - 52px);
  height: 56px;
  z-index: 5;
  animation: waveWash2 4.5s ease-in-out infinite;
}

.ocean-wave-foam svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ocean-foam-bubbles {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--shore-line, 36vh) - 58px);
  height: 64px;
  z-index: 4;
  overflow: hidden;
  animation: waveWash2 4.5s ease-in-out infinite;
  pointer-events: none;
}

.ocean-foam-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.35) 70%, transparent);
  animation: foamBubblePop 3.5s ease-in-out infinite;
}

.ocean-foam-bubble--1 { animation-delay: 0s; }
.ocean-foam-bubble--2 { animation-delay: 0.4s; }
.ocean-foam-bubble--3 { animation-delay: 0.8s; }
.ocean-foam-bubble--4 { animation-delay: 1.2s; }
.ocean-foam-bubble--5 { animation-delay: 1.6s; }
.ocean-foam-bubble--6 { animation-delay: 2s; }
.ocean-foam-bubble--7 { animation-delay: 0.6s; }
.ocean-foam-bubble--8 { animation-delay: 1s; }
.ocean-foam-bubble--9 { animation-delay: 1.4s; }
.ocean-foam-bubble--10 { animation-delay: 1.8s; }
.ocean-foam-bubble--11 { animation-delay: 2.2s; }
.ocean-foam-bubble--12 { animation-delay: 2.6s; }

.ocean-wash {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--shore-line, 36vh) - 40px);
  height: 48px;
  z-index: 3;
  background: linear-gradient(180deg, rgba(110, 207, 245, 0.35) 0%, rgba(110, 207, 245, 0) 100%);
  animation: waveWash 5s ease-in-out infinite;
}

.ocean-creature {
  position: absolute;
  z-index: 1;
  line-height: 1;
  filter: drop-shadow(0 3px 6px rgba(0, 60, 100, 0.25));
}

.ocean-creature--fish1 { left: 8%; top: 52%; font-size: 2rem; animation: swim 11s ease-in-out infinite; }
.ocean-creature--fish2 { left: 72%; top: 62%; font-size: 1.75rem; animation: swim 14s ease-in-out infinite 1s; }
.ocean-creature--fish3 { left: 42%; top: 78%; font-size: 1.5rem; animation: swim 10s ease-in-out infinite 2s; }
.ocean-creature--octopus { left: 18%; top: 68%; font-size: 2.4rem; animation: creatureBob 5s ease-in-out infinite; }
.ocean-creature--crab { left: 58%; top: 48%; font-size: 1.6rem; animation: creatureBob 4s ease-in-out infinite 0.5s; }
.ocean-creature--shell { left: 85%; top: 55%; font-size: 1.5rem; animation: creatureBob 6s ease-in-out infinite 1.2s; }
.ocean-creature--coral { left: 32%; top: 58%; font-size: 1.65rem; animation: creatureBob 7s ease-in-out infinite 0.8s; }
.ocean-creature--jelly { left: 68%; top: 82%; font-size: 1.8rem; animation: creatureBob 8s ease-in-out infinite 1.5s; opacity: 0.85; }

.ocean-starfish {
  position: absolute;
  z-index: 4;
  width: 44px;
  height: 44px;
  animation: creatureBob 6s ease-in-out infinite;
}

.ocean-starfish--1 { left: 12%; top: calc(var(--shore-line, 36vh) - 36px); }
.ocean-starfish--2 { left: 78%; top: calc(var(--shore-line, 36vh) - 28px); width: 36px; height: 36px; animation-delay: 1.5s; }

.ocean-bubble {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  animation: bubbleRise linear infinite;
  z-index: 1;
}

.ocean-plankton {
  position: absolute;
  border-radius: 50%;
  background: rgba(200, 240, 255, 0.55);
  box-shadow: 0 0 6px rgba(180, 230, 255, 0.35);
  animation: planktonDrift ease-in-out infinite;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -120px;
  padding: 0.5rem 1rem;
  background: var(--yellow);
  color: var(--text);
  font-weight: 800;
  border-radius: var(--radius);
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus { top: 1rem; outline: 3px solid var(--blue); }

/* Header — sobre a areia */
.site-header {
  position: relative;
  z-index: 10;
  padding: 28px 16px 8px;
  text-align: center;
  animation: fadeInSlide 0.7s ease;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.brand {
  display: inline-block;
  text-decoration: none;
  font-family: "Fredoka One", cursive;
  font-size: clamp(34px, 9vw, 58px);
  line-height: 1;
  animation: logoFloat 5s ease-in-out infinite;
}

.brand-onco {
  color: var(--pink);
  text-shadow: 4px 4px 0 var(--pink-deep), 8px 8px 24px rgba(219, 39, 119, 0.22);
}

.brand-pedi {
  color: var(--green);
  text-shadow: 4px 4px 0 var(--green-deep), 8px 8px 24px rgba(21, 128, 61, 0.22);
}

.brand-play {
  color: var(--blue);
  text-shadow: 4px 4px 0 var(--blue-deep), 8px 8px 24px rgba(37, 99, 235, 0.22);
}

.brand-tagline {
  font-size: clamp(13px, 3.5vw, 17px);
  font-weight: 800;
  color: var(--text-muted);
  margin: 6px 0 0;
  letter-spacing: 0.4px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 4px 8px 20px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 22px;
  border-radius: 60px;
  font-family: "Fredoka One", cursive;
  font-size: clamp(14px, 3.5vw, 18px);
  text-decoration: none;
  cursor: pointer;
  border: 3px solid;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  user-select: none;
}

.nav-pill:hover { transform: translateY(-3px) scale(1.05); }
.nav-pill[aria-current="page"] { transform: translateY(-2px); }

.nav-pill--home {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(77, 150, 255, 0.22));
  color: var(--blue-deep);
  border-color: var(--blue);
  box-shadow: 4px 4px 0 rgba(77, 150, 255, 0.22);
}

.nav-pill--home[aria-current="page"],
.nav-pill--home.is-active {
  background: linear-gradient(145deg, var(--blue), #3d7fe6);
  color: #fff;
  box-shadow: 5px 5px 0 var(--blue-deep);
}

.nav-pill--anim {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(255, 110, 180, 0.24));
  color: var(--pink-deep);
  border-color: var(--pink);
  box-shadow: 4px 4px 0 rgba(255, 110, 180, 0.22);
}

.nav-pill--anim[aria-current="page"],
.nav-pill--anim.is-active {
  background: linear-gradient(145deg, var(--pink), #ff4fa0);
  color: #fff;
  box-shadow: 5px 5px 0 var(--pink-deep);
}

.nav-pill--games {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(107, 203, 119, 0.26));
  color: var(--green-deep);
  border-color: var(--green);
  box-shadow: 4px 4px 0 rgba(107, 203, 119, 0.22);
}

.nav-pill--games[aria-current="page"],
.nav-pill--games.is-active {
  background: linear-gradient(145deg, var(--green), #55bc66);
  color: #fff;
  box-shadow: 5px 5px 0 var(--green-deep);
}

.nav-pill--journey {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(199, 125, 255, 0.24));
  color: var(--purple-deep);
  border-color: var(--purple);
  box-shadow: 4px 4px 0 rgba(199, 125, 255, 0.22);
}

.nav-pill--journey[aria-current="page"],
.nav-pill--journey.is-active {
  background: linear-gradient(145deg, var(--purple), #b06ef0);
  color: #fff;
  box-shadow: 5px 5px 0 var(--purple-deep);
}

.nav-pill--family {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(255, 179, 71, 0.28));
  color: #b45309;
  border-color: #f7931e;
  box-shadow: 4px 4px 0 rgba(183, 83, 9, 0.18);
}

.nav-pill--family[aria-current="page"],
.nav-pill--family.is-active {
  background: linear-gradient(145deg, #ff6b35, #f7931e);
  color: #fff;
  box-shadow: 5px 5px 0 #b45309;
}

.nav-pill--space {
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.35), rgba(30, 27, 75, 0.55));
  color: #e9d5ff;
  border-color: #7c3aed;
  box-shadow: 4px 4px 0 rgba(76, 29, 149, 0.45);
}

.nav-pill--space[aria-current="page"],
.nav-pill--space.is-active {
  background: linear-gradient(145deg, #7c3aed, #4c1d95);
  color: #fff;
  box-shadow: 5px 5px 0 #312e81;
}

.nav-pill--color {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(245, 158, 11, 0.24));
  color: #b45309;
  border-color: #f59e0b;
  box-shadow: 4px 4px 0 rgba(245, 158, 11, 0.22);
}

.nav-pill--color[aria-current="page"],
.nav-pill--color.is-active {
  background: linear-gradient(145deg, #fbbf24, #f59e0b);
  color: #1e293b;
  box-shadow: 5px 5px 0 #b45309;
}

.nav-pill--music {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(167, 139, 250, 0.28));
  color: #5b21b6;
  border-color: #a78bfa;
  box-shadow: 4px 4px 0 rgba(124, 58, 237, 0.22);
}

.nav-pill--music[aria-current="page"],
.nav-pill--music.is-active {
  background: linear-gradient(145deg, #c084fc, #7c3aed);
  color: #fff;
  box-shadow: 5px 5px 0 #5b21b6;
}

.nav-toggle {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 3px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Shell */
.site-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px 90px;
  position: relative;
  z-index: 5;
}

.page-section {
  animation: fadeInSlide 0.4s ease;
}

.section-heading {
  text-align: center;
  margin-bottom: 28px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-family: "Fredoka One", cursive;
  font-size: clamp(22px, 5.5vw, 34px);
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.4), 0 2px 6px rgba(0, 60, 100, 0.25);
}

.section-heading--home h1 { color: #fff; }
.section-heading--anim h1 { color: #ffe8f3; }
.section-heading--games h1 { color: #e8ffe8; }
.section-heading--color h1 { color: #fff3c4; }
.section-heading--music h1 { color: #f3e8ff; }
.section-heading--journey h1 { color: #f0e8ff; }
.section-heading--space h1 { color: #e9d5ff; }
.section-heading--familia h1 {
  color: #fff8f0;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow:
    0 2px 16px rgba(255, 107, 53, 0.35),
    0 2px 8px rgba(13, 51, 73, 0.4);
}

.section-heading--familia p {
  color: rgba(255, 244, 235, 0.9);
  font-weight: 600;
}

.section-heading--space p {
  color: rgba(233, 213, 255, 0.85);
  font-weight: 700;
}

.section-heading p {
  margin: 6px 0 0;
  font-size: clamp(13px, 3vw, 15px);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 60, 100, 0.35);
}

.panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 2.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 80, 120, 0.12);
  backdrop-filter: blur(8px);
}

.panel-feature {
  padding: 0;
  overflow: hidden;
}

.panel-title {
  margin: 0 0 1rem;
  font-family: "Fredoka One", cursive;
  font-size: 1.2rem;
  color: var(--text);
  text-align: center;
}

.feature-banner img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.feature-banner-text {
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  color: #fff;
  text-align: center;
}

.feature-banner-text p {
  margin: 0;
  font-family: "Fredoka One", cursive;
  font-size: 1.1rem;
}

.feature-banner-text span {
  font-size: 0.9rem;
  font-weight: 700;
}

/* Journey / map cards */
.card-grid {
  display: grid;
  gap: 14px;
}

.card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.journey-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 10px 12px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 2.5px solid transparent;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.journey-card:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13); }
.journey-card.is-selected { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13); }

.journey-badge {
  font-family: "Fredoka One", cursive;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.journey-icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 37px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease;
}

.journey-card.is-selected .journey-icon { transform: scale(1.12); }

.journey-card h3 {
  margin: 10px 0 0;
  font-family: "Fredoka One", cursive;
  font-size: clamp(13px, 3vw, 15px);
  color: #444;
  line-height: 1.3;
}

.journey-hint {
  font-size: 11px;
  color: #cdb8d4;
  margin-top: 7px;
  font-weight: 700;
}

.journey-balloon {
  background: #fff;
  border-radius: 28px;
  padding: 24px 26px 20px;
  border-left: 6px solid var(--blue);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: popIn 0.35s ease;
  max-width: 700px;
  margin: 0 auto 1rem;
}

.journey-balloon h3 {
  margin: 0 0 11px;
  font-family: "Fredoka One", cursive;
  font-size: clamp(18px, 4.5vw, 24px);
}

.journey-balloon p {
  margin: 0;
  font-size: clamp(14px, 3vw, 16px);
  color: var(--text-soft);
  line-height: 1.72;
  font-weight: 600;
}

/* Portal links */
.portal-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 28px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s ease;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.12);
}

.portal-link:hover { transform: translateY(-6px) scale(1.03); }

.portal-link h3 {
  margin: 0 0 0.2rem;
  font-family: "Fredoka One", cursive;
  font-size: 1.2rem;
}

.portal-link p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.95;
}

.portal-icon { font-size: 2.4rem; }

.portal-link--anim {
  background: var(--pink);
  box-shadow: 6px 6px 0 var(--pink-deep);
}

.portal-link--games {
  background: var(--green);
  box-shadow: 6px 6px 0 var(--green-deep);
}

.about-box {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text-soft);
}

.steps-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

/* ===== CINEPLAY / TV ===== */
.cineplay-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
}

.tv-stage {
  flex: 0 0 auto;
  width: min(430px, 100%);
  margin-top: 50px;
  transition: margin 0.55s var(--ease);
}

.tv-set {
  position: relative;
  transition:
    transform 0.6s var(--ease),
    width 0.6s var(--ease),
    margin 0.6s var(--ease),
    box-shadow 0.6s var(--ease),
    filter 0.45s var(--ease);
  transform-origin: center center;
  z-index: 2;
}

.tv-set.is-expanded {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.42);
  width: min(460px, 94vw);
  z-index: 210;
  margin: 0;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.45));
  animation: tvFocusIn 0.55s var(--ease);
  isolation: isolate;
}

@keyframes tvFocusIn {
  from {
    opacity: 0.88;
    transform: translate(-50%, -50%) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.42);
  }
}

.tv-antenna {
  position: absolute;
  top: -48px;
  width: 6px;
  height: 50px;
  background: #666;
  border-radius: 3px 3px 0 0;
  transform-origin: bottom center;
  z-index: 2;
}

.tv-antenna--left { left: 25%; transform: rotate(-20deg); }
.tv-antenna--right { right: 25%; transform: rotate(20deg); }

.tv-antenna-tip {
  position: absolute;
  top: -14px;
  left: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  animation: antennaPulse 2.2s ease-in-out infinite;
}

.tv-antenna--left .tv-antenna-tip {
  background: var(--pink);
  box-shadow: 0 0 14px var(--pink);
  color: var(--pink);
}

.tv-antenna--right .tv-antenna-tip {
  background: var(--yellow);
  box-shadow: 0 0 14px var(--yellow);
  color: var(--yellow);
  animation-delay: 1.1s;
}

.tv-body {
  background: linear-gradient(145deg, #fde68a, #fbc02d);
  border-radius: 40px;
  padding: 18px 18px 22px;
  box-shadow: 8px 8px 0 #d97706, 14px 14px 0 rgba(217, 119, 6, 0.13);
  border: 3px solid rgba(255, 255, 255, 0.55);
}

.tv-bezel {
  background: #1e1e2e;
  border-radius: 22px;
  padding: 8px;
  box-shadow: inset 0 4px 18px rgba(0, 0, 0, 0.55);
}

.tv-screen {
  background: #080818;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 155px;
}

.tv-screen video,
.tv-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  border-radius: 12px;
}

.tv-idle,
.tv-ready {
  text-align: center;
  padding: 20px;
  animation: fadeInSlide 0.3s ease;
}

.tv-idle-icon {
  font-size: 48px;
  animation: floatY 3s ease-in-out infinite;
  display: block;
  line-height: 1;
}

.tv-idle-text {
  font-family: "Fredoka One", cursive;
  font-size: clamp(14px, 3vw, 17px);
  color: rgba(255, 255, 255, 0.72);
  margin-top: 12px;
}

.tv-idle-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.32);
  margin-top: 5px;
}

.tv-ready-emoji {
  font-size: 40px;
  animation: floatY 3s ease-in-out infinite;
  display: block;
  margin-bottom: 10px;
}

.tv-ready-title {
  font-family: "Fredoka One", cursive;
  font-size: clamp(13px, 3vw, 16px);
  color: #fff;
  margin-bottom: 6px;
}

.tv-ready-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 16px;
  line-height: 1.45;
  padding: 0 8px;
}

.tv-playing-layer {
  position: absolute;
  inset: 0;
}

.tv-playing-layer video,
.tv-playing-layer .tv-youtube {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  border-radius: 12px;
  z-index: 1;
}

.tv-youtube {
  background: #000;
}

.tv-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.tv-playing-layer .tv-float-emoji {
  z-index: 2;
}

.tv-float-emoji {
  position: absolute;
  bottom: 0;
  animation: tvFloat 3.9s ease-in-out infinite;
  line-height: 1;
}

.tv-float-emoji:nth-child(1) { left: 7%; font-size: 30px; }
.tv-float-emoji:nth-child(2) { left: 38%; font-size: 24px; animation-delay: 1.4s; }
.tv-float-emoji:nth-child(3) { left: 68%; font-size: 28px; animation-delay: 2.7s; }

.tv-now-playing {
  position: absolute;
  top: 9%;
  width: 100%;
  text-align: center;
  font-family: "Fredoka One", cursive;
  font-size: clamp(11px, 2.5vw, 14px);
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.tv-badge-live {
  position: absolute;
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 110, 180, 0.88);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
}

.tv-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(transparent, transparent 3px, rgba(0, 0, 0, 0.035) 3px, rgba(0, 0, 0, 0.035) 6px);
  pointer-events: none;
}

.tv-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.tv-knob {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.tv-knob--pink { background: var(--pink); box-shadow: 0 3px 0 var(--pink-deep); }
.tv-knob--yellow { background: var(--yellow); box-shadow: 0 3px 0 var(--yellow-deep); }
.tv-knob--green { background: var(--green); box-shadow: 0 3px 0 var(--green-deep); }
.tv-slider { width: 46px; height: 14px; background: var(--blue); border-radius: 7px; box-shadow: 0 3px 0 var(--blue-deep); }
.tv-dial { width: 20px; height: 20px; background: #444; border-radius: 50%; border: 2.5px solid #666; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45); }

.tv-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 24, 0.62);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
}

.tv-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
}

body.is-tv-focus {
  overflow: hidden;
}

body.is-tv-focus .site-header,
body.is-tv-focus .site-footer,
body.is-tv-focus .site-shell {
  pointer-events: none;
  user-select: none;
}

.cineplay-layout.is-playing .tv-stage {
  min-height: min(520px, 92vw);
}

.cineplay-sidebar {
  flex: 1 1 250px;
  min-width: 220px;
}

.cineplay-sidebar-title {
  font-family: "Fredoka One", cursive;
  font-size: clamp(15px, 3.5vw, 18px);
  color: #666;
  margin-bottom: 14px;
  text-align: center;
}

.episode-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 11px;
}

.episode-card {
  background: #fff;
  border: 3px solid transparent;
  border-radius: 20px;
  padding: 14px 10px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.episode-card:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.episode-card.is-selected {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.episode-card-emoji { font-size: 30px; margin-bottom: 6px; line-height: 1; }

.episode-card h3 {
  margin: 0 0 4px;
  font-family: "Fredoka One", cursive;
  font-size: 13px;
  color: #333;
  line-height: 1.3;
}

.episode-card p {
  margin: 0;
  font-size: 11px;
  color: #888;
  line-height: 1.4;
}

.episode-grid-title {
  font-family: "Fredoka One", cursive;
  font-size: 1.1rem;
  color: #666;
  margin: 0 0 14px;
  text-align: center;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.btn-play {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-family: "Fredoka One", cursive;
  font-size: clamp(14px, 3vw, 17px);
  padding: 10px 28px;
  border-radius: 30px;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 0 var(--pink-deep);
  transition: transform 0.12s;
}

.btn-play:hover { transform: scale(1.09) translateY(-2px); }

.btn-play:disabled,
.btn-play[aria-disabled="true"] {
  background: #9aa3b2;
  box-shadow: 0 4px 0 #6f7785;
  cursor: not-allowed;
  transform: none;
}

.btn-stop {
  margin-top: 16px;
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  background: rgba(255, 110, 180, 0.06);
  border: 2px dashed var(--pink);
  border-radius: 16px;
  cursor: pointer;
  font-family: "Fredoka One", cursive;
  font-size: 14px;
  color: var(--pink-deep);
  transition: background 0.15s;
}

.btn-stop:hover { background: rgba(255, 110, 180, 0.14); }

.tv-expanded-actions {
  display: none;
  position: absolute;
  top: -52px;
  left: 0;
  right: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 5;
}

.tv-expanded-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.tv-set.is-expanded .tv-expanded-actions {
  display: flex;
}

.btn-back-tv,
.btn-fullscreen-tv,
.btn-close-tv {
  border: none;
  cursor: pointer;
  font-family: "Fredoka One", cursive;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn-back-tv:hover,
.btn-fullscreen-tv:hover,
.btn-close-tv:hover {
  transform: translateY(-2px) scale(1.04);
}

.btn-back-tv {
  background: #fff;
  color: var(--pink-deep);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.95rem;
}

.btn-fullscreen-tv {
  background: rgba(30, 30, 46, 0.92);
  color: #fff;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
}

.btn-fullscreen-tv.is-active {
  background: var(--pink-deep);
}

.btn-close-tv {
  background: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hidden { display: none !important; }

/* Games */
.page-toolbar { margin-bottom: 1rem; display: flex; justify-content: center; }

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.chip {
  padding: 0.45rem 0.9rem;
  font-family: "Fredoka One", cursive;
  font-size: 0.85rem;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.chip:hover { transform: scale(1.04); }
.chip.is-active { background: var(--purple); color: #fff; border-color: var(--purple-deep); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.game-card {
  background: #fff;
  border-radius: 28px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 6px 6px 0 var(--card-shadow, var(--yellow));
  border: 3px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.game-card:hover { transform: translateY(-6px) scale(1.03); }

.game-card-emoji { font-size: 52px; line-height: 1; }

.game-card h3 {
  margin: 0;
  font-family: "Fredoka One", cursive;
  font-size: 1.15rem;
}

.game-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #888;
  flex-grow: 1;
}

.game-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  font-family: "Fredoka One", cursive;
  font-size: 0.95rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  color: #fff;
  background: var(--btn-bg, var(--yellow));
  box-shadow: 0 4px 0 var(--btn-shadow, var(--yellow-deep));
  transition: transform 0.12s;
  align-self: center;
}

.btn-primary:hover:not(:disabled) { transform: scale(1.07) translateY(-2px); }
.btn-primary:disabled { opacity: 0.62; cursor: not-allowed; background: #bbb; box-shadow: 0 4px 0 #999; }

a.btn-primary {
  text-decoration: none;
  color: #fff;
}

.game-card .btn-primary { margin-top: 0.25rem; }

.page-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-weight: 700;
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
  z-index: 5;
  text-shadow: 0 1px 4px rgba(0, 60, 100, 0.35);
}

.site-footer p { margin: 0 0 0.35rem; }

.footer-contacts {
  max-width: var(--max);
  margin: 0 auto 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  text-align: left;
}

.footer-contacts-title {
  margin: 0 0 0.65rem;
  font-family: "Fredoka One", cursive;
  font-size: 1rem;
  color: #fff;
}

.footer-contacts-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-contacts-list li { margin-bottom: 0.25rem; }

.footer-contacts-note {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  opacity: 0.9;
}

.footer-contacts a {
  color: #fff;
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Dual portals */
.dual-portals { margin-top: 0.25rem; }

.portal-link--hero {
  background: linear-gradient(135deg, var(--blue), #3d7fe6);
  box-shadow: 6px 6px 0 var(--blue-deep);
}

.portal-link--family {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 6px 6px 0 #b45309;
}

/* Journey preview (home) */
.journey-preview-hint {
  text-align: center;
  font-size: clamp(13px, 3vw, 15px);
  color: var(--text-muted);
  font-weight: 700;
  margin: -0.5rem 0 1rem;
}

.journey-preview-wave {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 4px;
  margin-bottom: 1rem;
}

.journey-preview-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  min-width: 72px;
  transition: transform 0.2s ease;
}

.journey-preview-stop:hover { transform: translateY(-4px); }
.journey-preview-stop.is-selected .journey-preview-icon { transform: scale(1.12); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); }

.journey-preview-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

.journey-preview-label {
  font-family: "Fredoka One", cursive;
  font-size: 10px;
  color: var(--text-soft);
  line-height: 1.2;
  text-align: center;
  max-width: 72px;
}

.journey-preview-link-wrap { text-align: center; margin: 0.5rem 0 0; }

.btn-journey-full {
  display: inline-block;
  padding: 10px 22px;
  font-family: "Fredoka One", cursive;
  font-size: 0.95rem;
  color: var(--purple-deep);
  background: rgba(199, 125, 255, 0.15);
  border: 2px solid var(--purple);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-journey-full:hover {
  transform: translateY(-2px);
  background: rgba(199, 125, 255, 0.28);
}

/* Journey timeline (full page) */
.panel-journey { overflow: visible; }

.journey-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.timeline-stop-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 280px;
  padding: 16px 12px;
  border: 2.5px solid transparent;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: center;
}

.timeline-stop-btn:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); }

.timeline-stop.is-selected .timeline-stop-btn {
  border-color: var(--stop-color, var(--blue));
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.timeline-stop-num {
  font-family: "Fredoka One", cursive;
  font-size: 11px;
  color: var(--stop-color, var(--blue));
  background: color-mix(in srgb, var(--stop-color, var(--blue)) 15%, transparent);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.timeline-stop-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.12);
  margin-bottom: 8px;
  transition: transform 0.25s ease;
}

.timeline-stop.is-selected .timeline-stop-icon { transform: scale(1.1); }

.timeline-stop-btn h3 {
  margin: 0;
  font-family: "Fredoka One", cursive;
  font-size: clamp(14px, 3.5vw, 16px);
  color: #444;
}

.timeline-connector {
  display: block;
  width: 4px;
  height: 32px;
  background: linear-gradient(180deg, var(--stop-color, var(--blue)), rgba(0, 0, 0, 0.08));
  border-radius: 4px;
  margin: 4px 0;
  opacity: 0.5;
}

.journey-balloon--expanded {
  max-width: 100%;
  margin-top: 1.25rem;
}

.journey-balloon-inner h3 {
  margin: 0 0 11px;
  font-family: "Fredoka One", cursive;
  font-size: clamp(18px, 4.5vw, 24px);
}

.journey-balloon-inner p {
  margin: 0 0 1rem;
  font-size: clamp(14px, 3vw, 16px);
  color: var(--text-soft);
  line-height: 1.72;
  font-weight: 600;
}

.journey-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.journey-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: "Fredoka One", cursive;
  font-size: 0.85rem;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.journey-link:hover { transform: translateY(-2px); }

.journey-link--cine {
  background: rgba(255, 110, 180, 0.15);
  color: var(--pink-deep);
  border: 2px solid var(--pink);
}

.journey-link--play {
  background: rgba(107, 203, 119, 0.15);
  color: var(--green-deep);
  border: 2px solid var(--green);
}

.btn-next-stop {
  display: inline-block;
  padding: 10px 20px;
  font-family: "Fredoka One", cursive;
  font-size: 0.9rem;
  color: #fff;
  background: var(--purple);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--purple-deep);
  transition: transform 0.12s ease;
}

.btn-next-stop:hover { transform: translateY(-2px); }

@media (min-width: 720px) {
  .journey-timeline {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 0;
  }

  .timeline-stop {
    flex: 1;
    min-width: 0;
  }

  .timeline-connector {
    position: absolute;
    top: 50%;
    right: -50%;
    width: 100%;
    height: 4px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, var(--stop-color, var(--blue)), rgba(0, 0, 0, 0.08));
    z-index: 0;
    margin: 0;
  }

  .timeline-stop:last-child .timeline-connector { display: none; }

  .timeline-stop-btn { position: relative; z-index: 1; max-width: none; padding: 12px 8px; }
  .timeline-stop-icon { width: 60px; height: 60px; font-size: 28px; }
  .timeline-stop-btn h3 { font-size: 12px; }
}

/* Urgent card (home) */
.panel-urgent { padding: 0; background: transparent; border: none; box-shadow: none; }

.urgent-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 2.5px solid #ef4444;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: #991b1b;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
  transition: transform 0.15s ease;
}

.urgent-card:hover { transform: translateY(-3px); }

.urgent-card-icon { font-size: 2rem; flex-shrink: 0; }

.urgent-card h3 {
  margin: 0 0 0.2rem;
  font-family: "Fredoka One", cursive;
  font-size: 1.05rem;
  color: #991b1b;
}

.urgent-card p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #b91c1c;
  line-height: 1.45;
}

.urgent-card-arrow {
  margin-left: auto;
  font-size: 1.4rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Família — pôr do sol sobre o mar (tokens + cenário) */
.page-familia {
  --fam-sunset-orange: #ff6b35;
  --fam-sunset-gold: #f7931e;
  --fam-sunset-peach: #ffb347;
  --fam-sunset-pink: #e8a0bf;
  --fam-sunset-dusk: #6b5b95;
  --fam-ocean-deep: #1a4a6e;
  --fam-ocean-abyss: #0d3349;
  --fam-horizon: #3d6a8a;
  --fam-text-warm: #3d2c2c;
  --fam-text-soft: #5c4a4a;
  --fam-text-muted: #8b6f7a;
  --fam-glow: rgba(255, 179, 71, 0.22);
  --shore-line: 30vh;
  background: var(--fam-ocean-abyss);
}

.page-familia .ocean-sand {
  height: calc(var(--shore-line, 30vh) + 16px);
  background:
    radial-gradient(ellipse at 20% 85%, rgba(255, 107, 53, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 70%, rgba(232, 160, 191, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 40%, rgba(247, 147, 30, 0.3) 0%, transparent 60%),
    linear-gradient(
      180deg,
      #6b5b95 0%,
      #c47b9a 18%,
      #e8a0bf 32%,
      #ffb347 48%,
      #f7931e 62%,
      #ff6b35 78%,
      #d4622a 88%,
      rgba(212, 98, 42, 0.45) 94%,
      transparent 100%
    );
}

.page-familia .ocean-sea {
  top: calc(var(--shore-line, 30vh) - 96px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 179, 71, 0.28) 0%, transparent 42%),
    radial-gradient(ellipse at 30% 25%, rgba(255, 107, 53, 0.12) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 55%, rgba(13, 51, 73, 0.35) 0%, transparent 50%),
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(61, 106, 138, 0.2) 10%,
      rgba(61, 106, 138, 0.5) 22%,
      #3d6a8a 32%,
      #2a5a7a 48%,
      #1a4a6e 68%,
      #123d5c 84%,
      #0d3349 100%
    );
}

.page-familia .ocean-wash {
  top: calc(var(--shore-line, 30vh) - 40px);
  background: linear-gradient(180deg, rgba(255, 179, 71, 0.35) 0%, rgba(61, 106, 138, 0.15) 60%, transparent 100%);
}

.page-familia .ocean-wave-layer svg path { fill: rgba(61, 106, 138, 0.75) !important; }

.page-familia .ocean-wave-layer--2 svg path { fill: rgba(26, 74, 110, 0.65) !important; }

.page-familia .ocean-wave-foam svg path { fill: rgba(255, 220, 180, 0.4) !important; }

.page-familia .ocean-creature,
.page-familia .ocean-starfish {
  opacity: 0.22;
  filter: grayscale(0.6) brightness(0.75) drop-shadow(0 2px 4px rgba(13, 51, 73, 0.3));
}

.page-familia .ocean-bubble {
  border-color: rgba(255, 220, 180, 0.3);
  background: rgba(255, 179, 71, 0.08);
}

.page-familia .ocean-plankton {
  background: rgba(255, 200, 140, 0.45);
  box-shadow: 0 0 6px rgba(255, 179, 71, 0.25);
}

.page-familia .ocean-sand-wet {
  top: calc(var(--shore-line, 30vh) - 80px);
  background:
    radial-gradient(ellipse 60% 100% at 15% 100%, rgba(120, 72, 38, 0.5) 0%, transparent 74%),
    radial-gradient(ellipse 50% 100% at 48% 100%, rgba(110, 64, 32, 0.46) 0%, transparent 70%),
    radial-gradient(ellipse 55% 100% at 84% 100%, rgba(125, 78, 40, 0.48) 0%, transparent 72%),
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(160, 100, 55, 0.1) 18%,
      rgba(140, 88, 48, 0.28) 48%,
      rgba(100, 62, 32, 0.52) 78%,
      rgba(82, 50, 26, 0.38) 100%
    );
}

.page-familia .ocean-rays {
  background:
    linear-gradient(168deg, transparent 38%, rgba(255, 200, 120, 0.08) 44%, transparent 50%),
    linear-gradient(175deg, transparent 32%, rgba(255, 179, 71, 0.06) 40%, transparent 46%),
    linear-gradient(182deg, transparent 42%, rgba(255, 220, 160, 0.07) 48%, transparent 54%);
}

.page-familia .ocean-foam-bubble {
  background: radial-gradient(circle at 35% 30%, rgba(255, 235, 200, 0.9), rgba(255, 220, 180, 0.35) 70%, transparent);
}

.page-familia .ocean-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 22%, rgba(255, 179, 71, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, transparent 15%, rgba(13, 51, 73, 0.12) 100%);
  pointer-events: none;
}

/* Logo maduro — Família (pôr do sol / mar) */
.page-familia .brand.brand--mature {
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 6.5vw, 40px);
  letter-spacing: 0.03em;
  animation: none;
}

.page-familia .brand.brand--mature .brand-onco {
  color: #c4956a;
  text-shadow: none;
}

.page-familia .brand.brand--mature .brand-pedi {
  color: #e8c896;
  text-shadow: none;
  font-weight: 800;
}

.page-familia .brand.brand--mature .brand-play {
  color: #6ba3b8;
  text-shadow: none;
}

/* Família — sidebar + conteúdo */
.page-familia .site-shell {
  max-width: min(1100px, 96vw);
  padding-bottom: 100px;
}

.familia-layout {
  display: grid;
  grid-template-columns: minmax(240px, 270px) 1fr;
  gap: 1rem;
  align-items: start;
}

.familia-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 51, 73, 0.55);
  z-index: 45;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.familia-overlay.is-visible {
  display: block;
  opacity: 1;
}

.familia-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 1rem 0.75rem 1.25rem;
  margin-bottom: 0;
  background: rgba(255, 250, 245, 0.94);
  border-color: rgba(255, 179, 71, 0.35);
  box-shadow: 0 4px 24px rgba(13, 51, 73, 0.18);
}

.familia-sidebar-head {
  padding: 0 0.5rem 0.85rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid rgba(247, 147, 30, 0.28);
  position: relative;
}

.familia-sidebar-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fam-text-muted, #8b6f7a);
}

.familia-sidebar-title {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--fam-ocean-deep, #1a4a6e);
}

.familia-sidebar-close {
  display: none;
  position: absolute;
  top: 0;
  right: 0.25rem;
  border: none;
  background: rgba(247, 147, 30, 0.15);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  cursor: pointer;
  color: #b45309;
  line-height: 1;
}

.familia-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.familia-nav-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

.familia-nav-item:hover {
  transform: translateX(3px);
  background: rgba(255, 179, 71, 0.12);
  border-color: rgba(247, 147, 30, 0.3);
}

.familia-nav-item.is-active {
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.18), rgba(232, 160, 191, 0.1));
  border-color: var(--fam-sunset-gold, #f7931e);
  box-shadow: 0 2px 0 rgba(180, 83, 9, 0.25);
}

.familia-nav-item--alert.is-active {
  background: linear-gradient(135deg, #fef2f2, rgba(255, 250, 245, 0.95));
  border-color: #dc6b6b;
  box-shadow: 0 2px 0 #b45309;
}

.familia-nav-step {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fam-text-muted, #8b6f7a);
}

.familia-nav-item.is-active .familia-nav-step { color: #b45309; }

.familia-nav-item--alert .familia-nav-step { color: #c45c5c; }

.familia-nav-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--fam-text-warm, #3d2c2c);
  line-height: 1.35;
}

.familia-main {
  min-width: 0;
}

.familia-sidebar-toggle {
  display: none;
  width: 100%;
  margin-bottom: 1rem;
  border: none;
  cursor: pointer;
}

.familia-topic { animation: fadeInSlide 0.35s var(--ease) both; }

.familia-topic-hero {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1.25rem;
  background: rgba(255, 250, 245, 0.94);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 179, 71, 0.3);
  box-shadow: 0 4px 24px rgba(13, 51, 73, 0.14);
  backdrop-filter: blur(8px);
}

.familia-topic-hero--compact { grid-template-columns: 1fr; }

.familia-topic-hero--alert {
  background: linear-gradient(135deg, #fef7f5, rgba(255, 250, 245, 0.96));
  border-color: #dc6b6b;
  box-shadow: 0 4px 20px rgba(180, 60, 60, 0.12);
}

.familia-topic-hero-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(247, 147, 30, 0.25);
}

.familia-topic-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b45309;
}

.familia-topic-hero--alert .familia-topic-kicker { color: #9b3b3b; }

.familia-topic-hero h1 {
  margin: 0 0 0.5rem;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  color: var(--fam-text-warm, #3d2c2c);
  line-height: 1.25;
}

.familia-topic-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--fam-text-soft, #5c4a4a);
  font-weight: 600;
}

.familia-cards {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.familia-card {
  background: rgba(255, 250, 245, 0.92);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(255, 220, 180, 0.5);
  box-shadow: 0 3px 16px rgba(13, 51, 73, 0.1);
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.familia-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(13, 51, 73, 0.14);
}

.familia-card-icon {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  opacity: 0.75;
  filter: grayscale(0.15);
}

.familia-card h2 {
  margin: 0 0 0.45rem;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--fam-text-warm, #3d2c2c);
}

.familia-card p {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--fam-text-soft, #5c4a4a);
  font-weight: 600;
}

.familia-card p:last-child { margin-bottom: 0; }

.familia-card-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--fam-text-soft, #5c4a4a);
  font-weight: 600;
}

.familia-card-list li { margin-bottom: 0.3rem; }

.familia-card--highlight {
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.14), rgba(255, 250, 245, 0.96));
  border-color: rgba(247, 147, 30, 0.45);
}

.familia-card--ok { border-left: 3px solid #5a9e6f; }

.familia-card--avoid { border-left: 3px solid #c45c5c; }

.familia-card--alert {
  border-color: rgba(196, 92, 92, 0.35);
  border-left: 3px solid #c45c5c;
}

.familia-card .btn-journey-full { margin-top: 0.65rem; }

.familia-inline-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--fam-ocean-deep, #1a4a6e);
  text-decoration: underline;
  cursor: pointer;
}

.familia-alert-cta { margin: 1.25rem 0 0; text-align: center; }

.familia-contacts-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.familia-contact-card {
  background: rgba(255, 250, 245, 0.94);
  border-radius: var(--radius);
  padding: 1.1rem;
  border: 1px solid rgba(247, 147, 30, 0.25);
  box-shadow: 0 3px 16px rgba(13, 51, 73, 0.1);
}

.familia-contact-card--samu {
  border-color: #dc6b6b;
  background: linear-gradient(135deg, #fef7f5, rgba(255, 250, 245, 0.96));
}

.familia-contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fam-text-muted, #8b6f7a);
  margin-bottom: 0.25rem;
}

.familia-contact-card a {
  display: block;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--fam-ocean-deep, #1a4a6e);
  text-decoration: none;
}

.familia-contact-card--samu a { color: #9b3b3b; }

.familia-contact-card a:hover { text-decoration: underline; }

.familia-contact-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--fam-text-muted, #8b6f7a);
  font-weight: 600;
}

.familia-contacts-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--fam-text-soft, #5c4a4a);
  font-weight: 600;
}

.page-familia .btn-journey-full {
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 800;
  color: #b45309;
  background: rgba(255, 179, 71, 0.18);
  border-color: var(--fam-sunset-gold, #f7931e);
}

.page-familia .btn-journey-full:hover {
  background: rgba(255, 179, 71, 0.32);
}

.page-familia .help-float {
  background: linear-gradient(135deg, #c45c5c, #9b3b3b);
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(155, 59, 59, 0.35);
}

body.familia-sidebar-open { overflow: hidden; }

@media (max-width: 820px) {
  .familia-layout { grid-template-columns: 1fr; }

  .familia-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(290px, 88vw);
    height: 100vh;
    max-height: none;
    transform: translateX(-105%);
    transition: transform 0.25s var(--ease);
    z-index: 50;
    margin: 0;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  }

  .familia-sidebar.is-open { transform: translateX(0); }

  .familia-sidebar-close { display: block; }

  .familia-sidebar-toggle { display: inline-block; }

  .familia-topic-hero { grid-template-columns: 1fr; }
}

.panel-title--left { text-align: left; }

.panel-familia-intro,
.panel-hro-card,
.panel-contatos {
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.65;
}

.panel-hro-card {
  background: linear-gradient(135deg, rgba(77, 150, 255, 0.08), rgba(255, 255, 255, 0.95));
  border-color: var(--blue);
}

.info-list {
  margin: 0;
  padding-left: 1.15rem;
}

.info-list li { margin-bottom: 0.45rem; }

.panel-alerta {
  background: linear-gradient(135deg, #fef2f2, #fff);
  border: 3px solid #ef4444;
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.12);
}

.panel-title--alerta {
  color: #991b1b;
  text-align: left;
}

.alerta-lead {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: #7f1d1d;
}

.alerta-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #991b1b;
  font-weight: 600;
  line-height: 1.65;
}

.alerta-list li { margin-bottom: 0.35rem; }

.alerta-action { margin: 1rem 0 0; }

.btn-alert {
  display: inline-block;
  padding: 10px 20px;
  background: #ef4444;
  color: #fff;
  font-family: "Fredoka One", cursive;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 0 #b91c1c;
  transition: transform 0.12s ease;
}

.btn-alert:hover { transform: translateY(-2px); }

button.btn-alert,
button.btn-journey-full {
  cursor: pointer;
  font-family: inherit;
}

.help-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 12px 18px;
  background: #ef4444;
  color: #fff;
  font-family: "Fredoka One", cursive;
  font-size: clamp(12px, 3vw, 14px);
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
  transition: transform 0.15s ease;
}

.help-float:hover { transform: scale(1.04); }

.accordion-group { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1rem; }

.accordion-item {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  border: 2px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.accordion-header { margin: 0; }

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.15rem;
  border: none;
  background: transparent;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.accordion-trigger:hover { background: rgba(77, 150, 255, 0.06); }

.accordion-trigger[aria-expanded="true"] { background: rgba(77, 150, 255, 0.1); }

.accordion-icon {
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(-135deg);
}

.accordion-panel {
  padding: 0 1.15rem 1rem;
  color: var(--text-soft);
  font-weight: 600;
  line-height: 1.65;
}

.accordion-panel p { margin: 0; }

.accordion-panel a { color: var(--blue-deep); }

.contacts-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.contacts-grid li {
  padding: 0.75rem 1rem;
  background: rgba(77, 150, 255, 0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(77, 150, 255, 0.2);
}

.contact-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contacts-grid a {
  font-family: "Fredoka One", cursive;
  font-size: 1.05rem;
  color: var(--blue-deep);
  text-decoration: none;
}

.contacts-grid a:hover { text-decoration: underline; }

.contacts-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.filter-chips--jornada { margin-top: 0.5rem; }

.filter-chips-label {
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.chip--jornada.is-active {
  background: var(--blue);
  border-color: var(--blue-deep);
}

.episode-jornada-tag,
.game-jornada-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 4px;
  background: rgba(77, 150, 255, 0.12);
  color: var(--blue-deep);
}

.episode-soon-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 6px;
  background: rgba(255, 217, 61, 0.25);
  color: #8a6a00;
}

.portal-link--family {
  border-color: var(--yellow);
  background: linear-gradient(135deg, rgba(255, 217, 61, 0.2), rgba(255, 255, 255, 0.85));
}

.portal-link--space {
  border-color: #7c3aed;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(30, 27, 75, 0.08), rgba(255, 255, 255, 0.88));
  box-shadow: 0 4px 0 #4c1d95;
}

.portal-link--space:hover {
  box-shadow: 0 6px 0 #4c1d95;
}

.portal-link--space h3 { color: #5b21b6; }

.card-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body.nav-open { overflow: hidden; }

@media (max-width: 680px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: fixed;
    inset: auto 0 0 0;
    top: 0;
    padding: 5rem 1rem 1rem;
    background: rgba(253, 248, 238, 0.97);
    flex-direction: column;
    z-index: 40;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  }

  .site-nav.is-open { display: flex; }

  .nav-pill {
    justify-content: center;
    width: 100%;
  }

  .tv-set.is-expanded {
    transform: translate(-50%, -50%) scale(1.06);
    width: min(430px, 96vw);
  }

  @keyframes tvFocusIn {
    from {
      opacity: 0.88;
      transform: translate(-50%, -50%) scale(0.96);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1.06);
    }
  }

  body.is-tv-focus .site-header,
  body.is-tv-focus .site-footer,
  body.is-tv-focus .site-shell {
    filter: blur(10px) saturate(1.1);
  }

  .tv-expanded-actions {
    top: -48px;
    flex-wrap: wrap;
  }

  .btn-back-tv {
    font-size: 0.88rem;
    padding: 7px 14px;
  }

  .cineplay-layout.is-playing .cineplay-sidebar {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand, .ocean-wave-layer, .ocean-wash, .ocean-wave-foam,
  .ocean-sand-wet, .ocean-foam-bubbles, .ocean-foam-bubble, .ocean-rays,
  .ocean-creature, .ocean-starfish, .ocean-bubble, .ocean-plankton,
  .galaxy-star, .galaxy-nebula, .galaxy-particle,
  .galaxy-planet, .galaxy-planet-orbit, .galaxy-planet-ring, .galaxy-comet,
  .arcade-marquee-track, .arcade-cabinet-marquee-text, .arcade-screen-theme span {
    animation: none !important;
  }
  .nav-pill, .portal-link, .btn, .arcade-cabinet-footer .chip--arcade { transition: none; }
  .tv-set, .tv-backdrop { transition: none; }
  .tv-set.is-expanded { animation: none; }
  body.is-tv-focus .site-header,
  body.is-tv-focus .site-footer,
  body.is-tv-focus .site-shell { transition: none; }
}

/* === PlayZone — fliperama + zonas mar / espaço === */

.page-jogos {
  background: #0a0612;
  color: #e2e8f0;
}

.page-jogos .site-header--arcade {
  background: rgba(10, 6, 18, 0.88);
  border-bottom: 2px solid rgba(255, 0, 128, 0.35);
  box-shadow: 0 4px 24px rgba(255, 0, 128, 0.12);
}

.page-jogos .arcade-tagline {
  color: rgba(255, 240, 255, 0.85);
  text-shadow: 0 0 12px rgba(255, 0, 200, 0.35);
}

.page-jogos .site-footer--arcade {
  background: rgba(10, 6, 18, 0.92);
  border-top: 2px solid rgba(0, 255, 255, 0.25);
  color: rgba(226, 232, 240, 0.88);
}

.page-jogos .footer-contacts-title,
.page-jogos .footer-contacts-list,
.page-jogos .footer-contacts-note {
  color: rgba(226, 232, 240, 0.88);
}

.page-jogos .footer-contacts-note a {
  color: #67e8f9;
}

.arcade-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 0, 128, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 90%, rgba(0, 255, 255, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 35% at 90% 80%, rgba(255, 217, 61, 0.07), transparent 45%),
    linear-gradient(180deg, #0f0820 0%, #0a0612 40%, #06040e 100%);
}

.arcade-neon {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  opacity: 0.55;
}

.arcade-neon--left {
  left: 0;
  background: linear-gradient(180deg, transparent, #ff00aa, #00ffff, #ffdd00, transparent);
  box-shadow: 0 0 20px #ff00aa;
}

.arcade-neon--right {
  right: 0;
  background: linear-gradient(180deg, transparent, #00ffff, #ff00aa, #ffdd00, transparent);
  box-shadow: 0 0 20px #00ffff;
}

.arcade-marquee {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  overflow: hidden;
  height: 28px;
  opacity: 0.35;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.arcade-marquee-track {
  display: inline-block;
  white-space: nowrap;
  font-family: "Fredoka One", cursive;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: #ffdd00;
  text-shadow: 0 0 8px rgba(255, 221, 0, 0.6);
  animation: arcadeMarquee 28s linear infinite;
}

.arcade-cabinet-frame {
  position: absolute;
  inset: 48px 12px 24px;
  border: 3px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow:
    inset 0 0 60px rgba(255, 0, 128, 0.04),
    inset 0 0 40px rgba(0, 255, 255, 0.03);
}

.arcade-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  opacity: 0.35;
}

@keyframes arcadeMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.playzone-page {
  position: relative;
  z-index: 5;
}

.playzone-hero {
  margin-bottom: 2rem;
}

.playzone-hero-kicker {
  margin: 0 0 0.35rem;
  font-family: "Fredoka One", cursive;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffdd00;
  text-shadow: 0 0 12px rgba(255, 221, 0, 0.45);
}

.playzone-hero .section-heading h1,
.playzone-hero h1 {
  color: #f0fff4;
  text-shadow:
    0 0 20px rgba(255, 0, 170, 0.35),
    0 0 30px rgba(0, 255, 255, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.5);
}

.playzone-hero p {
  color: rgba(240, 255, 252, 0.88);
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

.playzone-cabinets {
  display: grid;
  gap: 2.75rem;
}

.playzone-zone {
  position: relative;
  scroll-margin-top: 5rem;
}

.playzone-zone-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.5rem;
}

.arcade-cabinet-header h2 {
  margin: 0;
  font-family: "Fredoka One", cursive;
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
}

.playzone-age-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  font-family: "Fredoka One", cursive;
  font-size: 0.82rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  border: 2px solid;
}

.playzone-age-badge--kids {
  color: #e0f7ff;
  background: rgba(14, 116, 144, 0.45);
  border-color: rgba(110, 207, 245, 0.65);
  box-shadow: 0 0 16px rgba(62, 184, 232, 0.25);
}

.playzone-age-badge--teen {
  color: #ede9fe;
  background: rgba(76, 29, 149, 0.45);
  border-color: rgba(167, 139, 250, 0.65);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.3);
}

.playzone-zone-desc {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.playzone-zone--kids .arcade-cabinet-header h2 {
  color: #b8f0ff;
  text-shadow: 0 0 16px rgba(62, 184, 232, 0.35);
}

.playzone-zone--kids .playzone-zone-desc {
  color: rgba(184, 240, 255, 0.85);
}

.playzone-zone--teen .arcade-cabinet-header h2 {
  color: #ddd6fe;
  text-shadow: 0 0 16px rgba(167, 139, 250, 0.35);
}

.playzone-zone--teen .playzone-zone-desc {
  color: rgba(221, 214, 254, 0.85);
}

/* —— Gabinete arcade (corpo + tela + painel) —— */

.arcade-cabinet {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.arcade-cabinet-shell {
  position: relative;
  border-radius: 20px 20px 12px 12px;
  padding: 0.65rem 0.65rem 0;
  background: linear-gradient(165deg, #2a1f3d 0%, #15101f 45%, #0c0814 100%);
  border: 3px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(255, 0, 170, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.arcade-cabinet--kids .arcade-cabinet-shell {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(62, 184, 232, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.arcade-cabinet--teen .arcade-cabinet-shell {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(124, 58, 237, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.arcade-cabinet-marquee {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.65rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: #0a0610;
  text-align: center;
}

.arcade-cabinet-marquee-glow {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
}

.arcade-cabinet-marquee--kids .arcade-cabinet-marquee-glow {
  background: radial-gradient(ellipse 80% 100% at 50% 50%, rgba(62, 184, 232, 0.35), transparent 70%);
}

.arcade-cabinet-marquee--teen .arcade-cabinet-marquee-glow {
  background: radial-gradient(ellipse 80% 100% at 50% 50%, rgba(167, 139, 250, 0.4), transparent 70%);
}

.arcade-cabinet-marquee-text {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  font-family: "Fredoka One", cursive;
  font-size: clamp(0.62rem, 2.5vw, 0.78rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: arcadeCabinetMarquee 16s linear infinite;
}

.arcade-cabinet-marquee--kids .arcade-cabinet-marquee-text {
  color: #7dd3fc;
  text-shadow: 0 0 10px rgba(62, 184, 232, 0.7);
}

.arcade-cabinet-marquee--teen .arcade-cabinet-marquee-text {
  color: #c4b5fd;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.7);
}

@keyframes arcadeCabinetMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.arcade-cabinet-header {
  text-align: center;
  margin-bottom: 0.75rem;
  padding: 0 0.35rem;
}

.arcade-cabinet-bezel {
  padding: 0.55rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #1a1525 0%, #0d0a14 100%);
  border: 4px solid #2d2640;
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.65),
    inset 0 2px 0 rgba(255, 255, 255, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.4);
}

.arcade-cabinet-screen {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 1rem 0.85rem 1.1rem;
  min-height: 220px;
  border: 3px solid rgba(0, 0, 0, 0.35);
}

.arcade-screen-scanlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.07) 2px,
    rgba(0, 0, 0, 0.07) 4px
  );
  opacity: 0.5;
}

.arcade-screen-theme {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0.5rem 1rem 1.25rem;
  font-size: 1.35rem;
  opacity: 0.35;
}

.arcade-screen-theme span {
  animation: playzoneDecorBob 3.5s ease-in-out infinite;
}

.arcade-screen-theme span:nth-child(2) { animation-delay: 0.5s; }
.arcade-screen-theme span:nth-child(3) { animation-delay: 1s; }
.arcade-screen-theme span:nth-child(4) { animation-delay: 1.5s; }

@keyframes playzoneDecorBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.arcade-cabinet-screen .gallery,
.arcade-cabinet-screen .page-empty {
  position: relative;
  z-index: 1;
}

.arcade-cabinet-screen .page-empty {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.arcade-cabinet-footer .chip--arcade:focus-visible {
  outline: 3px solid #ffdd00;
  outline-offset: 2px;
}

.playzone-panel {
  position: relative;
  border-width: 0;
  backdrop-filter: none;
}

.playzone-panel--kids,
.arcade-cabinet-screen--kids {
  background:
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(14, 116, 144, 0.35), transparent 55%),
    radial-gradient(circle at 20% 30%, rgba(110, 207, 245, 0.2) 0 40px, transparent 41px),
    radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.08) 0 30px, transparent 31px),
    linear-gradient(180deg, #0c4a6e 0%, #0e7490 35%, #164e63 100%);
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.35),
    inset 0 0 60px rgba(62, 184, 232, 0.12);
}

.playzone-panel--teen,
.arcade-cabinet-screen--teen {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(124, 58, 237, 0.35), transparent 60%),
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.75) 0 1px, transparent 2px),
    radial-gradient(circle at 45% 15%, rgba(255, 255, 255, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 75% 35%, rgba(255, 255, 255, 0.6) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px),
    linear-gradient(180deg, #1e1b4b 0%, #312e81 40%, #0f0a1e 100%);
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.4),
    inset 0 0 50px rgba(124, 58, 237, 0.15);
}

.arcade-cabinet-screen .gallery {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

/* —— Game cards na tela CRT (tema escuro para legibilidade) —— */

.arcade-cabinet-screen .game-card {
  background: linear-gradient(165deg, #1a4a6e 0%, #0d3349 55%, #0a2840 100%);
  border: 2px solid rgba(110, 207, 245, 0.4);
  box-shadow:
    6px 6px 0 var(--card-shadow, var(--yellow)),
    0 0 18px rgba(62, 184, 232, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.arcade-cabinet-screen--teen .game-card {
  background: linear-gradient(165deg, #2a1854 0%, #1a1035 55%, #120a28 100%);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow:
    6px 6px 0 var(--card-shadow, var(--purple)),
    0 0 18px rgba(124, 58, 237, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.arcade-cabinet-screen .game-card h3 {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.arcade-cabinet-screen--teen .game-card h3 {
  color: #f5f3ff;
}

.arcade-cabinet-screen .game-card p {
  color: #b8d4e8;
}

.arcade-cabinet-screen--teen .game-card p {
  color: #c4b5fd;
}

.arcade-cabinet-screen .game-card .game-meta-list {
  color: #e0f2fe;
}

.arcade-cabinet-screen .game-card .game-meta-list li {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.arcade-cabinet-screen--kids .game-card .game-meta-list li {
  color: #7dd3fc;
}

.arcade-cabinet-screen--teen .game-card .game-meta-list li {
  color: #ddd6fe;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(167, 139, 250, 0.3);
}

.arcade-cabinet-screen--kids .game-card .btn-primary:not(:disabled) {
  color: #0d3349;
  text-shadow: none;
}

.arcade-cabinet-screen .game-card .btn-primary:disabled {
  background: #4b5563;
  box-shadow: 0 4px 0 #374151;
  color: rgba(255, 255, 255, 0.75);
}

/* —— Painel de botões (rodapé do gabinete) —— */

.arcade-cabinet-footer {
  margin-top: 0.75rem;
  padding: 0.85rem 0.5rem 0.65rem;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #1f1830 0%, #120e1c 100%);
  border-top: 3px solid rgba(255, 255, 255, 0.06);
}

.arcade-controls-label {
  width: 100%;
  text-align: center;
  font-family: "Fredoka One", cursive;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.55);
  margin: 0 0 0.45rem;
}

.arcade-controls-label + .arcade-btn-row + .arcade-controls-label {
  margin-top: 0.65rem;
}

.arcade-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.arcade-cabinet-footer .chip--arcade {
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  color: #f8fafc;
  background: linear-gradient(180deg, #4b5563 0%, #374151 100%);
  box-shadow:
    0 4px 0 #1f2937,
    0 6px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s;
}

.arcade-cabinet-footer .chip--arcade:hover {
  transform: translateY(-1px);
  box-shadow:
    0 5px 0 #1f2937,
    0 8px 14px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.arcade-cabinet-footer .chip--arcade:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #1f2937,
    0 2px 6px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.arcade-cabinet--kids .arcade-cabinet-footer .chip--arcade.is-active {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  border-color: #0369a1;
  box-shadow:
    0 4px 0 #075985,
    0 0 16px rgba(56, 189, 248, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
}

.arcade-cabinet--kids .arcade-cabinet-footer .chip--arcade.is-active:active {
  box-shadow:
    0 1px 0 #075985,
    0 0 12px rgba(56, 189, 248, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.arcade-cabinet--teen .arcade-cabinet-footer .chip--arcade.is-active {
  background: linear-gradient(180deg, #a78bfa 0%, #7c3aed 100%);
  border-color: #5b21b6;
  box-shadow:
    0 4px 0 #4c1d95,
    0 0 16px rgba(167, 139, 250, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
}

.arcade-cabinet--teen .arcade-cabinet-footer .chip--arcade.is-active:active {
  box-shadow:
    0 1px 0 #4c1d95,
    0 0 12px rgba(167, 139, 250, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.arcade-cabinet-legs {
  display: flex;
  justify-content: space-between;
  padding: 0 18% 0;
  margin-top: -2px;
}

.arcade-cabinet-leg {
  display: block;
  width: 14px;
  height: 28px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #2a1f3d, #0c0814);
  border: 2px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.45);
}

@media (max-width: 680px) {
  .arcade-cabinet-frame {
    inset: 56px 6px 16px;
    border-radius: 10px;
  }

  .arcade-marquee {
    top: 64px;
    opacity: 0.25;
  }

  .playzone-zone-title-row {
    flex-direction: column;
  }

  .arcade-cabinet-shell {
    padding: 0.5rem 0.5rem 0;
  }

  .arcade-cabinet-footer .chip--arcade {
    font-size: 0.72rem;
    padding: 0.45rem 0.65rem;
  }

  .arcade-cabinet-screen .gallery {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .playzone-page {
    max-width: 1180px;
  }
}

@media (min-width: 1100px) {
  .playzone-cabinets {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 2rem;
  }

  .arcade-cabinet {
    max-width: none;
  }
}

.arcade-controls-label--soon {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.65);
  font-style: italic;
}

/* === Jogo da Memória — Ocean Quest === */

.page-game-kids,
.page-memoria {
  background: transparent;
  color: #0f172a;
}

.page-game-kids .ocean-scene--game,
.page-memoria .ocean-scene--game {
  z-index: -1;
}

.page-game-kids .ocean-scene--game .ocean-sand,
.page-memoria .ocean-scene--game .ocean-sand,
.page-game-kids .ocean-scene--game .ocean-sand-wet,
.page-memoria .ocean-scene--game .ocean-sand-wet,
.page-game-kids .ocean-scene--game .ocean-wash,
.page-memoria .ocean-scene--game .ocean-wash,
.page-game-kids .ocean-scene--game .ocean-starfish,
.page-memoria .ocean-scene--game .ocean-starfish {
  display: none;
}

.page-game-kids .ocean-scene--game .ocean-sea,
.page-memoria .ocean-scene--game .ocean-sea {
  top: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 25% 12%, rgba(255, 255, 255, 0.14) 0%, transparent 42%),
    radial-gradient(ellipse at 72% 48%, rgba(0, 70, 110, 0.28) 0%, transparent 52%),
    radial-gradient(ellipse at 50% 88%, rgba(0, 40, 70, 0.35) 0%, transparent 55%),
    linear-gradient(180deg, #0e7490 0%, #0c4a6e 28%, #0d3349 62%, #0a2840 100%);
}

.page-game-kids .ocean-scene--game .ocean-waves,
.page-memoria .ocean-scene--game .ocean-waves {
  top: -12px;
  height: 72px;
  opacity: 0.5;
}

.page-game-kids .ocean-scene--game .ocean-wave-layer svg path,
.page-memoria .ocean-scene--game .ocean-wave-layer svg path {
  fill: rgba(62, 184, 232, 0.55) !important;
}

.page-game-kids .ocean-scene--game .ocean-bubble,
.page-memoria .ocean-scene--game .ocean-bubble {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.page-game-kids .site-header--ocean-game,
.page-memoria .site-header--ocean-game,
.page-pacman-ocean .site-header--ocean-game {
  background: rgba(13, 79, 110, 0.92);
  border-bottom-color: rgba(110, 207, 245, 0.35);
}

.page-game-kids .brand-tagline.arcade-tagline,
.page-memoria .brand-tagline.arcade-tagline,
.page-pacman-ocean .brand-tagline {
  color: rgba(224, 242, 254, 0.95);
}

.page-game-kids .site-footer--ocean-game,
.page-memoria .site-footer--ocean-game,
.page-pacman-ocean .site-footer--ocean-game {
  display: none;
}

.memoria-page {
  max-width: min(720px, 96vw);
  padding-bottom: 3rem;
}

.memoria-hero {
  text-align: center;
  margin-bottom: 1.25rem;
}

.memoria-back {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0369a1;
  text-decoration: none;
}

.memoria-back:hover {
  text-decoration: underline;
  color: #0c4a6e;
}

.memoria-hero h1 {
  margin: 0 0 0.5rem;
  font-family: "Fredoka One", cursive;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  color: #0c4a6e;
}

.memoria-hero p {
  margin: 0;
  font-weight: 700;
  color: #475569;
  line-height: 1.5;
}

.memoria-board-wrap {
  background: linear-gradient(165deg, rgba(224, 242, 254, 0.95), rgba(186, 230, 253, 0.88));
  border: 3px solid rgba(14, 165, 233, 0.35);
  border-radius: 28px;
  padding: 1.25rem 1rem 1.5rem;
  box-shadow: 0 8px 0 #0369a1, 0 16px 40px rgba(3, 105, 161, 0.18);
}

.memoria-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px dashed rgba(3, 105, 161, 0.2);
}

.memoria-stat {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0c4a6e;
}

.memoria-stat-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0369a1;
  margin-bottom: 0.15rem;
}

.memoria-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.45rem, 2vw, 0.75rem);
  max-width: 520px;
  margin: 0 auto;
}

.memoria-card {
  aspect-ratio: 1;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 16px;
  perspective: 600px;
  -webkit-tap-highlight-color: transparent;
}

.memoria-card:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.memoria-card:disabled {
  cursor: default;
}

.memoria-card-inner {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: 16px;
}

.memoria-card.is-flipped .memoria-card-inner,
.memoria-card.is-matched .memoria-card-inner {
  transform: rotateY(180deg);
}

.memoria-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  border-radius: 16px;
  border: 3px solid rgba(3, 105, 161, 0.25);
  box-shadow: 0 4px 0 rgba(3, 105, 161, 0.2);
}

.memoria-card-back {
  background:
    linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #0e7490 100%);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 35%),
    linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #0e7490 100%);
}

.memoria-card-back-pattern {
  font-size: clamp(1.4rem, 5vw, 2rem);
  opacity: 0.85;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.memoria-card-front {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22) 0%, transparent 42%),
    linear-gradient(165deg, #38bdf8 0%, #0ea5e9 42%, #0284c7 100%);
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.2rem;
}

.memoria-card-front--character {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.28) 0%, transparent 46%),
    linear-gradient(180deg, #7dd3fc 0%, #38bdf8 48%, #0284c7 100%);
  padding: 0.12rem;
}

.memoria-card-portrait {
  width: 96%;
  height: 96%;
  max-height: none;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(3, 105, 161, 0.2));
}

.memoria-card-emoji {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1;
}

.memoria-card.is-matched .memoria-card-front {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 42%),
    linear-gradient(165deg, #5eead4 0%, #22d3ee 45%, #0284c7 100%);
  border-color: #10b981;
  box-shadow: 0 4px 0 #059669;
}

.memoria-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.memoria-btn-restart {
  --btn-bg: #0284c7;
  --btn-shadow: #0369a1;
}

.memoria-hint {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}

.memoria-tip-overlay,
.memoria-win-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(12, 74, 110, 0.55);
  backdrop-filter: blur(4px);
}

.memoria-tip-overlay.hidden,
.memoria-win-overlay.hidden {
  display: none;
}

.memoria-tip-card,
.memoria-win-card {
  width: min(420px, 100%);
  padding: 1.5rem 1.35rem;
  background: #fff;
  border-radius: 24px;
  border: 3px solid #38bdf8;
  box-shadow: 0 8px 0 #0284c7, 0 20px 48px rgba(3, 105, 161, 0.25);
  text-align: center;
}

.memoria-tip-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0284c7;
}

.memoria-tip-portrait {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin: 0 auto 0.35rem;
}

.memoria-tip-portrait[hidden] {
  display: none;
}

.memoria-tip-emoji,
.memoria-win-emoji {
  margin: 0 0 0.5rem;
  font-size: 3rem;
  line-height: 1;
}

.memoria-tip-portrait:not([hidden]) + .memoria-tip-emoji {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.memoria-tip-card h2,
.memoria-win-card h2 {
  margin: 0 0 0.65rem;
  font-family: "Fredoka One", cursive;
  font-size: 1.25rem;
  color: #0c4a6e;
}

.memoria-tip-card p,
.memoria-win-card p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 600;
  color: #334155;
}

.memoria-tip-close {
  --btn-bg: #0284c7;
  --btn-shadow: #0369a1;
}

.memoria-win-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.memoria-win-back {
  --btn-bg: #FFD93D;
  --btn-shadow: #D97706;
  color: #1e293b !important;
}

@media (max-width: 480px) {
  .memoria-board {
    gap: 0.4rem;
  }

  .memoria-card-face {
    border-width: 2px;
    border-radius: 12px;
  }

  .memoria-card-inner {
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .memoria-card-inner {
    transition: none;
  }

  .memoria-card-front {
    transform: none;
  }

  .memoria-card.is-flipped .memoria-card-inner,
  .memoria-card.is-matched .memoria-card-inner {
    transform: none;
  }

  .memoria-card:not(.is-flipped):not(.is-matched) .memoria-card-front {
    visibility: hidden;
  }

  .memoria-card.is-flipped .memoria-card-back,
  .memoria-card.is-matched .memoria-card-back {
    visibility: hidden;
  }

  .memoria-card.is-flipped .memoria-card-front,
  .memoria-card.is-matched .memoria-card-front {
    visibility: visible;
  }
}

/* === Meu espaço — tema galáxia (12–18 anos) === */

.page-meu-espaco {
  background: transparent;
  color: #e2e8f0;
}

.page-meu-espaco .site-header {
  background: rgba(15, 8, 36, 0.92);
  border-bottom-color: rgba(124, 58, 237, 0.35);
}

.page-meu-espaco .brand-tagline.space-tagline {
  color: rgba(233, 213, 255, 0.9);
}

/* Logo maduro — Meu espaço (tema galáxia, 12–18) */
.page-meu-espaco .brand.brand--mature {
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 6.5vw, 40px);
  letter-spacing: 0.04em;
  animation: none;
}

.page-meu-espaco .brand.brand--mature .brand-onco {
  color: #a78bfa;
  text-shadow: 0 0 18px rgba(124, 58, 237, 0.35);
}

.page-meu-espaco .brand.brand--mature .brand-pedi {
  color: #e2e8f0;
  text-shadow: none;
  font-weight: 800;
}

.page-meu-espaco .brand.brand--mature .brand-play {
  color: #7dd3fc;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.28);
}

.page-meu-espaco .site-footer--space {
  background: rgba(15, 8, 36, 0.95);
  border-top-color: rgba(124, 58, 237, 0.3);
  color: rgba(226, 232, 240, 0.85);
}

.page-meu-espaco .footer-contacts-title,
.page-meu-espaco .footer-contacts-list,
.page-meu-espaco .footer-contacts-note {
  color: rgba(226, 232, 240, 0.9);
}

.page-meu-espaco .footer-contacts-note a {
  color: #c4b5fd;
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  40% { opacity: 0.9; transform: scale(1.15); }
  60% { opacity: 1; transform: scale(1.35); }
}

@keyframes starTwinkleBright {
  0%, 100% { opacity: 0.4; transform: scale(1); filter: brightness(1); }
  50% { opacity: 1; transform: scale(1.5); filter: brightness(1.6); }
}

@keyframes particleDriftFar {
  0% { transform: translate(0, 0); }
  50% { transform: translate(18px, -24px); }
  100% { transform: translate(6px, -12px); }
}

@keyframes particleDriftNear {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-28px, 20px); }
  100% { transform: translate(-12px, 8px); }
}

@keyframes planetSpin {
  from { transform: rotateY(0deg) rotateX(18deg); }
  to { transform: rotateY(360deg) rotateX(18deg); }
}

@keyframes planetFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes cometFly {
  0% { transform: translate(-120px, -80px) rotate(-38deg); opacity: 0; }
  4% { opacity: 1; }
  92% { opacity: 0.85; }
  100% { transform: translate(calc(100vw + 120px), calc(100vh + 80px)) rotate(-38deg); opacity: 0; }
}

@keyframes nebulaPulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.08); }
}

.galaxy-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, #1e1b4b 0%, #0f0824 45%, #030014 100%);
  pointer-events: none;
}

.galaxy-scene--game {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(124, 58, 237, 0.22), transparent 58%),
    radial-gradient(ellipse at 30% 22%, #1e1b4b 0%, #120a28 48%, #060212 100%);
}

.galaxy-scene--game .galaxy-nebula {
  filter: blur(52px);
  animation-duration: 18s;
}

.galaxy-scene--game .galaxy-nebula--1 {
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.28), transparent 72%);
}

.galaxy-scene--game .galaxy-nebula--2 {
  width: 38vw;
  height: 38vw;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22), transparent 72%);
}

.page-game-teen,
.page-pacman {
  background: transparent;
  color: #e2e8f0;
}

.page-game-teen .site-header--space-game,
.page-pacman .site-header--space-game {
  background: rgba(15, 8, 36, 0.92);
  border-bottom-color: rgba(124, 58, 237, 0.35);
}

.page-game-teen .brand-tagline.arcade-tagline,
.page-pacman .brand-tagline.arcade-tagline {
  color: rgba(233, 213, 255, 0.9);
}

.page-game-teen .site-footer--space-game,
.page-pacman .site-footer--space-game {
  display: none;
}

.page-pacman-ocean {
  background: transparent;
  color: var(--text);
}

.galaxy-nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: nebulaPulse 12s ease-in-out infinite;
}

.galaxy-nebula--1 {
  width: 55vw;
  height: 55vw;
  top: -10%;
  left: -8%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 70%);
}

.galaxy-nebula--2 {
  width: 45vw;
  height: 45vw;
  bottom: 5%;
  right: -5%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28), transparent 70%);
  animation-delay: -4s;
}

.galaxy-nebula--3 {
  width: 35vw;
  height: 35vw;
  top: 40%;
  left: 35%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.15), transparent 70%);
  animation-delay: -8s;
}

.galaxy-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.galaxy-stars--far { opacity: 0.55; }
.galaxy-stars--mid { opacity: 0.75; }
.galaxy-stars--near { opacity: 0.95; }

.galaxy-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.7);
  animation: starTwinkle 3.5s ease-in-out infinite;
}

.galaxy-stars--far .galaxy-star {
  animation-name: starTwinkleSlow;
}

@keyframes starTwinkleSlow {
  0%, 100% { opacity: 0.15; transform: scale(0.85); }
  50% { opacity: 0.65; transform: scale(1.05); }
}

.galaxy-star--bright {
  background: #e9d5ff;
  box-shadow: 0 0 8px rgba(196, 181, 253, 0.95), 0 0 16px rgba(124, 58, 237, 0.45);
  animation-name: starTwinkleBright;
}

.galaxy-star--dim {
  opacity: 0.35;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.4);
}

/* Partículas de poeira cósmica */
.galaxy-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.galaxy-particles--far { opacity: 0.45; }
.galaxy-particles--near { opacity: 0.7; }

.galaxy-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.galaxy-particle--far {
  background: radial-gradient(circle, rgba(196, 181, 253, 0.9), rgba(124, 58, 237, 0.2));
  animation: particleDriftFar linear infinite;
}

.galaxy-particle--near {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(147, 197, 253, 0.35));
  box-shadow: 0 0 6px rgba(147, 197, 253, 0.35);
  animation: particleDriftNear linear infinite;
}

/* Planetas 3D */
.galaxy-planets {
  position: absolute;
  inset: 0;
  perspective: 900px;
  pointer-events: none;
}

.galaxy-planet {
  position: absolute;
  animation: planetFloat 22s ease-in-out infinite;
}

.galaxy-planet--1 {
  top: 14%;
  right: 10%;
  width: clamp(56px, 8vw, 88px);
  height: clamp(56px, 8vw, 88px);
  animation-delay: 0s;
}

.galaxy-planet--2 {
  bottom: 22%;
  left: 6%;
  width: clamp(40px, 5.5vw, 64px);
  height: clamp(40px, 5.5vw, 64px);
  animation-delay: -7s;
}

.galaxy-planet--3 {
  top: 52%;
  right: 22%;
  width: clamp(32px, 4vw, 48px);
  height: clamp(32px, 4vw, 48px);
  animation-delay: -14s;
}

.galaxy-planet-orbit {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: planetSpin 28s linear infinite;
}

.galaxy-planet--2 .galaxy-planet-orbit { animation-duration: 36s; animation-direction: reverse; }
.galaxy-planet--3 .galaxy-planet-orbit { animation-duration: 22s; }

.galaxy-planet-body {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform-style: preserve-3d;
  overflow: hidden;
}

.galaxy-planet-body--purple {
  background:
    radial-gradient(circle at 32% 28%, #c4b5fd 0%, #7c3aed 38%, #4c1d95 68%, #1e1b4b 100%);
  box-shadow:
    inset -10px -12px 24px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(124, 58, 237, 0.35);
}

.galaxy-planet-body--blue {
  background:
    radial-gradient(circle at 28% 24%, #93c5fd 0%, #3b82f6 42%, #1e3a8a 72%, #0f172a 100%);
  box-shadow:
    inset -8px -10px 20px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(59, 130, 246, 0.3);
}

.galaxy-planet-body--teal {
  background:
    radial-gradient(circle at 30% 26%, #5eead4 0%, #14b8a6 40%, #0f766e 70%, #042f2e 100%);
  box-shadow:
    inset -6px -8px 16px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(20, 184, 166, 0.28);
}

.galaxy-planet-shade {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(125deg, transparent 42%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.galaxy-planet-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 155%;
  height: 28%;
  margin: -14% 0 0 -77.5%;
  border: 2px solid rgba(196, 181, 253, 0.45);
  border-radius: 50%;
  transform: rotateX(72deg);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.25);
  animation: planetSpin 28s linear infinite reverse;
}

/* Cometas */
.galaxy-comets {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.galaxy-comet {
  position: absolute;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px #fff, 0 0 24px rgba(196, 181, 253, 0.8);
  animation: cometFly linear infinite;
  opacity: 0;
  will-change: transform, opacity;
}

.galaxy-comet--1 {
  top: 12%;
  animation-duration: 14s;
  animation-delay: 2s;
}

.galaxy-comet--2 {
  top: 38%;
  animation-duration: 18s;
  animation-delay: 8s;
}

.galaxy-comet--3 {
  top: 68%;
  animation-duration: 22s;
  animation-delay: 14s;
}

.galaxy-comet::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: clamp(80px, 14vw, 160px);
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.95), rgba(196, 181, 253, 0.5) 40%, transparent);
  border-radius: 2px;
  transform-origin: right center;
}

.galaxy-comet::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 4px);
  width: clamp(40px, 8vw, 90px);
  height: 1px;
  margin-top: 3px;
  background: linear-gradient(to left, rgba(147, 197, 253, 0.6), transparent);
  transform: rotate(6deg);
  transform-origin: right center;
}

@media (max-width: 768px) {
  .galaxy-planet--3 { display: none; }
  .galaxy-planet--1 { right: 4%; opacity: 0.75; }
  .galaxy-planet--2 { left: 2%; opacity: 0.7; }
  .galaxy-nebula { filter: blur(40px); }
  .galaxy-comet::before { width: 70px; }
}

.page-meu-espaco .site-shell {
  max-width: min(1100px, 96vw);
  padding-bottom: 100px;
}

.space-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 0, 20, 0.65);
  z-index: 45;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.space-overlay.is-visible {
  display: block;
  opacity: 1;
}

.space-layout {
  display: grid;
  grid-template-columns: minmax(240px, 270px) 1fr;
  gap: 1rem;
  align-items: start;
}

.space-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 1rem 0.75rem 1.25rem;
  margin-bottom: 0;
  background: rgba(30, 27, 75, 0.75) !important;
  border-color: rgba(124, 58, 237, 0.4) !important;
  backdrop-filter: blur(12px);
}

.space-sidebar-head {
  padding: 0 0.5rem 0.85rem;
  margin-bottom: 0.65rem;
  border-bottom: 2px dashed rgba(167, 139, 250, 0.3);
  position: relative;
}

.space-sidebar-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(196, 181, 253, 0.75);
}

.space-sidebar-title {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  color: #e9d5ff;
}

.space-sidebar-close {
  display: none;
  position: absolute;
  top: 0;
  right: 0.25rem;
  border: none;
  background: rgba(124, 58, 237, 0.25);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  cursor: pointer;
  color: #e9d5ff;
  line-height: 1;
}

.space-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.space-nav-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 2px solid transparent;
  border-radius: 14px;
  background: rgba(49, 46, 129, 0.45);
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
  color: inherit;
}

.space-nav-item:hover {
  transform: translateX(3px);
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(167, 139, 250, 0.35);
}

.space-nav-item.is-active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.45), rgba(59, 130, 246, 0.2));
  border-color: #a78bfa;
  box-shadow: 0 3px 0 #4c1d95;
}

.space-nav-item--alert.is-active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(49, 46, 129, 0.5));
  border-color: #f87171;
  box-shadow: 0 3px 0 #991b1b;
}

.space-nav-step {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(196, 181, 253, 0.65);
}

.space-nav-item.is-active .space-nav-step { color: #c4b5fd; }

.space-nav-item--alert .space-nav-step { color: #fca5a5; }

.space-nav-label {
  font-size: 0.84rem;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.35;
}

.space-main { min-width: 0; }

.space-sidebar-toggle {
  display: none;
  width: 100%;
  margin-bottom: 1rem;
}

.btn-space {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.1rem;
  border: 2px solid #7c3aed;
  border-radius: 999px;
  background: linear-gradient(145deg, #7c3aed, #5b21b6);
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 #4c1d95;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-space:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #4c1d95;
  color: #fff;
}

.space-topic { animation: fadeInSlide 0.35s var(--ease) both; }

.space-topic-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1.25rem;
  background: rgba(30, 27, 75, 0.82);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(167, 139, 250, 0.35);
  box-shadow: 0 4px 24px rgba(76, 29, 149, 0.25);
  backdrop-filter: blur(10px);
}

.space-topic-hero--alert {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.35), rgba(30, 27, 75, 0.88));
  border-color: #ef4444;
}

.space-topic-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a78bfa;
}

.space-topic-hero--alert .space-topic-kicker { color: #fca5a5; }

.space-topic-hero h1 {
  margin: 0 0 0.5rem;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  color: #f8fafc;
  line-height: 1.25;
}

.space-topic-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.85);
  font-weight: 600;
}

.space-cards {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.space-card {
  background: rgba(30, 27, 75, 0.78);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  border: 2px solid rgba(167, 139, 250, 0.25);
  box-shadow: 0 4px 16px rgba(15, 8, 36, 0.35);
  backdrop-filter: blur(8px);
  transition: transform 0.15s ease;
}

.space-card:hover { transform: translateY(-4px); }

.space-card-icon {
  display: block;
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}

.space-card h2 {
  margin: 0 0 0.45rem;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: #f1f5f9;
}

.space-card p {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.82);
  font-weight: 600;
}

.space-card p:last-child { margin-bottom: 0; }

.space-card a {
  color: #c4b5fd;
  font-weight: 800;
}

.space-card a:hover { color: #e9d5ff; }

.space-card-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.82);
  font-weight: 600;
}

.space-card-list li { margin-bottom: 0.3rem; }

.space-card--highlight {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(30, 27, 75, 0.85));
  border-color: #a78bfa;
}

.space-card--alert {
  border-color: rgba(239, 68, 68, 0.45);
  border-left: 4px solid #ef4444;
}

.space-card--links { border-color: rgba(59, 130, 246, 0.35); }

.space-card .btn-space { margin-top: 0.65rem; }

@media (max-width: 820px) {
  .space-layout { grid-template-columns: 1fr; }

  .space-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 88vw);
    z-index: 50;
    transform: translateX(-105%);
    transition: transform 0.25s var(--ease);
    max-height: 100vh;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  }

  .space-sidebar.is-open { transform: translateX(0); }

  .space-sidebar-close { display: block; }

  .space-sidebar-toggle { display: inline-flex; width: 100%; }

  body.space-sidebar-open { overflow: hidden; }
}

/* === Quimio Labirinto — Cosmic Arcade (Pac-Man) === */

.pacman-page {
  max-width: min(640px, 96vw);
  padding-bottom: 3rem;
}

.pacman-hero {
  text-align: center;
  margin-bottom: 1.25rem;
}

.pacman-back {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #c084fc;
  text-decoration: none;
}

.pacman-back:hover {
  text-decoration: underline;
  color: #e879f9;
}

.pacman-hero h1 {
  margin: 0 0 0.5rem;
  font-family: "Fredoka One", cursive;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  color: #f0abfc;
  text-shadow: 0 0 20px rgba(232, 121, 249, 0.35);
}

.pacman-hero p {
  margin: 0;
  font-weight: 700;
  color: #cbd5e1;
  line-height: 1.55;
}

.pacman-game-wrap {
  background: linear-gradient(165deg, rgba(30, 15, 60, 0.95), rgba(15, 8, 32, 0.92));
  border: 3px solid rgba(124, 58, 237, 0.4);
  border-radius: 28px;
  padding: 1.15rem 1rem 1.35rem;
  box-shadow: 0 8px 0 #581c87, 0 16px 40px rgba(88, 28, 135, 0.25);
}

.pacman-hud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px dashed rgba(124, 58, 237, 0.25);
}

.pacman-stat {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #e2e8f0;
}

.pacman-stat-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a78bfa;
  margin-bottom: 0.12rem;
}

.pacman-stat--power strong {
  color: #60a5fa;
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

.pacman-power-banner {
  margin: 0 0 0.65rem;
  padding: 0.45rem 0.75rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.88rem;
  color: #dbeafe;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.25));
  border: 2px solid rgba(96, 165, 250, 0.45);
  border-radius: 12px;
  animation: pacmanPowerPulse 1.2s ease-in-out infinite;
}

.pacman-power-banner.hidden {
  display: none;
}

@keyframes pacmanPowerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.pacman-canvas-wrap {
  display: flex;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(99, 102, 241, 0.35);
  box-shadow: inset 0 0 30px rgba(99, 102, 241, 0.08);
}

#pacmanCanvas {
  display: block;
  max-width: 100%;
  height: auto;
  background: #0f0820;
}

.pacman-dpad {
  display: none;
  grid-template-columns: repeat(3, 52px);
  grid-template-rows: repeat(3, 52px);
  gap: 6px;
  justify-content: center;
  margin-top: 1rem;
}

.pacman-dpad-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid rgba(124, 58, 237, 0.5);
  border-radius: 14px;
  background: rgba(30, 15, 60, 0.9);
  color: #e879f9;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 0 #581c87;
}

.pacman-dpad-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #581c87;
}

.pacman-dpad-btn--up { grid-column: 2; grid-row: 1; }
.pacman-dpad-btn--left { grid-column: 1; grid-row: 2; }
.pacman-dpad-btn--right { grid-column: 3; grid-row: 2; }
.pacman-dpad-btn--down { grid-column: 2; grid-row: 3; }

.pacman-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.pacman-btn-restart {
  --btn-bg: #7c3aed;
  --btn-shadow: #581c87;
}

.pacman-hint {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1.5;
}

.pacman-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 8, 32, 0.72);
  backdrop-filter: blur(4px);
}

.pacman-overlay.hidden {
  display: none;
}

.pacman-overlay-card {
  width: min(440px, 100%);
  padding: 1.5rem 1.35rem;
  background: linear-gradient(165deg, #1e1035, #0f0820);
  border-radius: 24px;
  border: 3px solid #7c3aed;
  box-shadow: 0 8px 0 #581c87, 0 20px 48px rgba(88, 28, 135, 0.35);
  text-align: center;
  color: #e2e8f0;
}

.pacman-overlay-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c084fc;
}

.pacman-overlay-emoji {
  margin: 0 0 0.5rem;
  font-size: 3rem;
  line-height: 1;
}

.pacman-overlay-card h2 {
  margin: 0 0 0.65rem;
  font-family: "Fredoka One", cursive;
  font-size: 1.3rem;
  color: #f0abfc;
}

.pacman-overlay-card p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 600;
  color: #cbd5e1;
}

.pacman-overlay-tip {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  line-height: 1.5;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.pacman-overlay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.pacman-overlay-actions .btn-primary {
  --btn-bg: #7c3aed;
  --btn-shadow: #581c87;
}

.pacman-overlay-back {
  --btn-bg: #0891b2;
  --btn-shadow: #0e7490;
}

.pacman-overlay-menu-btn {
  --btn-bg: #9333ea;
  --btn-shadow: #6b21a8;
}

.pacman-difficulty-menu {
  margin: 0 0 1rem;
}

.pacman-difficulty-menu.hidden {
  display: none;
}

.pacman-difficulty-label {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #e879f9;
}

.pacman-difficulty-btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.pacman-diff-btn {
  padding: 0.55rem 0.35rem;
  font-family: "Nunito", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #f8fafc;
  background: linear-gradient(180deg, #4c1d95, #312e81);
  border: 2px solid #7c3aed;
  border-radius: 14px;
  box-shadow: 0 4px 0 #581c87;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.pacman-diff-btn:hover,
.pacman-diff-btn:focus-visible {
  transform: translateY(-1px);
  border-color: #c084fc;
  outline: none;
}

.pacman-diff-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #581c87;
}

.pacman-diff-btn--easy {
  background: linear-gradient(180deg, #0e7490, #155e75);
  border-color: #22d3ee;
  box-shadow: 0 4px 0 #0e7490;
}

.pacman-diff-btn--medium {
  background: linear-gradient(180deg, #6d28d9, #4c1d95);
}

.pacman-diff-btn--hard {
  background: linear-gradient(180deg, #be123c, #881337);
  border-color: #fb7185;
  box-shadow: 0 4px 0 #881337;
}

.pacman-diff-btn--superhard {
  background: linear-gradient(180deg, #7f1d1d, #450a0a);
  border-color: #ef4444;
  box-shadow: 0 4px 0 #450a0a;
  color: #fecaca;
}

.pacman-diff-btn--superhard:hover,
.pacman-diff-btn--superhard:focus-visible {
  border-color: #fca5a5;
}

.pacman-difficulty-msg {
  margin: 0;
  min-height: 3.2rem;
  padding: 0.6rem 0.7rem;
  font-size: 0.84rem;
  line-height: 1.5;
  font-weight: 600;
  color: #fde68a;
  background: rgba(234, 179, 8, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(250, 204, 21, 0.25);
}

.pacman-overlay-menu-btn.hidden {
  display: none;
}

@media (max-width: 720px) {
  .pacman-dpad {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pacman-power-banner {
    animation: none;
  }
}

/* Labirinto do Mar — skin oceânica (PlayKids) */
.page-pacman-ocean .pacman-back {
  color: #0e7490;
}

.page-pacman-ocean .pacman-back:hover {
  color: #0891b2;
}

.page-pacman-ocean .pacman-hero h1 {
  color: #0c4a6e;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.65), 0 4px 16px rgba(14, 116, 144, 0.2);
}

.page-pacman-ocean .pacman-hero p {
  color: #334155;
}

.page-pacman-ocean .pacman-game-wrap {
  background: linear-gradient(165deg, rgba(224, 242, 254, 0.96), rgba(186, 230, 253, 0.9));
  border: 3px solid rgba(45, 212, 191, 0.55);
  box-shadow: 0 8px 0 #0e7490, 0 16px 36px rgba(14, 116, 144, 0.22);
}

.page-pacman-ocean .pacman-hud {
  border-bottom-color: rgba(14, 116, 144, 0.2);
}

.page-pacman-ocean .pacman-stat {
  color: #0f172a;
}

.page-pacman-ocean .pacman-stat-label {
  color: #0e7490;
}

.page-pacman-ocean .pacman-stat--power strong {
  color: #0d9488;
  text-shadow: none;
}

.page-pacman-ocean .pacman-power-banner {
  color: #fff;
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.85), rgba(8, 145, 178, 0.85));
  border-color: rgba(45, 212, 191, 0.65);
}

.page-pacman-ocean .pacman-canvas-wrap {
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: inset 0 0 24px rgba(6, 182, 212, 0.12);
}

.page-pacman-ocean #pacmanCanvas {
  background: #155e75;
}

.page-pacman-ocean .pacman-dpad-btn {
  border-color: rgba(14, 116, 144, 0.45);
  background: rgba(224, 242, 254, 0.95);
  color: #0e7490;
  box-shadow: 0 4px 0 #0e7490;
}

.page-pacman-ocean .pacman-dpad-btn:active {
  box-shadow: 0 2px 0 #0e7490;
}

.page-pacman-ocean .pacman-btn-restart {
  --btn-bg: #0891b2;
  --btn-shadow: #0e7490;
}

.page-pacman-ocean .pacman-hint {
  color: #475569;
}

.page-pacman-ocean .pacman-overlay {
  background: rgba(6, 78, 99, 0.72);
}

.page-pacman-ocean .pacman-overlay-card {
  background: linear-gradient(165deg, #ecfeff, #cffafe);
  border-color: #14b8a6;
  box-shadow: 0 8px 0 #0f766e, 0 20px 40px rgba(15, 118, 110, 0.28);
  color: #0f172a;
}

.page-pacman-ocean .pacman-overlay-kicker {
  color: #0e7490;
}

.page-pacman-ocean .pacman-overlay-card h2 {
  color: #0c4a6e;
}

.page-pacman-ocean .pacman-overlay-card p {
  color: #334155;
}

.page-pacman-ocean .pacman-overlay-tip {
  color: #0f766e;
  background: rgba(45, 212, 191, 0.15);
  border-color: rgba(20, 184, 166, 0.35);
}

.page-pacman-ocean .pacman-overlay-actions .btn-primary {
  --btn-bg: #0891b2;
  --btn-shadow: #0e7490;
}

.page-pacman-ocean .pacman-overlay-menu-btn {
  --btn-bg: #14b8a6;
  --btn-shadow: #0f766e;
}

.page-pacman-ocean .pacman-difficulty-label {
  color: #0e7490;
}

.page-pacman-ocean .pacman-diff-btn {
  border-color: rgba(14, 116, 144, 0.35);
  background: rgba(255, 255, 255, 0.82);
  color: #0f172a;
}

.page-pacman-ocean .pacman-diff-btn:hover,
.page-pacman-ocean .pacman-diff-btn:focus-visible {
  border-color: #14b8a6;
  background: rgba(204, 251, 241, 0.95);
}

.page-pacman-ocean .pacman-difficulty-msg {
  color: #475569;
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(45, 212, 191, 0.35);
}

/* === Tela inicial (gate) — 3 portais === */
.page-gate .site-header--gate {
  margin-bottom: 0.5rem;
}

.page-gate .header-inner--gate {
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  padding-block: 0.85rem;
}

.page-gate .header-inner--gate .brand {
  margin: 0 auto;
}

.page-gate .header-inner--gate .brand-tagline {
  margin: 0;
}

.gate-shell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 220px);
  padding-bottom: 48px;
}

.gate-heading {
  margin-bottom: 1.5rem;
}

.gate-heading p {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  text-shadow: 0 2px 8px rgba(0, 60, 100, 0.35);
}

.gate-portals {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  width: min(100%, 720px);
  margin: 0 auto;
}

.gate-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.15rem;
  padding: 1.35rem 1.4rem;
  border-radius: 28px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  min-height: 118px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 10px 0 rgba(0, 0, 0, 0.18),
    0 18px 36px rgba(0, 40, 80, 0.22);
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    border-color 0.22s ease,
    filter 0.22s ease;
  animation: popIn 0.55s var(--ease) both;
}

.gate-card:nth-child(1) { animation-delay: 0.05s; }
.gate-card:nth-child(2) { animation-delay: 0.16s; }
.gate-card:nth-child(3) { animation-delay: 0.27s; }

.gate-card-glow {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 70%;
  height: 120%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 68%);
  pointer-events: none;
  z-index: -1;
  transition: transform 0.35s var(--ease), opacity 0.35s ease;
}

.gate-card-icon {
  font-size: clamp(2.4rem, 7vw, 3.2rem);
  line-height: 1;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.15));
  transition: transform 0.25s var(--ease);
}

.gate-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.gate-card-title {
  font-family: "Fredoka One", cursive;
  font-size: clamp(1.15rem, 3.6vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.gate-card-age {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.15rem;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.gate-card-desc {
  margin-top: 0.2rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0.95;
}

.gate-card-arrow {
  font-size: 1.7rem;
  font-weight: 900;
  opacity: 0.85;
  transition: transform 0.22s var(--ease), opacity 0.22s ease;
}

.gate-card--ocean {
  background: linear-gradient(135deg, #3eb8e8 0%, #4d96ff 55%, #2563eb 100%);
  box-shadow:
    0 10px 0 #1d4ed8,
    0 18px 36px rgba(37, 99, 235, 0.35);
}

.gate-card--ocean:hover,
.gate-card--ocean:focus-visible {
  transform: translateY(-8px) scale(1.02);
  border-color: #a5f3fc;
  filter: brightness(1.06);
  box-shadow:
    0 16px 0 #1e40af,
    0 28px 48px rgba(37, 99, 235, 0.45);
}

.gate-card--space {
  background: linear-gradient(135deg, #2e1065 0%, #5b21b6 45%, #7c3aed 100%);
  box-shadow:
    0 10px 0 #3b0764,
    0 18px 36px rgba(76, 29, 149, 0.4);
}

.gate-card--space:hover,
.gate-card--space:focus-visible {
  transform: translateY(-8px) scale(1.02);
  border-color: #e9d5ff;
  filter: brightness(1.08);
  box-shadow:
    0 16px 0 #2e1065,
    0 28px 48px rgba(124, 58, 237, 0.5),
    0 0 32px rgba(167, 139, 250, 0.35);
}

.gate-card--family {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 55%, #c2410c 100%);
  box-shadow:
    0 10px 0 #9a3412,
    0 18px 36px rgba(194, 65, 12, 0.35);
}

.gate-card--family:hover,
.gate-card--family:focus-visible {
  transform: translateY(-8px) scale(1.02);
  border-color: #fde68a;
  filter: brightness(1.06);
  box-shadow:
    0 16px 0 #7c2d12,
    0 28px 48px rgba(234, 88, 12, 0.45);
}

.gate-card:hover .gate-card-glow,
.gate-card:focus-visible .gate-card-glow {
  transform: translate(18%, -8%) scale(1.15);
  opacity: 0.95;
}

.gate-card:hover .gate-card-icon,
.gate-card:focus-visible .gate-card-icon {
  transform: scale(1.12) rotate(-6deg);
}

.gate-card:hover .gate-card-arrow,
.gate-card:focus-visible .gate-card-arrow {
  transform: translateX(6px);
  opacity: 1;
}

.gate-card:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.site-footer--gate {
  padding-top: 1.25rem;
}

.site-footer--gate .footer-contacts {
  margin-bottom: 0.75rem;
}

@media (min-width: 780px) {
  .gate-portals {
    width: min(100%, 980px);
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
  }

  .gate-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    justify-items: center;
    text-align: center;
    padding: 1.75rem 1.35rem 1.5rem;
    min-height: 280px;
  }

  .gate-card-body {
    align-items: center;
  }

  .gate-card-arrow {
    margin-top: 0.35rem;
  }

  .gate-card-icon {
    font-size: 3.4rem;
  }
}

@media (max-width: 480px) {
  .gate-card {
    padding: 1.15rem 1rem;
    gap: 0.75rem;
    min-height: 104px;
  }

  .gate-card-desc {
    font-size: 0.84rem;
  }

  .gate-card-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gate-card,
  .gate-card-icon,
  .gate-card-arrow,
  .gate-card-glow {
    animation: none;
    transition: none;
  }

  .gate-card:hover,
  .gate-card:focus-visible {
    transform: none;
  }
}

.page-cineplay-teen {
  background: transparent;
  color: #e2e8f0;
}

.page-cineplay-teen .site-footer--space {
  background: rgba(12, 6, 32, 0.85);
  color: #e9d5ff;
}

/* === Áreas isoladas: Kids / Teen / Família === */
.page-kids {
  font-size: 1.08rem;
}

.page-kids .section-heading h1 {
  font-size: clamp(1.7rem, 6.5vw, 2.6rem);
}

.page-kids .section-heading p {
  font-size: clamp(1.05rem, 3.5vw, 1.3rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
}

.page-kids .journey-balloon h3 {
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
}

.page-kids .journey-balloon p {
  font-size: clamp(1.05rem, 3.4vw, 1.2rem);
  line-height: 1.55;
  font-weight: 700;
}

.page-kids .timeline-stop h3 {
  font-size: clamp(1rem, 3.2vw, 1.2rem);
}

.page-kids .panel-title {
  font-size: clamp(1.25rem, 4vw, 1.55rem);
}

.page-playkids .playkids-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.page-playkids .playkids-soon {
  margin: 1.25rem 0 0;
  text-align: center;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 60, 100, 0.35);
}

.page-playkids .game-card {
  background: rgba(255, 255, 255, 0.95);
}

.page-playkids .game-card h3 {
  font-size: 1.35rem;
}

.page-playkids .game-card p {
  font-size: 1.05rem;
  font-weight: 700;
}

.colorir-note {
  margin: 0 auto 1.25rem;
  max-width: 36rem;
  text-align: center;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 8px rgba(0, 60, 100, 0.35);
}

.colorir-toolbar {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.colorir-print-all {
  --btn-bg: #f59e0b;
  --btn-shadow: #b45309;
  color: #1e293b !important;
}

.colorir-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.15rem;
}

.colorir-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  border: 3px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 6px 0 #b45309;
}

.colorir-thumb {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background: #fff;
}

.colorir-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 210 / 297;
  object-fit: contain;
  background: #fff;
}

.colorir-card h3 {
  margin: 0.35rem 0 0;
  font-family: "Fredoka One", cursive;
  font-size: 1.2rem;
  color: #0c4a6e;
}

.colorir-card p {
  margin: 0;
  font-weight: 700;
  color: #475569;
  font-size: 0.92rem;
}

.colorir-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.colorir-card-actions .btn-primary {
  flex: 1 1 7.5rem;
  margin-top: 0;
  font-size: 0.88rem;
  padding: 0.55rem 0.7rem;
}

.colorir-download {
  --btn-bg: #0284c7;
  --btn-shadow: #0369a1;
}

.colorir-print {
  --btn-bg: #f59e0b;
  --btn-shadow: #b45309;
  color: #1e293b !important;
}

.musicas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.85fr);
  gap: 1.15rem;
  align-items: start;
}

.musicas-kicker,
.musicas-list-title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7c3aed;
}

.musicas-now-title {
  margin: 0 0 0.25rem;
  font-family: "Fredoka One", cursive;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  color: #4c1d95;
}

.musicas-now-meta {
  margin: 0 0 0.85rem;
  font-weight: 800;
  color: #6d28d9;
}

.musicas-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  object-fit: contain;
  background: #1e1b4b;
  border-radius: 18px;
  border: 3px solid rgba(167, 139, 250, 0.45);
}

.musicas-now-desc {
  margin: 0.85rem 0 0;
  font-weight: 700;
  color: #334155;
  line-height: 1.5;
}

.musicas-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.musicas-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-radius: 16px;
  border: 3px solid rgba(167, 139, 250, 0.35);
  background: #fff;
  cursor: pointer;
  color: inherit;
}

.musicas-item:hover,
.musicas-item.is-active {
  border-color: #7c3aed;
  background: #f5f3ff;
}

.musicas-item-emoji {
  font-size: 1.75rem;
  line-height: 1;
}

.musicas-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.musicas-item-body strong {
  font-size: 1rem;
  color: #4c1d95;
}

.musicas-item-body span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}

@media (max-width: 780px) {
  .musicas-layout {
    grid-template-columns: 1fr;
  }
}

@media print {
  .page-colorir .site-header,
  .page-colorir .site-footer,
  .page-colorir .colorir-toolbar,
  .page-colorir .colorir-note,
  .page-colorir .colorir-card-actions,
  .page-colorir .section-heading,
  .page-colorir .panel-title {
    display: none !important;
  }
}

/* CinePlayTeen — player moderno espacial */
.page-cineplay-teen .site-header {
  background: rgba(12, 6, 32, 0.72);
  backdrop-filter: blur(10px);
}

.cine-teen-panel {
  background: rgba(18, 10, 42, 0.72) !important;
  border: 1px solid rgba(167, 139, 250, 0.28);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.cine-teen-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  gap: 1.25rem;
  align-items: start;
}

.cine-teen-player {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cine-teen-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.25), transparent 40%),
    linear-gradient(160deg, #12081f, #1e1040 55%, #0b1228);
  border: 1px solid rgba(196, 181, 253, 0.35);
  box-shadow: inset 0 0 40px rgba(76, 29, 149, 0.35);
}

.cine-teen-idle,
.cine-teen-ready,
.cine-teen-playing {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: #f5f3ff;
}

.cine-teen-idle-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4b5fd;
  font-weight: 800;
}

.cine-teen-idle-title,
.cine-teen-ready h3 {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  letter-spacing: -0.02em;
}

.cine-teen-idle-hint,
.cine-teen-ready p {
  margin: 0.55rem 0 1rem;
  max-width: 34ch;
  color: rgba(237, 233, 254, 0.85);
  font-weight: 600;
  line-height: 1.5;
}

.cine-teen-ready-emoji {
  font-size: 2.4rem;
  margin: 0 0 0.4rem;
}

.cine-teen-youtube {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.cine-teen-stop {
  align-self: flex-start;
  border: 1px solid rgba(196, 181, 253, 0.4);
  background: rgba(76, 29, 149, 0.55);
  color: #f5f3ff;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 800;
  cursor: pointer;
}

.cine-teen-stop:hover {
  background: rgba(109, 40, 217, 0.75);
}

.cine-teen-sidebar-title {
  margin: 0 0 0.75rem;
  color: #e9d5ff;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.cine-teen-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cine-teen-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  background: rgba(30, 16, 64, 0.75);
  color: #f5f3ff;
  cursor: pointer;
  transition: transform 0.18s var(--ease), border-color 0.18s ease, background 0.18s ease;
}

.cine-teen-item:hover,
.cine-teen-item.is-active {
  transform: translateY(-2px);
  border-color: rgba(196, 181, 253, 0.7);
  background: rgba(76, 29, 149, 0.55);
}

.cine-teen-item-emoji {
  font-size: 1.4rem;
}

.cine-teen-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.cine-teen-item-name {
  font-weight: 800;
  font-size: 0.95rem;
}

.cine-teen-item-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: #c4b5fd;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-playzone-teens .playzone-cabinets {
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .cine-teen-layout {
    grid-template-columns: 1fr;
  }
}

/* Text-to-speech (Web Speech API) */
.tts-toggle {
  position: fixed;
  bottom: 1.25rem;
  left: 1rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 12px 16px;
  border: 3px solid var(--blue);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue-deep);
  font-family: "Fredoka One", cursive;
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(77, 150, 255, 0.25);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tts-toggle:hover {
  transform: translateY(-2px) scale(1.03);
}

.tts-toggle:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.tts-toggle--active {
  background: linear-gradient(145deg, var(--blue), #3d7fe6);
  color: #fff;
  box-shadow: 5px 5px 0 var(--blue-deep);
}

.tts-toggle-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.tts-toggle-label {
  letter-spacing: 0.02em;
}

body.tts-enabled :is(
  h1, h2, h3, h4, h5, h6,
  p, li, label, button, a,
  .nav-pill, .gate-card, .chip,
  [class*="btn"], [class*="card"], [class*="tag"], [class*="hint"]
) {
  cursor: help;
}

.tts-highlight {
  outline: 2px dashed rgba(77, 150, 255, 0.85);
  outline-offset: 3px;
  border-radius: 6px;
  background: rgba(77, 150, 255, 0.08);
}

.page-familia .tts-toggle {
  bottom: 5.5rem;
}

.page-gate .tts-toggle {
  bottom: 1.25rem;
}

@media (max-width: 680px) {
  .tts-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .tts-toggle {
    padding: 12px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tts-toggle {
    transition: none;
  }

  .tts-toggle:hover {
    transform: none;
  }
}
