@font-face {
  font-family: "Fredoka";
  src: url("/editorial-home/Fredoka-Variable.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 700;
}

:root {
  color-scheme: dark;
  --brand-deep: #033e4a;
  --brand-panel: #054b50;
  --brand-mid: #08737a;
  --brand-bright: #12939a;
  --gold: #ffb52e;
  --gold-deep: #e39200;
  --coral: #c52f4b;
  --coral-pressed: #982139;
  --coral-soft: #ff8fa3;
  --turquoise: #2ec4c9;
  --panel: #cfe9e5;
  --surface: #f3f8f8;
  --ivory: #fff4de;
  --ink: #172124;
  --white: #fff;
  --focus: #ffb3c1;
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--brand-deep); scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--brand-deep);
  color: var(--white);
}

a { color: inherit; }

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

a:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--ivory);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

/* ---------- Movimento: tudo é transform/opacity e desliga com “reduzir movimento” ---------- */

@keyframes float {
  0% { transform: translate(0, 0) rotate(var(--r0, 0deg)); }
  50% { transform: translate(var(--dx, 6px), var(--dy, -14px)) rotate(var(--r1, 12deg)); }
  100% { transform: translate(0, 0) rotate(var(--r0, 0deg)); }
}

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

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

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  50% { transform: translateY(-8px) rotate(calc(var(--tilt, 0deg) * -1)); }
}

@keyframes jelly {
  0% { transform: scale(1, 1); }
  30% { transform: scale(1.08, 0.92); }
  50% { transform: scale(0.95, 1.05); }
  70% { transform: scale(1.03, 0.97); }
  100% { transform: scale(1, 1) translateY(-2px); }
}

@keyframes run-across {
  0% { transform: translateX(-160px) translateY(0); }
  100% { transform: translateX(calc(100vw + 40px)) translateY(0); }
}

@keyframes hop {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

@keyframes jump {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  10% { transform: translateY(0) scale(1.06, 0.94); }
  45% { transform: translateY(-34px) scale(0.97, 1.03); }
  80% { transform: translateY(0) scale(1.04, 0.96); }
}

@keyframes pop {
  0%, 70%, 100% { transform: scale(1); }
  80% { transform: scale(1.18) rotate(-6deg); }
}

@keyframes twinkle {
  0%, 100% { transform: scale(0.6) rotate(0deg); opacity: 0.4; }
  50% { transform: scale(1.1) rotate(45deg); opacity: 1; }
}

@keyframes wiggle {
  0%, 100% { transform: translateY(-4px) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-1.6deg); }
  75% { transform: translateY(-4px) rotate(1.6deg); }
}

/* ---------- Cabeçalho ---------- */

.site-header,
footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header { min-height: 72px; }

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  font: 700 1.25rem/1 "Fredoka", system-ui, sans-serif;
  text-decoration: none;
  transition: transform 260ms var(--bounce);
}

.brand:hover { transform: rotate(-3deg) scale(1.04); }

.brand img { display: block; width: 142px; height: auto; }

.site-header nav,
footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-header nav a,
footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #d9f0ee;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover,
footer a:hover { color: var(--gold); }

.site-header nav .nav-apps {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--gold-deep);
  transition: transform 200ms var(--bounce), box-shadow 200ms ease-out;
}

.site-header nav .nav-apps:hover { color: var(--ink); transform: translateY(-2px) rotate(-2deg); box-shadow: 0 6px 0 var(--gold-deep); }

main { overflow-x: clip; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(310px, 0.78fr) minmax(500px, 1.22fr);
  align-items: center;
  gap: 36px;
  padding: 40px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40px -200px 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff' fill-opacity='0.045' transform='rotate(-18 60 60)'%3E%3Cellipse cx='60' cy='72' rx='17' ry='14'/%3E%3Cellipse cx='40' cy='50' rx='7' ry='9'/%3E%3Cellipse cx='53' cy='41' rx='7' ry='9'/%3E%3Cellipse cx='67' cy='41' rx='7' ry='9'/%3E%3Cellipse cx='80' cy='50' rx='7' ry='9'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-copy { max-width: 590px; }

.promise {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 181, 46, 0.14);
  color: var(--gold);
  font: 700 1rem/1.4 "Fredoka", system-ui, sans-serif;
}

