/* EmuNi: clima de mundo de jogo alegre (céu, nuvens, colinas, contorno grosso, molas), com as cores do
   ícone (#12A8E0 e #FF5247). Fontes: Lilita One nos títulos (a mesma da arte do nome) e Fredoka no texto. */

:root {
  --ink: #17142b;
  --ink-2: #3b3657;
  --cyan: #12a8e0;
  --cyan-d: #0b7fae;
  --red: #ff5247;
  --red-d: #d9372d;
  --sun: #ffc83d;
  --grass: #57c96b;
  --grass-d: #2fa35a;
  --grass-l: #9be08a;
  --violet: #8a6cff;
  --pink: #ff8fc7;
  --paper: #ffffff;
  --cream: #fff8ec;
  --sky-1: #6ccbff;
  --sky-2: #d8f4ff;
  --line: 3px;
  --hard: 0 6px 0 var(--ink);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ios: cubic-bezier(.32, .72, 0, 1);
  --display: "Lilita One", "Fredoka", system-ui, sans-serif;
  --text: "Fredoka", system-ui, sans-serif;
  --head-h: 76px;
}

* { box-sizing: border-box; }
html {
  scroll-padding-top: var(--head-h);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}
@media (min-width: 761px) and (min-height: 640px) { html { scroll-snap-type: y mandatory; } }
@media (max-width: 760px), (max-height: 639px) { html { scroll-snap-type: y proximity; } }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--sky-2);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 12px; }

