:root {
  --rosa: #ff4fa3;
  --rosa-claro: #ffa3d2;
  --violeta: #9b5cff;
  --ouro: #ffd36e;
  --fundo: #07030d;
  --escala: 1;
  --seguro-topo: max(14px, env(safe-area-inset-top));
  --seguro-base: max(18px, env(safe-area-inset-bottom));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--fundo);
  color: #fff;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

#gl,
#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#gl {
  z-index: 0;
  touch-action: none;
}

#fx {
  z-index: 5;
  pointer-events: none;
}

#flash {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 45%, #fff 0%, #ffd1ea 25%, rgba(255, 79, 163, 0) 70%);
}

/* ---------- botões do topo ---------- */

.botao-redondo {
  position: fixed;
  top: var(--seguro-topo);
  z-index: 10;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.3, 1.6, 0.4, 1);
}

.botao-redondo.visivel {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.botao-redondo:active {
  transform: scale(0.9);
}

.botao-redondo svg {
  width: 20px;
  height: 20px;
}

#som {
  right: 14px;
}

#denovo {
  left: 14px;
}

#som .xis,
#som.mudo .ondas {
  display: none;
}

#som.mudo .xis {
  display: inline;
}

/* ---------- cenas ---------- */

.cena {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--seguro-topo) 18px var(--seguro-base);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.cena.ativa {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease;
}

/* ---------- intro ---------- */

.cartao {
  position: relative;
  width: min(90vw, 430px);
  padding: clamp(22px, min(6.5vw, 4vh), 36px) clamp(20px, 6vw, 32px) clamp(20px, min(6vw, 3.6vh), 30px);
  border-radius: clamp(24px, 7vw, 32px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 100px rgba(255, 79, 163, 0.16);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  animation: entrar-cartao 1s cubic-bezier(0.2, 0.9, 0.2, 1) 0.3s both;
}

.cartao::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--giro, 0deg), rgba(255, 79, 163, 0.9), rgba(155, 92, 255, 0.15), rgba(255, 211, 110, 0.7), rgba(155, 92, 255, 0.15), rgba(255, 79, 163, 0.9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: girar-borda 6s linear infinite;
}

@property --giro {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes girar-borda {
  to {
    --giro: 360deg;
  }
}

@keyframes entrar-cartao {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
    filter: blur(8px);
  }
}

.cartao.saindo {
  animation: sair-cartao 0.65s cubic-bezier(0.6, 0, 0.8, 0.3) forwards;
}

@keyframes sair-cartao {
  to {
    opacity: 0;
    transform: translateY(-40px) scale(0.9);
    filter: blur(8px);
  }
}

.digitando-pontos {
  position: absolute;
  left: clamp(20px, 6vw, 32px);
  top: clamp(22px, min(6.5vw, 4vh), 36px);
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: scale(0.8);
  transform-origin: 0 50%;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.digitando-pontos.visivel {
  opacity: 1;
  transform: none;
}

.digitando-pontos i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  animation: pulinho 1.1s ease-in-out infinite;
}

.digitando-pontos i:nth-child(2) {
  animation-delay: 0.15s;
}

.digitando-pontos i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pulinho {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-6px); opacity: 1; }
}

#mensagem {
  min-height: 4.1em;
  font-weight: 800;
  font-size: clamp(21px, min(6.4vw, 3.5vh), 30px);
  line-height: 1.36;
  letter-spacing: -0.2px;
  text-align: left;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 12px rgba(255, 140, 198, 0.25);
}

#mensagem .k {
  color: var(--rosa-claro);
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.14em;
  border-radius: 2px;
  background: var(--rosa-claro);
  animation: piscar 1s steps(1) infinite;
}

@keyframes piscar {
  50% {
    opacity: 0;
  }
}

#continuar {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(62px, min(19vw, 10vh), 76px);
  height: clamp(62px, min(19vw, 10vh), 76px);
  margin: clamp(14px, 3vh, 26px) auto 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rosa), var(--violeta));
  box-shadow: 0 10px 30px rgba(255, 79, 163, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.3, 1.6, 0.4, 1), opacity 0.4s;
}

#continuar.visivel {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

#continuar:active {
  transform: scale(0.9);
}

#continuar svg {
  width: 44%;
  height: 44%;
  animation: setinha 1.4s ease-in-out infinite;
}

@keyframes setinha {
  50% {
    transform: translateX(5px);
  }
}

#continuar::before,
#continuar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 140, 198, 0.6);
  animation: onda 2s ease-out infinite;
}

#continuar::after {
  animation-delay: 1s;
}