.promise-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 -3px 0 var(--gold-deep);
  animation: pop 2.8s ease-in-out infinite;
}

h1,
h2 {
  margin: 0;
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.h1-accent {
  position: relative;
  display: inline-block;
  color: var(--gold);
}

.h1-accent::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 4%;
  bottom: -0.16em;
  height: 0.22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13 C 30 3, 50 3, 72 11 S 118 19, 140 9 S 182 3, 197 10' fill='none' stroke='%23c52f4b' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

h2 {
  color: var(--ink);
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-text {
  max-width: 62ch;
  margin: 26px 0 0;
  color: #d9f0ee;
  font-size: 1.125rem;
  line-height: 1.62;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font: 700 1.05rem/1 "Fredoka", system-ui, sans-serif;
  text-decoration: none;
  transition: background-color 180ms ease-out, color 180ms ease-out, box-shadow 180ms ease-out;
}

.button:hover { animation: jelly 520ms ease-out forwards; }
.button:active { transform: translateY(2px); box-shadow: none; }
.button-primary { background: var(--coral); color: var(--white); box-shadow: 0 5px 0 var(--coral-pressed); }
.button-primary:hover { background: #d53b58; }
.button-secondary { background: var(--ivory); color: var(--ink); box-shadow: 0 5px 0 #d8c7a4; }
.button-secondary:hover { background: var(--gold); box-shadow: 0 5px 0 var(--gold-deep); }

.hero-stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 20px;
}

.hero-stores-label { flex-basis: 100%; color: var(--panel); font-size: 0.9rem; font-weight: 700; }

.store-badge {
  display: inline-flex;
  border-radius: 10px;
  transition: transform 240ms var(--bounce);
}

.store-badge img { display: block; width: auto; height: 44px; }
.store-badge:hover { transform: translateY(-3px) rotate(-2deg); }
.store-badge:nth-of-type(2):hover { transform: translateY(-3px) rotate(2deg); }

.availability {
  margin: 16px 0 0;
  color: var(--panel);
  font-size: 0.875rem;
  font-weight: 700;
}

.hero-stage { position: relative; }

.hero-art {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 6px solid var(--ivory);
  border-radius: 28px;
  background: var(--brand-mid);
  box-shadow: 0 14px 0 rgba(0, 0, 0, 0.22), 12px 12px 0 var(--coral);
  transform-origin: 50% 0;
  animation: sway 7s ease-in-out infinite;
}

.hero-art img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-bits { position: absolute; inset: -40px -24px -44px; pointer-events: none; }

.bit {
  position: absolute;
  display: grid;
  place-items: center;
  animation: float var(--t, 6s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.bit-checker {
  --r0: -8deg; --r1: 14deg; --dx: 8px; --dy: -16px; --t: 5.6s;
  top: -4px;
  left: -10px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 42%, rgba(0, 0, 0, 0.16) 44%, transparent 48%), var(--coral);
  box-shadow: inset 0 -6px 0 var(--coral-pressed), 0 6px 14px rgba(0, 0, 0, 0.25);
}

.bit-checker-ivory {
  --r0: 10deg; --r1: -12deg; --dx: -10px; --dy: -12px; --t: 6.4s; --d: -2s;
  top: auto;
  left: auto;
  right: 8%;
  bottom: -6px;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, transparent 42%, rgba(0, 0, 0, 0.12) 44%, transparent 48%), var(--ivory);
  box-shadow: inset 0 -6px 0 #d8c7a4, 0 6px 14px rgba(0, 0, 0, 0.25);
}

.bit-die {
  --r0: 12deg; --r1: -18deg; --dx: -8px; --dy: -18px; --t: 7s; --d: -1s;
  top: -18px;
  right: 16%;
  width: 54px;
  height: 54px;
  padding: 9px;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  border-radius: 13px;
  background: var(--white);
  box-shadow: inset 0 -5px 0 #cfd8d8, 0 6px 14px rgba(0, 0, 0, 0.25);
}

.bit-die i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); place-self: center; }
.bit-die i:nth-child(1) { grid-area: 1 / 1; }
.bit-die i:nth-child(2) { grid-area: 1 / 3; }
.bit-die i:nth-child(3) { grid-area: 2 / 2; background: var(--coral); }
.bit-die i:nth-child(4) { grid-area: 3 / 1; }
.bit-die i:nth-child(5) { grid-area: 3 / 3; }

.bit-card {
  --r0: -14deg; --r1: -2deg; --dx: 6px; --dy: -10px; --t: 6.8s; --d: -3s;
  left: -26px;
  bottom: 18%;
  width: 46px;
  height: 64px;
  border-radius: 8px;
  background: var(--white);
  color: var(--coral);
  font: 700 1.7rem/1 system-ui, sans-serif;
  box-shadow: inset 0 0 0 3px #fbe3e8, 0 6px 14px rgba(0, 0, 0, 0.25);
}

.bit-star {
  --r0: 0deg; --r1: 40deg; --dx: 4px; --dy: -12px; --t: 4.8s; --d: -0.5s;
  right: -12px;
  top: 38%;
  color: var(--gold);
  font-size: 2.6rem;
  line-height: 1;
  text-shadow: 0 4px 0 var(--gold-deep);
}

.bit-paw,
.bit-paw-2 {
  --r0: -20deg; --r1: 10deg; --dx: 5px; --dy: -9px; --t: 5.2s; --d: -1.5s;
  left: 36%;
  bottom: -8px;
  width: 34px;
  height: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='%232ec4c9'%3E%3Cellipse cx='60' cy='76' rx='24' ry='20'/%3E%3Cellipse cx='30' cy='46' rx='10' ry='13'/%3E%3Cellipse cx='50' cy='32' rx='10' ry='13'/%3E%3Cellipse cx='70' cy='32' rx='10' ry='13'/%3E%3Cellipse cx='90' cy='46' rx='10' ry='13'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}

.bit-paw-2 { --t: 6s; --d: -4s; left: auto; right: 34%; top: -26px; bottom: auto; width: 28px; height: 28px; filter: hue-rotate(160deg) saturate(2); }

/* ---------- Faixa com os nomes dos jogos ---------- */

.ribbon {
  position: relative;
  z-index: 1;
  margin: -18px -20px 0;
  overflow: hidden;
  background: var(--gold);
  color: var(--ink);
  transform: rotate(-1.6deg);
  box-shadow: 0 6px 0 var(--gold-deep);
}

.ribbon-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.ribbon-track span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 14px 0 14px 22px;
  font: 700 1.2rem/1 "Fredoka", system-ui, sans-serif;
  white-space: nowrap;
}

