*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Nunito', sans-serif; background: #1a1a2e; color: #fff;
  min-height: 100dvh; display: flex; flex-direction: column;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1rem; background: linear-gradient(135deg, #ff6b35, #e85d2a);
  color: #fff; font-family: 'Nunito', sans-serif;
}
.btn-back {
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: 0.3rem 0.7rem; border-radius: 8px; background: rgba(255,255,255,0.15);
}
.game-title { font-size: 1.25rem; font-weight: 800; }
.stats { font-weight: 700; display: flex; gap: 0.8rem; }

.game-container {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 1rem; gap: 1.5rem;
}

.board {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  width: min(360px, 90vw); aspect-ratio: 1;
}

.tile {
  background: linear-gradient(135deg, #ff6b35, #e85d2a);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(1.5rem, 6vw, 2.5rem); font-weight: 800;
  color: #fff; cursor: pointer; aspect-ratio: 1;
  transition: transform 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.tile:active { transform: scale(0.95); }
.tile.empty { background: transparent; cursor: default; }
.tile.empty:active { transform: none; }

.btn-orange {
  background: linear-gradient(135deg, #ff6b35, #e85d2a); color: #fff;
  padding: 0.8rem 2rem; font-size: 1.1rem; border-radius: 10px; border: none;
  cursor: pointer; font-family: 'Nunito', sans-serif; font-weight: 700;
}

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 1rem;
}
.modal-overlay.show { display: flex; }
.modal {
  background: #1a1a2e; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 2rem; text-align: center; max-width: 360px; width: 100%;
}
.modal h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.modal p { font-size: 1rem; margin-bottom: 1rem; color: #ccc; }

/* ===== RESPONSIVIDADE MOBILE ===== */
@media (max-width: 480px) {
  .game-container { padding: 0.6rem; gap: 1rem; }
  .board { width: min(300px, 92vw); gap: 4px; }
  .tile { border-radius: 8px; }
  .stats { gap: 0.5rem; font-size: 0.9rem; }
  .btn-orange { padding: 0.6rem 1.5rem; font-size: 0.95rem; }
}

/* ===== SEO GAME INFO SECTION ===== */
.game-info {
  max-width: 780px;
  margin: 1rem auto;
  padding: 1rem 1.2rem;
  background: rgba(0,0,0,0.15);
  border-radius: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  line-height: 1.6;
}
.game-info h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.5rem; }
.game-info h3 { font-size: 0.95rem; font-weight: 700; margin: 0.8rem 0 0.3rem; }
.game-info ul { padding-left: 1.2rem; }
.game-info li { margin-bottom: 0.2rem; }