@keyframes onda {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* ---------- presente ---------- */

#presente.tremendo {
  animation: tremer-tela 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes tremer-tela {
  10%, 90% { transform: translate(-1px, 1px); }
  20%, 80% { transform: translate(3px, -2px); }
  30%, 50%, 70% { transform: translate(-5px, 3px); }
  40%, 60% { transform: translate(5px, -3px); }
}

.palco {
  position: relative;
  width: calc(260px * var(--escala));
  height: calc(460px * var(--escala));
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.palco.risando {
  transform: translateY(calc(5vh * var(--escala)));
}

.palco.saindo {
  opacity: 0;
  transform: translateY(8vh) scale(0.9);
  filter: blur(6px);
}

.escala {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 260px;
  height: 460px;
  margin-left: -130px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 50px;
  transform: scale(var(--escala));
  transform-origin: 50% 100%;
}

.escala::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 50px;
  width: 380px;
  height: 380px;
  margin-left: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 163, 0.38), rgba(155, 92, 255, 0.14) 45%, transparent 70%);
  animation: respirar-halo 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes respirar-halo {
  50% {
    transform: scale(1.12);
    opacity: 0.75;
  }
}

.raios {
  position: absolute;
  left: 50%;
  bottom: 120px;
  width: 800px;
  height: 800px;
  margin: 0 0 -400px -400px;
  opacity: 0;
  transform: scale(0.2);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.6) 30%, transparent 62%);
  mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.6) 30%, transparent 62%);
}

.raios::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 120, 0) 0deg 9deg, rgba(255, 220, 150, 0.55) 11deg 13deg, rgba(255, 150, 210, 0) 15deg 24deg);
  animation: girar 14s linear infinite;
}

.palco.abriu .raios {
  animation: abrir-raios 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes abrir-raios {
  0% { opacity: 0; transform: scale(0.2); }
  30% { opacity: 1; }
  100% { opacity: 0.75; transform: scale(1); }
}

@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}

.onda-choque {
  position: absolute;
  left: 50%;
  bottom: 190px;
  width: 120px;
  height: 120px;
  margin: 0 0 -60px -60px;
  border-radius: 50%;
  border: 3px solid rgba(255, 220, 240, 0.9);
  box-shadow: 0 0 30px rgba(255, 79, 163, 0.8), inset 0 0 30px rgba(255, 79, 163, 0.6);
  opacity: 0;
  pointer-events: none;
}

.palco.abriu .onda-choque {
  animation: onda-choque 0.9s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes onda-choque {
  0% { opacity: 1; transform: scale(0.3); }
  100% { opacity: 0; transform: scale(5); border-width: 1px; }
}

.faiscas i {
  position: absolute;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #fff 0 18%, transparent 20%),
    linear-gradient(90deg, transparent 44%, #fff 48% 52%, transparent 56%),
    linear-gradient(0deg, transparent 44%, #fff 48% 52%, transparent 56%);
  filter: drop-shadow(0 0 6px rgba(255, 211, 110, 0.9));
  opacity: 0;
  animation: faisca 2.4s ease-in-out infinite;
  pointer-events: none;
}

.faiscas i:nth-child(1) { left: 22px; bottom: 150px; animation-delay: 0s; }
.faiscas i:nth-child(2) { left: 222px; bottom: 175px; animation-delay: 0.5s; transform: scale(0.7); }
.faiscas i:nth-child(3) { left: 40px; bottom: 250px; animation-delay: 1.1s; }
.faiscas i:nth-child(4) { left: 200px; bottom: 262px; animation-delay: 1.6s; transform: scale(1.2); }
.faiscas i:nth-child(5) { left: 120px; bottom: 300px; animation-delay: 0.8s; transform: scale(0.6); }
.faiscas i:nth-child(6) { left: 6px; bottom: 90px; animation-delay: 2s; transform: scale(0.8); }
.faiscas i:nth-child(7) { left: 238px; bottom: 95px; animation-delay: 1.3s; }

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

.palco.abriu .faiscas {
  display: none;
}

.flutua {
  position: relative;
  animation: flutuar 3.2s ease-in-out infinite;
}

@keyframes flutuar {
  50% {
    transform: translateY(-12px);
  }
}

.caixa {
  position: relative;
  width: 190px;
  height: 150px;
  transform-origin: 50% 100%;
}

.caixa.balancando {
  animation: balancar 0.7s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes balancar {
  10%, 90% { transform: rotate(-2deg); }
  20%, 80% { transform: rotate(4deg) scale(1.02); }
  30%, 50%, 70% { transform: rotate(-8deg) scale(1.03); }
  40%, 60% { transform: rotate(8deg) scale(1.03); }
}

.caixa.abrindo {
  animation: agachar 0.24s ease-in forwards;
}

@keyframes agachar {
  to {
    transform: scale(1.1, 0.88);
  }
}

.caixa.aberta {
  animation: pular 0.55s cubic-bezier(0.3, 1.6, 0.4, 1);
}

@keyframes pular {
  0% { transform: scale(1.1, 0.88); }
  40% { transform: scale(0.94, 1.08); }
  100% { transform: none; }
}

.frente {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  border-radius: 14px 14px 22px 22px;
  background:
    radial-gradient(rgba(255, 255, 255, 0.16) 2px, transparent 2.6px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 26%, transparent 70%, rgba(0, 0, 0, 0.26)),
    linear-gradient(180deg, #ff78bb, #e62d86 58%, #ad1265);
  box-shadow: inset 0 -14px 24px rgba(0, 0, 0, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.28), 0 26px 55px rgba(230, 45, 134, 0.38);
}

.frente::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 34px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #c8912a, #ffe9a8 42%, #f7c653 58%, #bb8322);
  box-shadow: 0 0 14px rgba(255, 211, 110, 0.5);
}

.frente::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.3) 35%, transparent 50%);
  background-size: 250% 100%;
  animation: brilho-caixa 3.5s ease-in-out infinite;
}

@keyframes brilho-caixa {
  0% { background-position: 150% 0; }
  60%, 100% { background-position: -100% 0; }
}

.tampa {
  position: absolute;
  z-index: 4;
  left: -12px;
  right: -12px;
  top: -36px;
  height: 46px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 25%, transparent 75%, rgba(0, 0, 0, 0.22)),
    linear-gradient(180deg, #ff90c9, #f03f92 70%, #c41d71);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  transform-origin: 50% 100%;
}

.tampa::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 34px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #c8912a, #ffe9a8 42%, #f7c653 58%, #bb8322);
}