.ribbon-track span::after {
  content: "";
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='%23033e4a'%3E%3Cellipse cx='60' cy='76' rx='24' ry='20'/%3E%3Cellipse cx='30' cy='46' rx='10' ry='13'/%3E%3Cellipse cx='50' cy='32' rx='10' ry='13'/%3E%3Cellipse cx='70' cy='32' rx='10' ry='13'/%3E%3Cellipse cx='90' cy='46' rx='10' ry='13'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Um jogo para cada momento ---------- */

.choose {
  position: relative;
  background: var(--brand-mid);
  padding: 76px 16px 150px;
  margin-top: -14px;
}

.choose-inner { max-width: 1120px; margin: 0 auto; }
.choose-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; }
.choose-heading h2 { color: var(--white); max-width: 14ch; }
.choose-heading > p { max-width: 56ch; margin: 0; color: #e4f4f2; line-height: 1.6; }
.choose-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }

.choose-path {
  --tone: var(--gold);
  --tilt: -1deg;
  position: relative;
  padding: 58px 22px 22px;
  border-radius: 22px;
  background: var(--brand-panel);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18), inset 0 0 0 3px var(--tone);
  transform: rotate(var(--tilt));
  transition: transform 260ms var(--bounce);
}

.choose-path:hover { transform: rotate(0deg) translateY(-6px); }
.path-think { --tone: var(--turquoise); --tilt: 1deg; }
.path-together { --tone: var(--coral-soft); --tilt: -0.6deg; }