.snap {
  scroll-snap-align: start;
  min-height: calc(100svh - var(--head-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.snap-end { scroll-snap-align: end; }

/* ---------- Céu com nuvens (fica atrás de tudo) ---------- */

.world {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--sky-1) 0%, #a9e3ff 55%, var(--sky-2) 100%);
  overflow: hidden;
  pointer-events: none;
}
.sky-dots {
  position: absolute;
  inset: -80px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .34) 0 7px, transparent 8px);
  background-size: 64px 64px;
  animation: dots-drift 26s linear infinite;
}
@keyframes dots-drift { to { transform: translate(64px, 64px); } }
.clouds { position: absolute; inset: 0; }
.cloud {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}
.cloud path { fill: rgba(255, 255, 255, .92); stroke: #7cc4ea; stroke-width: 3; stroke-linejoin: round; }
.cloud .cl-shade { fill: #e4f4ff; stroke: none; }

/* ---------- Topo fixo ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 12px 16px 0;
  pointer-events: none;
}
.header-inner {
  pointer-events: auto;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  border: var(--line) solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), transform .5s var(--spring);
}
.header.scrolled .header-inner {
  background: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 5px 0 var(--ink);
}
.brand img { width: 128px; height: auto; transition: transform .5s var(--spring); }
.brand:hover img { transform: rotate(-4deg) scale(1.06); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .3s var(--ease), transform .4s var(--spring);
}
.nav-link:hover { background: rgba(23, 20, 43, .08); transform: translateY(-2px); }

/* ---------- Botões: contorno, sombra dura e mola ao apertar ---------- */

.btn {
  --bg: var(--paper);
  --fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 26px 0 22px;
  border-radius: 999px;
  border: var(--line) solid var(--ink);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-weight: 600;
  font-size: 19px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--hard);
  overflow: hidden;
  cursor: pointer;
  transition: transform .45s var(--spring), box-shadow .45s var(--spring), background .3s var(--ease);
}
.btn .lead, .btn .arrow { width: 22px; height: 22px; flex: none; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.btn .lead svg { width: 22px; height: 22px; }
.btn .arrow { position: absolute; right: 18px; opacity: 0; transform: translateX(28px); }
.btn .label { transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--ink); }
.btn:hover .lead { transform: translateX(-36px); opacity: 0; }
.btn:hover .label { transform: translateX(-28px); }
.btn:hover .arrow { transform: none; opacity: 1; }
.btn:active { transform: translateY(5px) scale(1.03, .94); box-shadow: 0 1px 0 var(--ink); transition-duration: .08s; }
.btn-primary { --bg: var(--red); --fg: #fff; text-shadow: 0 2px 0 var(--ink); }
.btn-primary svg { filter: drop-shadow(0 2px 0 var(--ink)); }
.btn-primary:hover { --bg: #ff6a60; }
.btn-ghost { --bg: var(--paper); }
.btn-sm { height: 44px; font-size: 16px; padding: 0 20px 0 16px; box-shadow: 0 4px 0 var(--ink); }
.btn-sm .lead, .btn-sm .arrow, .btn-sm .lead svg { width: 18px; height: 18px; }
.btn-sm .arrow { right: 14px; }
.btn-sm:hover { box-shadow: 0 6px 0 var(--ink); }
.btn-sm:hover .label { transform: translateX(-24px); }
.btn-lg { height: 66px; font-size: 21px; padding: 0 30px 0 24px; }

/* ---------- Entrada em escada (depois da abertura) ---------- */

.rise { opacity: 0; transform: translateY(28px); transition: opacity .5s var(--ease), transform .7s var(--spring); }
.rise.in { opacity: 1; transform: none; }

/* ---------- Abertura ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  pointer-events: none;
  display: none;
}
html.intro-on .intro, html.intro-wait .intro { display: block; }
html.intro-wait .intro-pair, html.intro-wait .intro-band { visibility: hidden; }
html.intro-on body { overflow: hidden; }
.intro.gone { display: none !important; }
.intro-bg { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky-1), var(--sky-2)); }
.intro-pair { position: fixed; left: 0; top: 0; transform-origin: 50% 50%; }
.intro-pair .half { will-change: transform; }
.intro-band {
  position: absolute;
  left: -40vw;
  top: -30vh;
  width: 34vw;
  height: 160vh;
  display: flex;
  transform: translateX(-70vw) skewX(-24deg);
}
.intro-band i { flex: 1; border-left: var(--line) solid var(--ink); }
.intro-band i:nth-child(1) { background: var(--cyan); }
.intro-band i:nth-child(2) { background: var(--sun); }
.intro-band i:nth-child(3) { background: var(--red); border-right: var(--line) solid var(--ink); }
.burst-dot { position: fixed; z-index: 101; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid var(--ink); pointer-events: none; }

/* ---------- Herói ---------- */

.hero {
  min-height: 100svh;
  padding: calc(var(--head-h) + 8px) 24px 0;
  overflow: hidden;
  cursor: default;
}
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.hero-in {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding-bottom: 12vh;
}
.hero-title { display: flex; flex-direction: column; gap: 6px; font-weight: 400; }
.hero-name { display: block; width: min(540px, 100%); aspect-ratio: 626 / 222; margin: 0 0 14px -6px; }
.name-art svg { width: 100%; height: auto; overflow: visible; }
.name-art .l { transform-box: view-box; will-change: transform; }
.hero-name .l { opacity: 0; }
.hero-name.on .l { opacity: 1; }
.claim {
  font-family: var(--display);
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.06;
  color: var(--ink);
  letter-spacing: .5px;
}
.claim .w { display: inline-block; margin-right: .06em; }
.lede { margin-top: 14px; font-size: 20px; max-width: 32ch; color: var(--ink-2); font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 26px; }
.fine { margin-top: 18px; font-size: 15px; color: var(--ink-2); font-weight: 500; }

.hero-art { position: relative; height: min(64vh, 560px); display: flex; align-items: center; justify-content: center; }
.pair {
  --h: min(56vh, 480px, 38vw);
  position: relative;
  height: var(--h);
  width: calc(var(--h) * 384 / 424);
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
}
.pair.on { opacity: 1; }
.pair:focus-visible { outline-offset: 12px; border-radius: 40px; }
.half { position: absolute; top: 0; height: 100%; width: calc(var(--h) * 208 / 424); overflow: visible; transform-origin: 50% 100%; will-change: transform; }
.half-l { left: 0; }
.half-r { right: 0; }
.half .body { stroke: var(--ink); stroke-width: 12; stroke-linejoin: round; }
.half-l .body { fill: var(--cyan); }
.half-r .body { fill: var(--red); }
.half .gloss { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 12; stroke-linecap: round; }
.half .stick-base circle { stroke: var(--ink); stroke-width: 6; }
.half-l .stick-base circle, .half-l .keys { fill: #0b5f80; }
.half-r .stick-base circle, .half-r .keys { fill: #9e2a22; }
.half .keys > * { stroke: var(--ink); stroke-width: 5; }
.half-l .stick circle:first-child { fill: #084a64; }
.half-r .stick circle:first-child { fill: #7e1f19; }
.half .stick circle:first-child { stroke: var(--ink); stroke-width: 5; }
.half .stick .shine { fill: rgba(255, 255, 255, .45); }
.pair .shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -26px;
  height: 22px;
  border-radius: 50%;
  background: rgba(23, 20, 43, .22);
  transform-origin: 50% 50%;
  z-index: -1;
}
.poke {
  position: absolute;
  right: 4%;
  top: 8%;
  font-family: var(--display);
  font-size: 22px;
  color: var(--paper);
  background: var(--violet);
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  padding: 4px 16px 6px;
  box-shadow: 0 4px 0 var(--ink);
  transform: rotate(8deg);
  animation: poke 2.4s var(--ease) infinite;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.poke.gone { opacity: 0; }
@keyframes poke { 0%, 100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-8px); } }

.hills { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(110px, 21vh, 230px); z-index: 1; pointer-events: none; }
.hill { position: absolute; left: -4%; width: 108%; bottom: 0; overflow: visible; will-change: transform; }
.hill path { stroke: var(--ink); stroke-width: 3; vector-effect: non-scaling-stroke; }
.h3 { height: 100%; }
.h3 path { fill: #b6ecd0; }
.h2 { height: 78%; }
.h2 path { fill: var(--grass-l); }
.h1 { height: 52%; }
.h1 path { fill: var(--grass); }

/* ---------- Momento maravilha ---------- */

.wonder-ring {
  position: fixed;
  z-index: 40;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  border: 10px solid var(--violet);
  box-shadow: 0 0 0 10px var(--pink), 0 0 0 20px var(--sun);
}
html.wonder .world { animation: wonder-sky 3.4s var(--ease); }
@keyframes wonder-sky {
  0% { filter: none; }
  15% { filter: hue-rotate(80deg) saturate(1.5); }
  45% { filter: hue-rotate(200deg) saturate(1.7); }
  75% { filter: hue-rotate(320deg) saturate(1.5); }
  100% { filter: none; }
}
html.wonder .sky-dots { animation: dots-drift 2s linear infinite, dots-pulse .9s var(--ease) infinite alternate; }
@keyframes dots-pulse { to { background-size: 90px 90px; } }
html.wonder .hill path { animation: hill-hue 3.4s var(--ease); }
html.wonder .h1 { animation: hill-wave 1.1s var(--ease) 3 alternate; }
html.wonder .h2 { animation: hill-wave 1.3s var(--ease) .15s 3 alternate; }
html.wonder .h3 { animation: hill-wave 1.5s var(--ease) .3s 2 alternate; }
@keyframes hill-wave { 50% { transform: translateY(-18px) skewX(-6deg) scaleY(1.2); } 100% { transform: translateY(6px) skewX(5deg) scaleY(.9); } }
@keyframes hill-hue { 30% { fill: var(--pink); } 60% { fill: var(--violet); } 85% { fill: var(--sun); } }
html.wonder .claim .w { animation: word-dance .5s var(--spring) 6 alternate; }
html.wonder .claim .w:nth-child(2) { animation-delay: .08s; }
html.wonder .claim .w:nth-child(3) { animation-delay: .16s; }
html.wonder .claim .w:nth-child(4) { animation-delay: .24s; }
@keyframes word-dance { from { transform: translateY(0) rotate(0); } to { transform: translateY(-14px) rotate(-5deg) scale(1.08); } }
html.wonder .lede, html.wonder .fine { animation: lede-tilt 3.2s var(--ease); }
@keyframes lede-tilt { 25% { transform: rotate(-2deg) translateY(-6px); } 60% { transform: rotate(1.5deg) translateY(4px); } }
html.wonder .cloud { animation: cloud-dance .45s var(--spring) 7 alternate; }
@keyframes cloud-dance { to { scale: 1.18 .86; rotate: 8deg; } }
html.wonder .header-inner { transform: rotate(-1.2deg) translateY(4px); }

/* ---------- Títulos de seção ---------- */

.sec-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: .5px;
  color: var(--ink);
  text-shadow: 0 4px 0 rgba(255, 255, 255, .8);
}

/* ---------- Palco ---------- */

.stage-wrap { padding: 28px 24px 24px; align-items: center; gap: 14px; }
.stage-head {
  width: var(--tvw);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.stage-wrap .sec-title { font-size: clamp(32px, 3.4vw, 46px); }
.counter { display: flex; align-items: center; gap: 10px; font-weight: 600; flex: none; }
.counter .num { font-family: var(--display); font-size: 30px; line-height: 1; height: 30px; }
.counter .of { color: var(--ink-2); font-weight: 600; }
.scene-name { font-weight: 600; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.scene-name.swap { opacity: 0; transform: translateY(6px); }
.steps { display: flex; gap: 6px; }
.steps i { width: 24px; height: 8px; border-radius: 99px; background: rgba(23, 20, 43, .16); border: 2px solid var(--ink); overflow: hidden; position: relative; }
.steps i::after { content: ""; position: absolute; inset: 0; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.steps i.done::after { transform: none; }
.roll { position: relative; display: inline-flex; overflow: hidden; }
.roll span { display: inline-block; }
.roll span.out { position: absolute; top: 0; }

.stage-wrap { --tvw: min(960px, calc(100vw - 64px), calc((100svh - 370px) * 16 / 9)); }
.tv-area { position: relative; width: var(--tvw); }
.tv {
  position: relative;
  width: 100%;
  padding: 16px;
  border-radius: 34px;
  background: #2a2740;
  border: 4px solid var(--ink);
  box-shadow: 0 8px 0 var(--ink), inset 0 0 0 4px #3a3656;
}
.screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #2b2b2b;
  border: 3px solid var(--ink);
}
.tv-led { position: absolute; right: 30px; bottom: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--grass); box-shadow: 0 0 0 2px var(--ink); }
.tv-foot { position: absolute; bottom: -24px; width: 70px; height: 22px; background: #2a2740; border: 4px solid var(--ink); border-top: 0; border-radius: 0 0 18px 18px; z-index: -1; }
.tv-foot.l { left: 18%; }
.tv-foot.r { right: 18%; }
.pad-wrap {
  position: absolute;
  right: -190px;
  bottom: -30px;
  width: 220px;
  z-index: 5;
  transform: rotate(-9deg);
  pointer-events: none;
}
.pad { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 0 var(--ink)); }
.pad-body { fill: #fbfbff; stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.pad-gloss { fill: none; stroke: #dfe6ff; stroke-width: 6; stroke-linecap: round; }
.pad .sh-l rect, .pad .sh-r rect { fill: #d9d6ea; stroke: var(--ink); stroke-width: 4; }
.pad .dpad > path:first-child { fill: #3b3657; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.pad .dp { fill: transparent; transition: fill .15s; }
.pad .dp.lit { fill: var(--cyan); }
.pad .fb circle { stroke: var(--ink); stroke-width: 3; }
.pad .c-a { fill: var(--grass); }
.pad .c-b { fill: var(--red); }
.pad .c-x { fill: var(--cyan); }
.pad .c-y { fill: var(--sun); }
.pad .fb text { font: 700 13px var(--text); text-anchor: middle; fill: var(--ink); }
.pad .home circle { fill: #3b3657; stroke: var(--ink); stroke-width: 3; }
.pad .home path { fill: #fff; }
.pad .sel rect { fill: #b9b5cf; stroke: var(--ink); stroke-width: 2.5; }
.pad .stk .ring { fill: #3b3657; stroke: var(--ink); stroke-width: 3; }
.pad .stk .cap { fill: #5c5680; stroke: var(--ink); stroke-width: 2.5; }
.pad [data-b] { transform-box: fill-box; transform-origin: 50% 50%; }
.pad .lit circle, .pad .lit rect, .pad .home.lit circle { fill: var(--cyan) !important; }
.pad-ring {
  position: absolute;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 3px solid var(--cyan);
  opacity: 0;
  pointer-events: none;
}
.pad-cable {
  position: absolute;
  left: 50%;
  top: -40px;
  width: 4px;
  height: 46px;
  background: var(--ink);
  border-radius: 4px;
  transform: rotate(14deg);
  transform-origin: bottom;
  z-index: -1;
  display: none;
}
.stage-foot { width: var(--tvw); display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 30px; }
.phases {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.phases::-webkit-scrollbar { display: none; }
.phase {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  cursor: pointer;
  transition: color .3s var(--ease);
}
.phase.on { color: #fff; }
.phase-slider {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 5px;
  bottom: 5px;
  border-radius: 999px;
  background: var(--cyan);
  border: 2px solid var(--ink);
  transition: transform .55s var(--spring), width .55s var(--spring);
}
.step-caption { min-height: 2.8em; text-align: center; font-weight: 500; max-width: 62ch; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.step-caption.swap { opacity: 0; transform: translateY(6px); }
.stage-note { font-size: 14px; color: var(--ink-2); text-align: center; }

/* ---------- Recursos ---------- */

.features { padding: 40px 24px; align-items: center; gap: 30px; }
.grid {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.cell {
  position: relative;
  padding: 22px 20px 22px;
  border-radius: 28px;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  box-shadow: var(--hard);
  transition: transform .5s var(--spring), box-shadow .5s var(--spring);
}
.cell:nth-child(4n + 1) { background: #e8f8ff; }
.cell:nth-child(4n + 2) { background: #fff1ef; }
.cell:nth-child(4n + 3) { background: #fff7dc; }
.cell:nth-child(4n + 4) { background: #ebfbe9; }
.cell:hover { transform: translateY(-6px) rotate(-1.2deg); box-shadow: 0 12px 0 var(--ink); }
.cell:nth-child(even):hover { transform: translateY(-6px) rotate(1.2deg); }
.cell h3 { font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.1; margin: 12px 0 6px; letter-spacing: .3px; }
.cell p { font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.icon { width: 64px; height: 64px; overflow: visible; }
.icon * { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .6s var(--spring), opacity .4s var(--ease), fill .3s; }
.icon path, .icon rect, .icon circle { stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.icon text { font: 700 16px var(--text); text-anchor: middle; fill: var(--ink); stroke: none; }

.f-window .frame { fill: #fff; }
.f-window .bar { fill: none; }
.f-window .game { fill: var(--cyan); transform: scale(.4); opacity: 0; }
.f-window .ball { fill: var(--sun); opacity: 0; }
.f-window .extra rect { fill: var(--red); }
.f-window .extra path { fill: none; stroke: #fff; }
.cell:hover .f-window .game { transform: none; opacity: 1; }
.cell:hover .f-window .ball { opacity: 1; animation: ball-hop .5s var(--ease) .2s 2 alternate; }
.cell:hover .f-window .extra { transform: translate(14px, -14px) scale(.2) rotate(40deg); opacity: 0; }
@keyframes ball-hop { to { transform: translate(18px, -8px); } }

.f-players .pad-s { fill: #fff; }
.f-players .lights circle { fill: #d9d6ea; }
.f-players .btn-a { fill: var(--red); }
.f-players .cross { fill: none; }
.cell:hover .f-players .lights circle { fill: var(--grass); transform: scale(1.3); }
.cell:hover .f-players .lights circle:nth-child(2) { transition-delay: .12s; }
.cell:hover .f-players .lights circle:nth-child(3) { transition-delay: .24s; }
.cell:hover .f-players .lights circle:nth-child(4) { transition-delay: .36s; }
.cell:hover .f-players .pad-s { transform: rotate(-6deg); }

.f-home .disc { fill: var(--cyan); }
.f-home .pulse { fill: none; stroke: var(--cyan); opacity: 0; }
.f-home .house { fill: #fff; }
.cell:hover .f-home .pulse { animation: home-pulse .9s var(--ease) 2; }
.cell:hover .f-home .disc { transform: scale(.9); }
@keyframes home-pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }

.f-swap .ka circle { fill: var(--grass); }
.f-swap .kb circle { fill: var(--red); }
.f-swap .arc1, .f-swap .arc2 { fill: none; stroke-dasharray: 40; stroke-dashoffset: 40; }
.cell:hover .f-swap .ka { transform: translateX(28px); }
.cell:hover .f-swap .kb { transform: translateX(-28px); }
.cell:hover .f-swap .arc1, .cell:hover .f-swap .arc2 { stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease); }

.f-pause .disc { fill: var(--sun); }
.f-pause .b1, .f-pause .b2 { fill: #fff; }
.f-pause .fps { fill: none; stroke-dasharray: 70; stroke-dashoffset: 70; }
.cell:hover .f-pause .b1 { transform: translateY(-6px) scaleY(.6); }
.cell:hover .f-pause .b2 { transform: translateY(-6px) scaleY(.6); transition-delay: .06s; }
.cell:hover .f-pause .fps { stroke-dashoffset: 0; transition: stroke-dashoffset .7s var(--ease) .1s; }

.f-profiles .p1 circle { fill: var(--cyan); }
.f-profiles .p2 circle { fill: var(--red); }
.f-profiles .p3 circle { fill: var(--sun); }
.f-profiles .floor { fill: none; }
.cell:hover .f-profiles .p1 { transform: translateY(-10px); }
.cell:hover .f-profiles .p2 { transform: translateY(-14px) scale(1.1); transition-delay: .08s; }
.cell:hover .f-profiles .p3 { transform: translateY(-10px); transition-delay: .16s; }

.f-tile .tile rect { fill: var(--sky-1); }
.f-tile .hill-s { fill: var(--grass); stroke: none; }
.f-tile .sun { fill: var(--sun); }
.f-tile .tile { transform-box: view-box; transform-origin: 36px 36px; }
.cell:hover .f-tile .tile { transform: rotateY(180deg) rotateY(180deg) rotate(-8deg) scale(1.08); animation: tile-flip .7s var(--spring); }
@keyframes tile-flip { 0% { transform: rotateY(0); } 50% { transform: rotateY(90deg) scale(.9); } 100% { transform: rotateY(0) rotate(-8deg) scale(1.08); } }

.f-dlc .box { fill: #fff; }
.f-dlc .lid { fill: var(--red); }
.f-dlc .arrow-d { fill: none; }
.f-dlc .track { fill: #e6e3f3; }
.f-dlc .fill { fill: var(--grass); transform-origin: 0 50%; transform: scaleX(.12); }
.cell:hover .f-dlc .arrow-d { transform: translateY(10px); }
.cell:hover .f-dlc .fill { transform: none; transition: transform 1s var(--ease) .15s; }

/* ---------- Como começar ---------- */

.start { padding: 40px 24px; align-items: center; gap: 26px; }
.start-in { position: relative; width: min(760px, 100%); }
.cable { position: absolute; left: 0; top: 10px; width: 64px; height: calc(100% - 20px); overflow: visible; }
.cable path { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.steps-list { list-style: none; margin: 0; padding: 0 0 0 78px; display: flex; flex-direction: column; gap: 22px; }
.steps-list li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px 20px 14px;
  border-radius: 28px;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  box-shadow: var(--hard);
}
.steps-list li::before { content: ""; position: absolute; left: -46px; top: 50%; width: 46px; height: 6px; margin-top: -3px; background: var(--ink); border-radius: 3px; }
.steps-list h3 { font-family: var(--display); font-weight: 400; font-size: 25px; line-height: 1.1; letter-spacing: .3px; }
.steps-list p { margin-top: 6px; color: var(--ink-2); font-size: 17px; }
.bub {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: var(--line) solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}
.bub svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.b-cyan { background: var(--cyan); }
.b-sun { background: var(--sun); }
.b-red { background: var(--red); }
.steps-list li.pop { animation: step-pop .7s var(--spring) both; }
@keyframes step-pop { from { opacity: 0; transform: translateY(26px) scale(.92); } to { opacity: 1; transform: none; } }
.steps-list li.wait { opacity: 0; }

/* ---------- Baixar ---------- */

.download { padding: 40px 24px; align-items: center; }
.dl-card {
  width: min(1000px, 100%);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  padding: 38px 40px;
  border-radius: 36px;
  background: var(--cream);
  border: var(--line) solid var(--ink);
  box-shadow: 0 8px 0 var(--ink);
  position: relative;
}
.dl-art { position: relative; display: grid; place-items: center; }
.dl-art img { width: 150px; height: auto; animation: bob 3.2s var(--ease) infinite; filter: drop-shadow(0 6px 0 rgba(23, 20, 43, .25)); }
@keyframes bob { 50% { transform: translateY(-12px) rotate(-3deg); } }
.bb { position: absolute; border-radius: 50%; border: var(--line) solid var(--ink); background: rgba(255, 255, 255, .7); animation: bubble-up 5s linear infinite; bottom: 0; opacity: 0; }
.bb.b1 { left: 18%; width: 22px; height: 22px; }
.bb.b2 { left: 60%; width: 14px; height: 14px; animation-delay: 1.3s; background: var(--sun); }
.bb.b3 { left: 36%; width: 18px; height: 18px; animation-delay: 2.6s; background: var(--cyan); }
.bb.b4 { left: 78%; width: 12px; height: 12px; animation-delay: 3.7s; background: var(--red); }
@keyframes bubble-up { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-260px) translateX(20px) scale(1.1); opacity: 0; } }
.dl-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.download[data-state="loading"] .when-ready, .download[data-state="loading"] .when-soon { display: none; }
.download[data-state="ready"] .when-soon { display: none; }
.download[data-state="soon"] .when-ready { display: none; }
div.when-ready { display: flex; flex-direction: column; gap: 14px; }
.download[data-state="soon"] div.when-ready { display: none; }
.dl-meta { font-weight: 600; color: var(--ink-2); }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.src-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.src-link:hover { color: var(--cyan-d); }
.dl-kind { font-size: 15px; color: var(--ink-2); }
.hash { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.hash-label { font-weight: 700; }
.hash code { font: 500 13px ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 4px 8px; overflow-wrap: anywhere; min-width: 0; flex: 1 1 260px; }
.copy { border: 2px solid var(--ink); background: var(--paper); border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 14px; cursor: pointer; box-shadow: 0 3px 0 var(--ink); transition: transform .3s var(--spring); }
.copy:active { transform: translateY(3px); box-shadow: none; }
.adv summary { cursor: pointer; font-weight: 600; }
.adv ul { margin: 8px 0 0; padding-left: 18px; font-size: 15px; }
.adv li { margin: 6px 0; overflow-wrap: anywhere; }
.adv code { font: 500 12px ui-monospace, Menlo, Consolas, monospace; }
.soon-text { font-size: 19px; max-width: 46ch; color: var(--ink-2); font-weight: 500; }
.reqs { list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 2px dashed rgba(23, 20, 43, .25); display: flex; flex-direction: column; gap: 8px; font-size: 16px; font-weight: 500; }
.reqs li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reqs svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.reqs li:first-child svg { fill: var(--cyan); stroke: none; }

/* ---------- Perguntas ---------- */

.faq { padding: 40px 24px; align-items: center; gap: 26px; }
.faq-list { width: min(800px, 100%); display: flex; flex-direction: column; gap: 14px; }
.faq details { border-radius: 24px; background: var(--paper); border: var(--line) solid var(--ink); box-shadow: 0 5px 0 var(--ink); overflow: hidden; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); transition: transform .5s var(--spring), background .3s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 3px; margin: -1.5px 0 0 -6px; background: var(--ink); border-radius: 2px; }
.plus::after { transform: rotate(90deg); }
.faq details[open] .plus { transform: rotate(135deg); background: var(--cyan); }
.ans { overflow: hidden; }
.ans p { padding: 0 22px 20px; color: var(--ink-2); font-size: 17px; }

/* ---------- Rodapé ---------- */

.footer { position: relative; margin-top: 30px; color: #fff; }
.foot-wave { width: 100%; height: 60px; display: block; }
.foot-wave path { fill: var(--ink); }
.foot-in { background: var(--ink); padding: 20px 24px 0; overflow: hidden; }
.foot-cols { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; }
.foot-legal { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.55; color: #d9d6ea; }
.foot-legal a, .foot-nav a { color: #fff; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.foot-nav { display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
.foot-nav a { text-decoration: none; width: fit-content; transition: transform .4s var(--spring), color .2s; }
.foot-nav a:hover { color: var(--sun); transform: translateX(6px); }
.foot-name { max-width: 1100px; margin: 50px auto -3%; width: 100%; }
.foot-name svg { width: 100%; }

/* ---------- Responsivo ---------- */

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1360px) and (min-width: 761px) {
  .pad-wrap { right: -24px; width: 180px; bottom: -74px; }
  .stage-foot { margin-top: 56px; }
}
@media (max-width: 1023px) {
  .hide-md { display: none; }
}
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 0; text-align: left; padding-bottom: 16vh; }
  .hero-art { order: -1; height: auto; padding: 10px 0 18px; }
  .pair { --h: min(34vh, 300px); }
  .hero-name { width: min(400px, 92%); }
  .lede { max-width: 40ch; }
  .dl-card { grid-template-columns: 1fr; padding: 28px 22px; gap: 10px; }
  .dl-art img { width: 104px; }
  .foot-cols { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  :root { --head-h: 66px; }
  body { font-size: 17px; }
  .header { padding: 8px 10px 0; }
  .brand img { width: 108px; }
  .hide-sm { display: none; }
  .hero { padding: calc(var(--head-h) + 4px) 16px 0; }
  .hero-in { padding-bottom: 20vh; }
  .pair { --h: min(28vh, 240px); }
  .poke { right: -2px; top: auto; bottom: 34%; font-size: 18px; }
  .hero-name { width: min(330px, 88%); margin-left: -14px; }
  .lede { font-size: 17px; margin-top: 8px; }
  .cta-row { margin-top: 18px; gap: 12px; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .cta-row .btn .lead { position: static; }
  .fine { font-size: 14px; margin-top: 14px; }
  .hills { height: 16vh; }
  .stage-wrap { --tvw: calc(100vw - 32px); padding: 22px 16px 70px; }
  .stage-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tv { padding: 10px; border-radius: 26px; }
  .screen { aspect-ratio: 4 / 3; border-radius: 12px; }
  .pad-wrap { right: auto; left: 50%; bottom: -96px; width: 150px; transform: translateX(-50%) rotate(-6deg); }
  .stage-foot { margin-top: 96px; }
  .phase { padding: 7px 13px; font-size: 15px; }
  .features, .start, .download, .faq { padding: 34px 16px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .cell { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; padding: 16px 16px 18px; }
  .cell .icon { width: 52px; height: 52px; grid-row: span 2; margin-top: 2px; }
  .cell h3 { margin: 0 0 4px; font-size: 21px; }
  .steps-list { padding-left: 34px; }
  .cable { width: 28px; }
  .steps-list li::before { left: -20px; width: 20px; }
  .steps-list li { padding: 16px 16px 16px 12px; gap: 14px; }
  .bub { width: 48px; height: 48px; }
  .bub svg { width: 24px; height: 24px; }
  .steps-list h3 { font-size: 22px; }
  .btn-lg { width: 100%; justify-content: center; font-size: 19px; }
  .faq summary { font-size: 17px; padding: 16px 18px; }
  .ans p { padding: 0 18px 18px; font-size: 16px; }
}
@media (max-width: 380px) {
  .btn { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .sky-dots, .poke, .dl-art img, .bb { animation: none !important; }
  .rise { opacity: 1; transform: none; transition: none; }
  html.wonder * { animation-duration: 0s !important; }
}
