:root {
  --roxo-escuro: #4a2c72;
  --roxo-fundo: #3f2563;
  --roxo: #6f509c;
  --lilas: #b784c6;
  --lilas-claro: #ebe4ef;
  --rosa: #de87b0;
  --amarelo: #f1cb31;
  --verde-agua: #177f86;
  --verde-agua-escuro: #0f666d;
  --turquesa: #25a9b4;
  --tinta: #444;
  --papel: #fff;

  --f-texto: "Comic Neue", "Comic Sans MS", sans-serif;
  --f-script: "Oleo Script Swash Caps", "Brush Script MT", cursive;
  --f-mao: "Gochi Hand", "Comic Neue", cursive;
  --f-fina: "Amatic SC", "Comic Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--lilas-claro);
  color: var(--tinta);
  font: 400 17px/1.5 var(--f-texto);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
p + p { margin-top: 1em; }
[hidden] { display: none !important; }

.miolo { width: min(1120px, 100% - 32px); margin-inline: auto; }
.onda { display: block; width: 100%; height: 22px; }

.script { font-family: var(--f-script); font-weight: 400; }
.roxo { color: var(--roxo); }
.fino {
  font: 700 30px/1 var(--f-fina);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.fino.grande { font-size: 40px; color: var(--lilas); }

/* ---------- Topo ---------- */
.topo { position: sticky; top: 0; z-index: 50; filter: drop-shadow(0 3px 0 rgba(63, 37, 99, .18)); }
.topo-faixa { background: var(--roxo-fundo); color: #d9c9ee; font-size: 12px; }
.topo-linha { display: flex; gap: 10px; padding: 6px 0; align-items: center; }
.topo-linha i, .menu i { color: var(--amarelo); font-style: normal; }
.topo-menu {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--roxo-escuro);
  padding: 10px max(16px, (100% - 1120px) / 2);
}
.topo .onda { fill: var(--roxo-escuro); margin-top: -1px; height: 16px; }
.menu { display: flex; align-items: center; gap: 14px; }
.menu a {
  color: #fff; font-weight: 700; text-decoration: none; padding: 6px 2px;
  border-bottom: 3px solid transparent;
}
.menu a:hover, .menu a.aqui { border-bottom-color: var(--amarelo); }
.menu-botao { display: none; background: none; border: 2px solid #fff6; border-radius: 6px; color: #fff; font-weight: 700; padding: 6px 12px; }

.botao-jogar {
  display: inline-block; background: var(--turquesa); color: #fff; text-decoration: none;
  font: 400 17px/1 var(--f-mao); letter-spacing: .16em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 5px; transform: skewX(-8deg) rotate(-1deg);
  box-shadow: 3px 3px 0 var(--verde-agua-escuro);
  transition: transform .15s;
}
.botao-jogar span { display: inline-block; transform: skewX(8deg); }
.botao-jogar:hover { transform: skewX(-8deg) rotate(-3deg) scale(1.05); }

/* ---------- Botões ---------- */
.botoes { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.botao {
  display: inline-block; border: 0; background: var(--rosa); color: #fff; text-decoration: none;
  font: 400 17px/1 var(--f-mao); letter-spacing: .16em; text-transform: uppercase;
  padding: 11px 18px 10px; border-radius: 5px; transform: skewX(-9deg);
  transition: transform .15s, background .15s;
}
.botao span { display: inline-block; transform: skewX(9deg); }
.botao:hover { transform: skewX(-9deg) rotate(-2deg) scale(1.04); background: #d0719f; }
.botao.amarelo { background: var(--amarelo); color: var(--tinta); }
.botao.amarelo:hover { background: #f7d94f; }
.botao.pequeno { font-size: 14px; padding: 8px 12px 7px; }
:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; }

/* ---------- Papel ---------- */
.papel {
  position: relative; isolation: isolate;
  padding: clamp(18px, 3vw, 34px);
}
.papel::before {
  content: ""; position: absolute; inset: -9px -7px 7px -11px; z-index: -2;
  background: #55525a; border-radius: 4px; transform: rotate(-.7deg);
}
.papel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--papel); border-radius: 3px;
}
.fita {
  position: absolute; top: -12px; left: 50%; width: 76px; height: 24px; z-index: 2;
  background: var(--rosa); opacity: .92; transform: translateX(-50%) rotate(-3deg);
  clip-path: polygon(3% 0, 100% 8%, 97% 100%, 0 90%);
}

/* ---------- Início ---------- */
.inicio { position: relative; padding: 34px 0 90px; isolation: isolate; }
.brilho {
  position: absolute; inset: 0 0 auto 0; height: 820px; z-index: -1;
  background:
    radial-gradient(ellipse 34% 34% at 50% 36%, #fff6b4 0, #fde68ecc 38%, transparent 72%),
    radial-gradient(ellipse 62% 60% at 50% 32%, #f9c6e3 0, #f6c9e6cc 45%, transparent 78%);
}

.logo-area { position: relative; max-width: 860px; margin: 0 auto; padding: 18px 0 6px; }
.logo { text-align: center; color: var(--roxo); line-height: .86; }
.logo-fita {
  display: inline-block; position: relative; background: var(--roxo); color: #fff;
  font: 400 clamp(20px, 3.4vw, 34px)/1 var(--f-mao); letter-spacing: .2em; text-transform: uppercase;
  padding: 10px 34px 8px; transform: rotate(-3deg); margin-bottom: 14px;
  clip-path: polygon(0 0, 100% 0, 96.5% 50%, 100% 100%, 0 100%, 3.5% 50%);
}
.logo-linha {
  display: block; font: 700 clamp(58px, 13vw, 150px)/.9 var(--f-script);
  text-shadow: 0 5px 0 #fff8, 5px 7px 0 #d9b7e6;
  letter-spacing: -.01em;
}
.logo-linha + .logo-linha { margin-top: .04em; }
.logo em {
  display: inline-block; font-style: normal; color: var(--amarelo); text-transform: uppercase;
  font-size: .78em; transform: rotate(-6deg) translateY(-.06em); margin-left: .08em;
  -webkit-text-stroke: 3px var(--roxo); paint-order: stroke fill;
  text-shadow: 4px 5px 0 var(--roxo);
}

.rabisco { position: absolute; width: clamp(34px, 6vw, 62px); animation: flutua 5s ease-in-out infinite; }
.r1 { left: 3%; top: 4%; }
.r2 { right: 5%; top: 2%; animation-delay: -1s; }
.r3 { left: -2%; top: 46%; animation-delay: -2s; }
.r4 { right: -1%; top: 44%; animation-delay: -3s; }
.r5 { left: 1%; bottom: -4%; animation-delay: -1.5s; width: clamp(26px, 4vw, 44px); }
.r6 { right: 0; bottom: -7%; animation-delay: -2.5s; }
@keyframes flutua { 50% { translate: 0 -10px; rotate: 5deg; } }

.chamada {
  text-align: center; color: var(--roxo);
  font: 400 clamp(20px, 2.6vw, 27px)/1.35 var(--f-script);
  margin: 22px auto 38px;
}

/* ---------- Jogo ---------- */
.jogo { max-width: 980px; margin: 0 auto; }
.jogo-cabeca { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rabiscado { font: 400 clamp(28px, 4vw, 38px)/1 var(--f-script); color: #666; }
.rabiscado span { font: 700 .95em/1 var(--f-fina); text-transform: uppercase; color: var(--lilas); margin-left: 6px; }

.jogo-palco {
  position: relative; aspect-ratio: 16 / 9; background: #231733; border-radius: 6px; overflow: hidden;
  border: 4px solid var(--roxo-escuro);
}
.jogo-palco canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #231733; }
.jogo-palco:fullscreen { border: 0; border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }

.jogo-capa, .jogo-capa img, .jogo-capa-veu, .jogo-carga { position: absolute; inset: 0; }
.jogo-capa img { width: 100%; height: 100%; object-fit: cover; }
.jogo-capa-veu {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: radial-gradient(circle at 50% 50%, #3f256399 0, #3f2563cc 100%); color: #fff; text-align: center; padding: 16px;
}
.jogo-capa-veu strong { font: 400 clamp(22px, 3.4vw, 34px)/1 var(--f-mao); letter-spacing: .16em; text-transform: uppercase; }
.jogo-capa-veu small { font-size: 14px; opacity: .9; }
.jogo-play {
  width: clamp(76px, 12vw, 116px); aspect-ratio: 1; border-radius: 50%; border: 5px solid #fff;
  background: var(--amarelo); color: var(--roxo-escuro); display: grid; place-items: center;
  box-shadow: 0 6px 0 #0004; transition: transform .15s; animation: pulsa 1.8s ease-in-out infinite;
}
.jogo-play svg { width: 60%; margin-left: 6%; }
.jogo-play:hover { transform: scale(1.08) rotate(-4deg); }
@keyframes pulsa { 50% { box-shadow: 0 6px 0 #0004, 0 0 0 14px #f1cb3140; } }

.jogo-carga {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 0 8% 7%; color: #fff; pointer-events: none;
  background: linear-gradient(#0000 40%, #231733dd), url("../img/princesa-fada.webp") center / cover;
}
.jogo-carga p { font: 400 clamp(18px, 2.4vw, 24px)/1 var(--f-script); }
.barra { width: min(520px, 100%); height: 18px; border-radius: 99px; background: #231733cc; border: 2px solid #fff; overflow: hidden; }
.barra-cheia { width: 0; height: 100%; background: var(--amarelo); border-radius: 99px; transition: width .2s; }
.jogo-aviso { position: absolute; left: 0; right: 0; top: 0; background: var(--amarelo); color: var(--tinta); padding: 8px 14px; font-size: 14px; z-index: 3; }
.jogo-aviso.erro { background: #c93b5b; color: #fff; }
.jogo-dica { font-size: 14.5px; color: #666; margin-top: 14px; padding-right: 150px; }

/* ---------- História ---------- */
.historia {
  display: grid; grid-template-columns: minmax(180px, 290px) 1fr; gap: clamp(24px, 5vw, 60px);
  align-items: start; max-width: 900px; margin: 70px auto 0;
}
.historia-arte { margin: 0; transform: rotate(-5deg); }
.historia-arte img {
  border-radius: 4px 12px 12px 4px; border-left: 12px solid var(--rosa);
  box-shadow: 10px 12px 0 #c9b6d8;
}
.historia-texto .fino { margin: 28px 0 12px; display: flex; align-items: center; gap: 4px; }
.historia-texto .fino svg { width: 40px; }

/* ---------- Personagens ---------- */
.personagens { position: relative; background: var(--roxo-escuro); color: #fff; padding: 70px 0 90px; }
.personagens .onda { position: absolute; left: 0; }
.personagens .onda.cima { bottom: calc(100% - 1px); fill: var(--roxo-escuro); }
.personagens .onda.baixo { top: calc(100% - 1px); fill: var(--roxo-escuro); z-index: 2; }
.titulo-claro { text-align: center; color: #fff; font: 700 clamp(44px, 6vw, 62px)/1 var(--f-fina); text-transform: uppercase; letter-spacing: .03em; }
.titulo-claro.script { font: 400 clamp(32px, 5vw, 46px)/1.1 var(--f-script); text-transform: none; }
.titulo-claro::after {
  content: ""; display: block; width: 130px; height: 10px; margin: 6px auto 0;
  border-bottom: 3px solid var(--lilas); border-radius: 0 0 50% 50%;
}

.elenco { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px clamp(14px, 3vw, 38px); margin: 40px 0 46px; }
.rosto { background: none; border: 0; padding: 0; display: grid; justify-items: center; gap: 10px; color: #fff; }
.rosto-foto {
  width: clamp(92px, 13vw, 148px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: #e3d3f5; border: 5px solid #c9b3e6; display: grid; place-items: center;
  transition: transform .2s, border-color .2s;
}
.rosto-foto img { width: 100%; height: 100%; object-fit: cover; }
.rosto-nome { font: 400 17px/1 var(--f-mao); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.rosto:hover .rosto-foto { transform: scale(1.07) rotate(-3deg); }
.rosto.ativo .rosto-foto { border-color: var(--amarelo); transform: scale(1.1); box-shadow: 0 0 0 5px #f1cb3140; }
.rosto.ativo .rosto-nome { opacity: 1; color: var(--amarelo); }

.ficha { max-width: 720px; margin: 0 auto; color: var(--tinta); text-align: center; }
.ficha-papel { font: 700 26px/1 var(--f-fina); text-transform: uppercase; color: var(--lilas); letter-spacing: .06em; }
.ficha-nome { font: 400 clamp(38px, 6vw, 54px)/1.1 var(--f-script); color: var(--roxo); margin-bottom: 12px; }
.ficha-lista { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ficha-lista li { background: var(--lilas-claro); border-radius: 99px; padding: 5px 14px; font-size: 15px; }
.ficha-lista b { color: var(--roxo); }

/* ---------- Álbum ---------- */
.album { background: var(--verde-agua); padding: 86px 0 80px; }
.fotos { display: flex; flex-wrap: wrap; justify-content: center; gap: 34px 26px; margin-top: 46px; }
.foto {
  position: relative; margin: 0; background: #fff; padding: 12px 12px 8px; width: min(300px, 100%);
  box-shadow: 5px 6px 0 var(--verde-agua-escuro); transition: transform .2s;
}
.foto:nth-child(odd) { transform: rotate(-2.5deg); }
.foto:nth-child(even) { transform: rotate(2deg) translateY(10px); }
.foto:hover { transform: rotate(0) scale(1.05); z-index: 2; }
.foto img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.foto figcaption { font: 400 18px/1.2 var(--f-script); color: var(--lilas); text-align: center; padding: 10px 0 4px; letter-spacing: .04em; }

/* ---------- Endereço ---------- */
.endereco { padding: 90px 0 70px; }
.local { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; }
.local-mapa { margin: 0; transform: rotate(-2deg); }
.local-mapa img { border-radius: 4px; box-shadow: 6px 7px 0 #d9cde4; }
.local-texto h2 { line-height: 1; margin-bottom: 14px; }
.local-texto h2 .script { display: block; font-size: clamp(34px, 4.6vw, 46px); line-height: 1.1; }
.dados { margin: 20px 0 24px; display: grid; gap: 10px; }
.dados div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: baseline; border-bottom: 2px dashed #e2d6ec; padding-bottom: 8px; }
.dados dt { font: 400 15px/1 var(--f-mao); letter-spacing: .14em; text-transform: uppercase; color: var(--lilas); }
.dados dd { margin: 0; font-weight: 700; }
.dados small { font-weight: 400; color: #777; }

/* ---------- Rodapé ---------- */
.rodape { position: relative; background: var(--verde-agua); color: #dff3f3; margin-top: 70px; padding: 20px 0 30px; }
.rodape .onda.cima { position: absolute; left: 0; bottom: calc(100% - 1px); height: 54px; fill: var(--verde-agua); }
.rodape-miolo { display: grid; justify-items: center; gap: 30px; }
.placas { position: relative; display: grid; gap: 12px; justify-items: center; padding: 6px 0 22px; margin-top: -40px; }
.poste { position: absolute; top: -8px; bottom: 0; left: 50%; width: 9px; margin-left: -4px; background: #3b3340; border-radius: 5px; }
.placa {
  position: relative; background: #c9a0d6; color: #fff; text-decoration: none;
  font: 400 21px/1 var(--f-script); letter-spacing: .06em; padding: 12px 34px; min-width: 210px; text-align: center;
  transition: transform .15s;
}
.placa.direita { clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%); transform: translateX(22px) rotate(2deg); }
.placa.esquerda { clip-path: polygon(12% 0, 100% 0, 100% 100%, 12% 100%, 0 50%); transform: translateX(-22px) rotate(-2deg); }
.placa:hover { transform: scale(1.06); background: #b784c6; }
.creditos { text-align: center; font-size: 13px; line-height: 1.6; }

/* ---------- Telas pequenas ---------- */
@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  .topo-faixa { display: none; }
  .menu-botao { display: block; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%; margin-top: -17px;
    flex-direction: column; gap: 0; background: var(--roxo-escuro); padding: 6px 16px 18px;
  }
  .menu.aberto { display: flex; }
  .menu i { display: none; }
  .menu a { width: 100%; padding: 12px 4px; border-bottom: 1px solid #fff2; }
  .historia, .local { grid-template-columns: 1fr; }
  .historia-arte { max-width: 220px; margin: 0 auto; }
  .jogo-dica { padding-right: 0; }
  .r3, .r4, .r5, .r6 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
