/* Tutu Games — estilo compartilhado dos jogos */
:root {
  --amarelo: #FFD93D;
  --laranja: #FF8A3D;
  --rosa: #FF5D8F;
  --roxo: #845EC2;
  --azul: #4D96FF;
  --verde: #6BCB77;
  --fundo: #FFF9EC;
  --texto: #3A2E39;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Segoe UI', 'Comic Sans MS', system-ui, sans-serif;
  background: var(--fundo);
  color: var(--texto);
  min-height: 100vh;
}
.tutu-topo {
  background: linear-gradient(135deg, var(--roxo), var(--azul));
  color: #fff;
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  box-shadow: 0 3px 0 rgba(0,0,0,.1);
}
.tutu-topo .titulo {
  flex: 1;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  text-shadow: 2px 2px 0 rgba(0,0,0,.15);
}
.tutu-btn {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--texto);
  background: var(--amarelo);
  border: none;
  border-radius: 1rem;
  padding: .55rem 1.1rem;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0,0,0,.18);
  transition: transform .1s ease;
}
.tutu-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.tutu-btn.mini { padding: .35rem .7rem; font-size: .95rem; border-radius: .8rem; }
.tutu-btn.roxo { background: var(--roxo); color: #fff; }
.tutu-btn.verde { background: var(--verde); color: #fff; }
.tutu-btn.rosa { background: var(--rosa); color: #fff; }
main.tutu-area {
  max-width: 700px;
  margin: 0 auto;
  padding: 1rem;
  text-align: center;
}
.tutu-placar {
  display: flex;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
  margin: .8rem 0;
  font-weight: 700;
}
.tutu-placar span {
  background: #fff;
  border-radius: 1rem;
  padding: .4rem .9rem;
  box-shadow: 0 3px 0 rgba(0,0,0,.08);
}
.tutu-msg { font-size: 1.15rem; font-weight: 700; min-height: 1.6em; margin: .5rem 0; }
/* modal */
.tutu-modal-fundo {
  position: fixed; inset: 0;
  background: rgba(58,46,57,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 50; padding: 1rem;
}
.tutu-modal {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 0 rgba(0,0,0,.2);
  animation: tutuPula .35s ease;
}
@keyframes tutuPula {
  0% { transform: scale(.6); opacity: 0; }
  70% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}
.tutu-modal h2 { margin-bottom: .6rem; font-size: 1.5rem; }
.tutu-modal .pontos-grande { font-size: 2.2rem; font-weight: 900; color: var(--roxo); margin: .4rem 0; }
.tutu-modal input {
  font-family: inherit; font-size: 1.1rem; text-align: center;
  border: 3px solid var(--azul); border-radius: 1rem;
  padding: .5rem .8rem; width: 100%; margin: .6rem 0;
}
.tutu-modal .botoes { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: .8rem; }
.tutu-ranking-lista { list-style: none; text-align: left; margin: .8rem 0; max-height: 45vh; overflow-y: auto; }
.tutu-ranking-lista li {
  display: flex; gap: .6rem; align-items: center;
  padding: .35rem .6rem; border-radius: .8rem; font-weight: 600;
}
.tutu-ranking-lista li:nth-child(odd) { background: var(--fundo); }
.tutu-ranking-lista .pos { width: 2.2em; text-align: center; font-weight: 900; }
.tutu-ranking-lista .nome { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tutu-ranking-lista .pts { color: var(--roxo); font-weight: 800; }
/* confete */
#tutu-confete { position: fixed; inset: 0; pointer-events: none; z-index: 100; }
@media (max-width: 480px) {
  .tutu-topo .titulo { font-size: 1.05rem; }
}
