:root {
  --rosa-fundo: #ffd6e4;
  --rosa-claro: #fff8fb;
  --rosa-medio: #ffe4ef;
  --rosa-escuro: #ffc9dc;
  --texto: #7e4c61;
  --texto-suave: rgba(126, 76, 97, 0.7);
  --texto-fraco: rgba(126, 76, 97, 0.5);
  --branco-vidro: rgba(255, 255, 255, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  overscroll-behavior: none;
  background:
    radial-gradient(circle at 50% 34%, var(--rosa-claro) 0%, #fff0f6 24%, var(--rosa-medio) 50%, var(--rosa-fundo) 74%, var(--rosa-escuro) 100%);
  color: var(--texto);
  font-family: "Fredoka", "Comic Sans MS", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  user-select: none;
}

body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.78) 0 6%, transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(255, 255, 255, 0.52) 0 4%, transparent 21%),
    radial-gradient(circle at 78% 84%, rgba(255, 255, 255, 0.5) 0 8%, transparent 28%),
    radial-gradient(circle at 8% 78%, rgba(255, 255, 255, 0.34) 0 5%, transparent 22%);
}

#cena {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

#cena:active {
  cursor: grabbing;
}

.aviso {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(255, 214, 228, 0.82);
  color: var(--texto);
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
}

.marca {
  position: fixed;
  top: clamp(16px, 3.4vw, 32px);
  left: clamp(16px, 3.4vw, 32px);
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem 0.66rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: var(--branco-vidro);
  box-shadow: 0 10px 34px rgba(185, 91, 126, 0.12);
  pointer-events: none;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.marca-coracao {
  color: #ff86ad;
  font-size: 1.08rem;
  line-height: 1;
}

.marca-nome {
  color: #744658;
  font-size: clamp(1.12rem, 2.2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1;
}

.marca-sub {
  color: var(--texto-fraco);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1;
}

#dica {
  position: fixed;
  right: 0;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 0;
  z-index: 2;
  padding: 0 1.4rem;
  color: var(--texto-suave);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.012em;
  line-height: 1.45;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

#dica.some {
  opacity: 0;
  transform: translateY(7px);
}

@media (max-width: 620px) {
  .marca {
    top: max(14px, env(safe-area-inset-top));
    gap: 0.38rem;
    padding: 0.5rem 0.9rem 0.55rem;
  }

  .marca-sub {
    display: none;
  }

  #dica {
    bottom: max(26px, calc(env(safe-area-inset-bottom) + 14px));
    padding: 0 1rem;
    font-size: 0.74rem;
  }
}

@media (max-width: 380px) {
  #dica {
    font-size: 0.69rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #dica {
    transition: none;
  }
}