.path-avatar {
  position: absolute;
  top: -30px;
  left: 20px;
  width: 72px;
  height: 72px;
  border: 4px solid var(--tone);
  border-radius: 50%;
  background: var(--ivory);
  animation: bob 3.4s ease-in-out infinite;
}

.path-think .path-avatar { animation-delay: -1.1s; }
.path-together .path-avatar { animation-delay: -2.2s; }

.choose-path h3 { margin: 0 0 8px; font: 700 1.35rem/1.2 "Fredoka", system-ui, sans-serif; color: var(--tone); }
.choose-path p { margin: 0 0 14px; max-width: 35ch; color: #e4f4f2; line-height: 1.5; }
.choose-path .path-links { margin-bottom: 0; }
.path-links a { display: inline-block; min-height: 36px; padding: 5px 0; color: var(--white); font-weight: 750; text-underline-offset: 4px; transition: color 180ms ease-out; }
.path-links a:hover { color: var(--gold); }

.runner-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 120px;
  overflow: hidden;
  pointer-events: none;
}

.runner-track::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  border-bottom: 3px dashed rgba(255, 255, 255, 0.28);
}

.runner {
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 116px;
  height: 116px;
  animation: run-across 13s linear infinite, hop 420ms ease-in-out infinite;
}

/* ---------- Catálogo ---------- */

.catalog {
  position: relative;
  background: #f0f6f4;
  color: var(--ink);
  padding: 80px max(16px, calc((100vw - 1200px) / 2));
}

.catalog::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -22px;
  height: 24px;
  background: radial-gradient(circle at 22px 24px, #f0f6f4 22px, transparent 23px) repeat-x;
  background-size: 44px 24px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 3px dashed #a8d8d3;
}

.squiggle {
  background: linear-gradient(transparent 62%, rgba(255, 181, 46, 0.55) 62%, rgba(255, 181, 46, 0.55) 90%, transparent 90%);
  padding: 0 4px;
}

.section-heading p,
.play-modes p {
  max-width: 66ch;
  margin: 8px 0 0;
  color: #44585b;
  font-size: 1rem;
  line-height: 1.55;
}

.catalog-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  color: var(--coral-pressed);
  font-weight: 800;
  text-decoration: none;
  transition: gap 200ms var(--bounce);
}

.catalog-link:hover { gap: 12px; }

.game-list {
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  list-style: none;
  gap: 22px;
}

.game-list-featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.game-list-rest { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; gap: 14px; }

.game-card {
  --accent: var(--coral);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--accent);
  transition: transform 240ms var(--bounce), box-shadow 240ms ease-out;
}

.game-entry:nth-child(4n + 2) .game-card { --accent: var(--gold); }
.game-entry:nth-child(4n + 3) .game-card { --accent: var(--turquoise); }
.game-entry:nth-child(4n + 4) .game-card { --accent: var(--brand-mid); }

.game-entry:focus-within .game-card,
.game-entry:hover .game-card {
  box-shadow: 9px 9px 0 var(--accent);
  animation: wiggle 420ms ease-in-out 1 forwards;
  transform: translateY(-4px);
}

.game-cover { display: block; height: 178px; overflow: hidden; background: #b3ded9; border-bottom: 3px solid var(--ink); }
.game-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--bounce); }
.game-entry:hover .game-cover img { transform: scale(1.08) rotate(-1deg); }
.game-content { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 20px 16px; }