.caixa.aberta .tampa {
  animation: voar-tampa 0.95s cubic-bezier(0.15, 0.8, 0.3, 1) forwards;
}

@keyframes voar-tampa {
  to {
    transform: translate(60px, -380px) rotate(-42deg);
    opacity: 0;
  }
}

.laco {
  position: absolute;
  left: 50%;
  top: -36px;
  width: 0;
  height: 0;
}

.laco span {
  position: absolute;
  top: 0;
  width: 66px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, transparent 36%, #d49d36 38%, #ffeaa9 55%, #f7c653 66%, #b17c1f 78%, transparent 80%);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.28));
}

.laco span:first-child {
  right: 2px;
  transform: rotate(-22deg);
}

.laco span:nth-child(2) {
  left: 2px;
  transform: rotate(22deg);
}

.laco i {
  position: absolute;
  left: -14px;
  top: 16px;
  width: 28px;
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ffeaa9, #d49d36);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.sombra {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 170px;
  height: 22px;
  margin-left: -85px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.6), transparent 70%);
  animation: sombra 3.2s ease-in-out infinite;
}

@keyframes sombra {
  50% {
    transform: scale(0.85);
    opacity: 0.7;
  }
}

.dedo {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 30px;
  font-size: 118px;
  line-height: 1;
  opacity: 0;
  transform: translate(-50%, 0) scale(0.2);
  filter: drop-shadow(0 0 18px rgba(255, 211, 110, 0.75)) drop-shadow(0 0 40px rgba(255, 79, 163, 0.5));
  pointer-events: none;
}

.caixa.aberta .dedo {
  animation:
    subir-dedo 1s cubic-bezier(0.25, 1.6, 0.4, 1) 0.2s forwards,
    zoeira 0.45s ease-in-out 1.3s infinite alternate;
}

@keyframes subir-dedo {
  0% { opacity: 0; transform: translate(-50%, 20px) scale(0.2); }
  40% { opacity: 1; }
  100% { opacity: 1; transform: translate(-50%, -150px) scale(1); }
}

@keyframes zoeira {
  from { transform: translate(-50%, -150px) rotate(-9deg) scale(1); }
  to { transform: translate(-50%, -160px) rotate(9deg) scale(1.05); }
}

.dedo.sumindo {
  animation: poof 0.45s cubic-bezier(0.5, 0, 0.8, 0.4) forwards !important;
}

@keyframes poof {
  0% { opacity: 1; transform: translate(-50%, -155px) scale(1); filter: blur(0); }
  35% { opacity: 1; transform: translate(-50%, -155px) scale(1.25); }
  100% { opacity: 0; transform: translate(-50%, -155px) scale(0); filter: blur(10px); }
}

