/* Base compartilhada por todas as páginas do PrinciPlay (início, jogos, historinhas).
   Cores e fontes vêm de comum/tema.css: é lá que se muda a identidade visual. */

* { box-sizing: border-box; }

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

body {
  font-family: var(--fonte);
  color: var(--tinta);
  /* bolinhas brancas sobre o degradê azul */
  background:
    radial-gradient(var(--fundo-bolinhas) 3px, transparent 3.5px) 0 0 / 34px 34px,
    linear-gradient(170deg, var(--fundo1), var(--fundo2)) fixed;
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Logo / título grande */
.logo {
  font-size: clamp(48px, 10vw, 100px);
  font-weight: 800;
  line-height: 1.05;
  margin: 24px 0 0;
  text-align: center;
  color: var(--titulo);
  -webkit-text-stroke: 0;
  text-shadow:
    3px 3px 0 var(--titulo-contorno), -3px 3px 0 var(--titulo-contorno),
    3px -3px 0 var(--titulo-contorno), -3px -3px 0 var(--titulo-contorno),
    0 10px 0 rgba(20, 60, 110, 0.15);
}

/* Botão redondo (voltar, repetir) */
.round {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 0;
  background: var(--branco);
  box-shadow: var(--sombra);
  font-size: 38px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.round:active { transform: translateY(3px); }

/* "Toque para começar", quando o navegador bloqueia o som (comum.js) */
#tocar {
  position: fixed;
  inset: 0;
  z-index: 10;
  border: 0;
  background: color-mix(in srgb, var(--fundo1) 92%, transparent);
  color: var(--titulo);
  font-size: 36px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
}
#tocar span { font-size: 140px; line-height: 1; animation: pulo 1.2s infinite alternate; }

/* Confete (Principlay.festa) */
#festa { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
#festa span {
  position: absolute;
  top: -60px;
  animation: cai linear forwards;
}
@keyframes cai {
  to { transform: translateY(115vh) rotate(360deg); }
}

@keyframes pulo {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1.12); }
}

/* Botão "Compartilhar com amigos" no fim de todas as páginas (comum/site.js) */
.compartilhar {
  display: flex;
  justify-content: center;
  padding: 28px 16px 36px;
}
.btn-compartilhar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  border-radius: 999px;
  padding: 12px 26px 12px 18px;
  box-shadow: var(--sombra);
}
.btn-compartilhar svg { width: 30px; height: 30px; flex: none; }
.btn-compartilhar:active { transform: translateY(3px); }

/* Rodapé do site em colunas (comum/site.js) */
.rodape {
  background: rgba(255, 255, 255, 0.82);
  color: var(--tinta);
  margin-top: 12px;
  padding: 28px 16px 18px;
  font-size: 15px;
  line-height: 1.5;
}
.rodape-colunas {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 24px 40px;
}
.rodape-marca { display: inline-flex; align-items: center; gap: 10px; color: var(--titulo); font-size: 22px; }
.rodape-marca strong { font-weight: 800; }
.rodape-sobre p { margin: 8px 0 0; max-width: 46ch; }
.rodape-col { display: flex; flex-direction: column; gap: 6px; }
.rodape-col h2 { margin: 4px 0 4px; font-size: 16px; color: var(--titulo); text-transform: uppercase; letter-spacing: 0.04em; }
.rodape-col a { color: var(--tinta); font-weight: 700; }
.rodape-col a:hover { color: var(--titulo); }
.rodape-col span { opacity: 0.75; font-size: 14px; }
.rodape-direitos {
  max-width: 1000px;
  margin: 22px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(46, 58, 89, 0.15);
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
}
@media (max-width: 640px) {
  .rodape-colunas { grid-template-columns: 1fr 1fr; }
  .rodape-sobre { grid-column: 1 / -1; }
}