.game-family {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e2f1ee;
  color: #075e63;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.game-name { font: 700 1.34rem/1.16 "Fredoka", system-ui, sans-serif; }
.game-description { color: #44585b; font-size: 0.91rem; line-height: 1.45; text-wrap: pretty; }
.game-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: auto; padding-top: 10px; }
.game-actions a { min-height: 44px; display: inline-flex; align-items: center; gap: 3px; font-size: 0.9rem; font-weight: 800; text-underline-offset: 4px; }
.game-entry-featured .game-play { min-height: 42px; padding: 8px 16px; border-radius: 100px; color: #fff; background: var(--coral); box-shadow: 0 4px 0 var(--coral-pressed); text-decoration: none; transition: transform 200ms var(--bounce); }
.game-entry-featured .game-play:hover { background: #d53b58; color: #fff; transform: translateY(-2px) scale(1.05); }
.game-play { color: var(--coral-pressed); }
.game-play span[aria-hidden] { display: inline-block; transition: transform 180ms ease-out; }
.game-play:hover span[aria-hidden], .game-play:focus-visible span[aria-hidden] { transform: translate(2px, -2px); }
.game-guide-link { color: #075e63; }
.game-actions a:hover { color: var(--ink); }

.more-games-heading { display: flex; align-items: baseline; gap: 18px; margin-top: 58px; border-bottom: 3px dashed #a8d8d3; padding-bottom: 14px; }
.more-games-heading h3 { margin: 0; font: 700 1.65rem/1.15 "Fredoka", system-ui, sans-serif; }
.more-games-heading p { margin: 0; color: #44585b; line-height: 1.5; }
.game-list-rest .game-card { border-width: 2px; border-radius: 16px; box-shadow: 4px 4px 0 var(--accent); }
.game-list-rest .game-entry:focus-within .game-card, .game-list-rest .game-entry:hover .game-card { box-shadow: 7px 7px 0 var(--accent); }
.game-list-rest .game-content { padding: 18px 16px 14px; }
.game-list-rest .game-name { font-size: 1.17rem; }
.game-list-rest .game-description { font-size: 0.84rem; }
.game-list-rest .game-actions { gap: 2px 14px; }

/* ---------- Aplicativos ---------- */

.apps {
  position: relative;
  background: var(--coral);
  padding: 84px 16px;
  overflow: hidden;
}

.apps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 24px;
  background: radial-gradient(circle at 22px 0, #f0f6f4 22px, transparent 23px) repeat-x;
  background-size: 44px 24px;
}

.apps::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 80%, rgba(255, 181, 46, 0.28) 0 120px, transparent 121px), radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.1) 0 160px, transparent 161px);
  pointer-events: none;
}

.apps-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 40px;
}

.apps-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold);
  font: 700 0.95rem/1.2 "Fredoka", system-ui, sans-serif;
  transform: rotate(-2deg);
}

.apps h2 { color: var(--white); font-size: clamp(2.2rem, 4.4vw, 3.4rem); max-width: 12ch; }
.apps-copy > p:not(.apps-kicker):not(.store-note) { max-width: 52ch; margin: 18px 0 0; color: #ffeef1; font-size: 1.1rem; line-height: 1.6; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.store-badge-large img { height: 60px; }
.store-badge-large { filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.3)); }

.store-note { margin: 16px 0 0; color: #ffe0e6; font-size: 0.88rem; font-weight: 700; }

.apps-art { position: relative; min-height: 400px; }

.phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200px;
  height: 380px;
  margin: -190px 0 0 -100px;
  padding: 12px;
  border-radius: 38px;
  background: var(--ink);
  box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.22);
  transform: rotate(6deg);
  animation: sway 6s ease-in-out infinite;
}

.phone-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 34px 14px 14px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--brand-mid), var(--brand-deep));
}

.phone-icon { width: 80px; height: 80px; border-radius: 20px; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25); animation: pop 3s ease-in-out infinite; }
.phone-title { font: 700 1.3rem/1 "Fredoka", system-ui, sans-serif; color: var(--white); }

.phone-grid {
  width: 100%;
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.phone-grid i {
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--gold);
  animation: pop 2.7s ease-in-out infinite;
}