.balao {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 300px;
  padding: 10px 20px 12px;
  border-radius: 22px;
  background: #fff;
  color: #3a0d2c;
  font-weight: 900;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.3px;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 34px rgba(255, 255, 255, 0.3);
  opacity: 0;
  transform: translateX(-50%) scale(0) rotate(-12deg);
  transform-origin: 50% 120%;
}

.balao::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -11px;
  margin-left: -12px;
  border: 12px solid transparent;
  border-top-color: #fff;
  border-bottom: 0;
}

.caixa.aberta .balao {
  animation: balao 0.55s cubic-bezier(0.3, 1.8, 0.4, 1) 1.05s forwards;
}

@keyframes balao {
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1) rotate(-4deg);
  }
}

.balao.sumindo {
  animation: sumir-balao 0.35s ease-in forwards !important;
}

@keyframes sumir-balao {
  from { opacity: 1; transform: translateX(-50%) scale(1) rotate(-4deg); }
  to { opacity: 0; transform: translateX(-50%) scale(0.3) rotate(10deg); }
}

.dica {
  margin-top: clamp(4px, 1.5vh, 12px);
  font-weight: 700;
  font-size: clamp(14px, min(4.2vw, 2.3vh), 17px);
  color: rgba(255, 232, 244, 0.8);
  opacity: 0;
  transition: opacity 0.6s;
}

.dica.visivel {
  opacity: 1;
  animation: respirar 2.2s ease-in-out infinite;
}

@keyframes respirar {
  50% {
    opacity: 0.45;
  }
}

.risada {
  position: absolute;
  top: calc(var(--seguro-topo) + min(5vh, 40px));
  left: 14px;
  right: 14px;
  z-index: 7;
  text-align: center;
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

.risada.visivel {
  animation: risada 0.5s cubic-bezier(0.3, 1.7, 0.4, 1) forwards;
}

.risada.saindo {
  animation: sumir-risada 0.7s ease forwards;
}

@keyframes risada {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sumir-risada {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(-20px); }
}

.kkk {
  font-weight: 900;
  font-size: clamp(26px, min(9.4vw, 5.6vh), 58px);
  letter-spacing: 1px;
  line-height: 1.1;
  white-space: nowrap;
  background: linear-gradient(90deg, #ffd36e, #ff4fa3, #9b5cff, #5fd8ff, #ffd36e);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(255, 79, 163, 0.55));
  animation: arco-iris 1.4s linear infinite, chacoalhar 0.14s linear infinite;
}

@keyframes arco-iris {
  to {
    background-position: 300% 0;
  }
}

@keyframes chacoalhar {
  25% { transform: translate(1px, -1px) rotate(-0.6deg); }
  75% { transform: translate(-1px, 1px) rotate(0.6deg); }
}

.brincando {
  margin: 10px auto 0;
  max-width: 22ch;
  min-height: 1.3em;
  font-weight: 800;
  font-size: clamp(20px, min(6vw, 3.4vh), 32px);
  line-height: 1.3;
  text-shadow: 0 0 20px rgba(255, 140, 198, 0.5), 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ---------- coração ---------- */

#coracao {
  justify-content: flex-end;
  pointer-events: none;
}

.textos {
  width: 100%;
  padding-bottom: clamp(8px, 4vh, 40px);
  text-align: center;
}

.titulo {
  font-family: 'Pacifico', cursive;
  font-weight: 400;
  font-size: clamp(26px, min(12.5vw, 6.6vh), 74px);
  line-height: 1.28;
  color: #fff6fb;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5), 0 0 22px rgba(255, 79, 163, 0.85), 0 0 50px rgba(155, 92, 255, 0.6);
}

.linha {
  display: block;
  opacity: 0;
  transform: translateY(18px) scale(0.92);
  filter: blur(10px);
  transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.2, 1.3, 0.4, 1), filter 0.9s ease;
}

.linha.on {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.subtitulo {
  margin-top: clamp(4px, 1.2vh, 12px);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(12px, min(4.4vw, 2.4vh), 20px);
  color: rgba(255, 226, 242, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease;
}

.toque {
  margin-top: clamp(8px, 2vh, 18px);
  font-weight: 600;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  transition: opacity 1s;
}

.subtitulo.on,
.toque.on {
  opacity: 1;
  transform: none;
}

.toque.on {
  animation: respirar 2.4s ease-in-out infinite;
}

.coracao-css {
  display: none;
}

.sem-webgl .coracao-css {
  display: block;
  margin: 16vh auto auto;
  font-size: 150px;
  filter: drop-shadow(0 0 30px rgba(255, 79, 163, 0.9));
  animation: flutuar 3s ease-in-out infinite;
}

.previa .flutua,
.previa .sombra {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .kkk {
    animation: arco-iris 1.4s linear infinite;
  }
}