.phone-grid i:nth-child(3n + 2) { background: var(--coral-soft); animation-delay: -0.9s; }
.phone-grid i:nth-child(3n) { background: var(--turquoise); animation-delay: -1.8s; }
.phone-grid i:nth-child(4) { animation-delay: -0.4s; }
.phone-grid i:nth-child(8) { animation-delay: -2.2s; }

.apps-dom {
  position: absolute;
  left: -6px;
  bottom: -10px;
  width: 190px;
  height: 190px;
  animation: jump 1.9s ease-in-out infinite;
}

.apps-letty {
  --dx: -10px; --dy: -18px; --r0: -4deg; --r1: 6deg;
  position: absolute;
  right: -10px;
  top: -18px;
  width: 170px;
  height: 170px;
  animation: float 5.5s ease-in-out infinite;
}

.spark {
  position: absolute;
  width: 26px;
  height: 26px;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle 2.4s ease-in-out infinite;
}

.spark-1 { left: 18%; top: 8%; }
.spark-2 { right: 26%; bottom: 10%; width: 20px; height: 20px; background: var(--white); animation-delay: -0.8s; }
.spark-3 { left: 6%; top: 52%; width: 16px; height: 16px; animation-delay: -1.6s; }

/* ---------- A Turma ---------- */

.cast-story {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 76px;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: 48px;
}

.cast-stickers {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sticker {
  --tilt: -3deg;
  --bg: var(--brand-mid);
  aspect-ratio: 1;
  border: 5px solid var(--ivory);
  border-radius: 28px;
  background: var(--bg);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.25);
  transform: rotate(var(--tilt));
  transition: transform 300ms var(--bounce);
}

.sticker img { display: block; width: 100%; height: 100%; object-fit: contain; animation: bob 3.2s ease-in-out infinite; }
.sticker:hover { transform: rotate(0deg) scale(1.06); }
.sticker:hover img { animation: jump 900ms ease-in-out infinite; }
.sticker-meg { --bg: #0c8c93; }
.sticker-nita { --tilt: 3deg; --bg: #b83a55; }
.sticker-nita img { animation-delay: -0.8s; }
.sticker-dom { --tilt: 2deg; --bg: #d98e0b; }
.sticker-dom img { animation-delay: -1.6s; }
.sticker-letty { --tilt: -2deg; --bg: #3d5a8c; }
.sticker-letty img { animation-delay: -2.4s; }

.cast-story h2 { color: var(--white); max-width: 18ch; }
.story-copy p { max-width: 65ch; color: #e4f4f2; line-height: 1.65; }
.story-copy strong { color: var(--gold); }
.story-link { min-height: 48px; display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 800; text-underline-offset: 4px; transition: gap 200ms var(--bounce); }
.story-link:hover { gap: 14px; }

/* ---------- Conforto e entrada ---------- */

.play-comfort { position: relative; background: var(--panel); color: var(--ink); padding: 72px max(16px, calc((100vw - 1120px) / 2)); display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

.play-comfort::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -22px;
  height: 24px;
  background: radial-gradient(circle at 22px 24px, var(--panel) 22px, transparent 23px) repeat-x;
  background-size: 44px 24px;
}

.play-comfort p { max-width: 65ch; line-height: 1.6; }
.comfort-details { border-top: 3px dashed #7cb8b2; }
.comfort-details p { margin: 16px 0; }
.comfort-details a { display: inline-flex; min-height: 44px; align-items: center; color: var(--coral-pressed); font-weight: 800; text-underline-offset: 4px; }

.play-modes {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
}

.play-modes h2 { color: var(--white); }
.play-modes p { color: var(--panel); }

.mode-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-links a {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  border-radius: 16px;
  background: var(--brand-panel);
  box-shadow: inset 0 0 0 2px rgba(168, 216, 211, 0.35);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  transition: transform 220ms var(--bounce), background-color 180ms ease-out;
}

.mode-links a:hover { background: var(--brand-mid); transform: translateX(6px); }
.mode-links a::after { content: "→"; color: var(--gold); }

footer {
  min-height: 92px;
  padding: 24px 0;
  border-top: 3px dashed rgba(168, 216, 211, 0.35);
  color: var(--panel);
  font-size: 0.875rem;
}

footer p { margin: 0; }
.footer-brand { display: grid; gap: 6px; }
.footer-stores a { display: inline; min-height: 0; color: var(--gold); }

/* ---------- Telas menores ---------- */

@media (max-width: 860px) {
  .site-header { align-items: flex-start; padding: 14px 0; }
  .site-header nav { justify-content: flex-end; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; }
  .hero-copy { max-width: 700px; }
  h1 { max-width: 14ch; }
  .hero-stage { order: -1; margin: 14px 10px 0; }
  .choose-heading { display: block; }
  .choose-heading > p { margin-top: 14px; }
  .choose-paths { grid-template-columns: 1fr; gap: 46px; margin-top: 52px; }
  .game-list-featured, .game-list-rest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apps-inner { grid-template-columns: 1fr; }
  .apps-art { min-height: 380px; }
  .cast-story { grid-template-columns: 1fr; gap: 32px; }
  .cast-stickers { max-width: 560px; }
}

@media (max-width: 600px) {
  .site-header { align-items: center; }
  .brand img { width: 116px; }
  .site-header nav { gap: 8px 14px; }
  .site-header { flex-wrap: nowrap; gap: 12px; }
  .site-header nav { flex-wrap: nowrap; }
  .site-header nav a:nth-child(2) { display: none; }
  .hero { width: 100%; gap: 0; padding: 0 0 56px; }
  .hero::before { inset: 0; }
  .hero-stage { margin: 40px 22px 0; }
  .hero-art { border-width: 4px; border-radius: 20px; box-shadow: 0 10px 0 rgba(0, 0, 0, 0.22), 7px 7px 0 var(--coral); }
  .hero-bits { inset: -30px -18px -30px; }
  .bit-checker { width: 42px; height: 42px; }
  .bit-checker-ivory { width: 36px; height: 36px; }
  .bit-die { top: -4px; right: 12%; width: 42px; height: 42px; padding: 7px; }
  .bit-paw-2 { top: -14px; }
  .bit-die i { width: 6px; height: 6px; }
  .bit-card { left: -14px; width: 34px; height: 48px; font-size: 1.3rem; }
  .bit-star { right: -8px; font-size: 2rem; }
  .hero-copy { padding: 36px 20px 0; }
  h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .hero-text { font-size: 1rem; line-height: 1.52; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .ribbon-track span { font-size: 1rem; padding-block: 12px; }
  .choose { padding-top: 56px; padding-bottom: 140px; }
  .catalog { padding-top: 56px; padding-bottom: 56px; }
  .section-heading { display: block; }
  .catalog-link { margin-top: 12px; }
  .game-list-featured { grid-template-columns: 1fr; }
  .game-list-rest { grid-template-columns: 1fr; }
  .game-cover { height: clamp(165px, 50vw, 235px); }
  .more-games-heading { display: block; margin-top: 48px; }
  .more-games-heading p { margin-top: 6px; }
  .apps { padding: 64px 16px 56px; }
  .store-badge-large img { height: 54px; }
  .apps-art { min-height: 340px; }
  .phone { width: 170px; height: 320px; margin: -160px 0 0 -85px; }
  .phone-icon { width: 64px; height: 64px; }
  .apps-dom { width: 140px; height: 140px; }
  .apps-letty { width: 124px; height: 124px; right: 0; }
  .cast-story { padding: 56px 0; }
  .cast-stickers { gap: 14px; }
  .play-comfort { grid-template-columns: 1fr; gap: 12px; padding-block: 56px; }
  .play-modes { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .site-header nav a:first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .runner { left: 12%; }
  .game-play:hover span[aria-hidden], .game-play:focus-visible span[aria-hidden] { transform: none; }
  .game-entry:hover .game-cover img, .game-entry:hover .game-card, .game-entry:focus-within .game-card { transform: none; }
  .choose-path:hover, .sticker:hover, .store-badge:hover, .brand:hover, .mode-links a:hover { transform: none; }
}
