/* ============================================================
   mentagrupa/style.css — estilos específicos do Mentagrupa
   Os estilos comuns (header, modal, stats, toast, CTA) estão
   em assets/css/game-shared.css
   ============================================================ */

/* ── VARIÁVEIS DE COR DOS GRUPOS ─────────────────────────────────────────── */
:root {
  --mg-yellow-bg:     #f9df6d;
  --mg-yellow-border: #c9a500;
  --mg-yellow-text:   #5c4000;
  --mg-green-bg:      #a0c35a;
  --mg-green-border:  #4d8000;
  --mg-green-text:    #1a3d00;
  --mg-blue-bg:       #b0c4ef;
  --mg-blue-border:   #3060b8;
  --mg-blue-text:     #0a2060;
  --mg-purple-bg:     #ba81c5;
  --mg-purple-border: #7030a0;
  --mg-purple-text:   #35004f;
}

/* ── GAME CONTAINER ──────────────────────────────────────────────────────── */
#game-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  gap: 12px;
}

/* tema do dia usa .info-banner de game-shared.css */

/* ── TABULEIRO ───────────────────────────────────────────────────────────── */
#board {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

/* ── TILES ───────────────────────────────────────────────────────────────── */
.tile {
  background: #f3f4f6;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  min-height: 62px;
  padding: 6px 4px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font);
  text-align: center;
  color: #111827;
  line-height: 1.3;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-word;
  hyphens: auto;
  user-select: none;
}

.tile:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.tile.selected {
  background: #1d4ed8;
  border-color: #1e3a8a;
  color: #fff;
  transform: scale(1.04);
}

/* ── LINHAS RESOLVIDAS ───────────────────────────────────────────────────── */
.solved-row {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-radius: 10px;
  border: 2px solid transparent;
  padding: 12px 10px;
  text-align: center;
  animation: row-appear 0.35s ease;
}

.solved-name  { font-size: 0.95rem; font-weight: 700; }
.solved-words { font-size: 0.78rem; opacity: 0.85; }

/* ── CONTROLES ───────────────────────────────────────────────────────────── */
#controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

#controls button {
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font);
  padding: 10px 22px;
  border: 2px solid transparent;
  transition: opacity 0.15s, transform 0.1s;
}

#controls button:disabled {
  opacity: 0.35;
  cursor: default;
}

#submit-btn {
  background: #1d4ed8;
  color: #fff;
  border-color: #1e3a8a;
}

#submit-btn:not(:disabled):hover {
  background: #1e40af;
}

#deselect-btn {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}

#deselect-btn:hover {
  background: #e5e7eb;
}

/* ── CONTADOR TENTATIVAS ─────────────────────────────────────────────────── */
#attempts-display {
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
  margin: 0;
}

/* ── GRADE DE EMOJIS (dentro do modal) ──────────────────────────────────── */
#share-grid-wrap {
  text-align: center;
  margin-bottom: 10px;
}

.share-grid-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

#share-grid {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  font-size: 1.3rem;
}

.share-row {
  display: flex;
  justify-content: center;
  gap: 2px;
  letter-spacing: 2px;
}

/* ── ANIMAÇÕES ───────────────────────────────────────────────────────────── */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%       { transform: translateX(-6px); }
  45%       { transform: translateX(6px); }
  75%       { transform: translateX(-4px); }
}

@keyframes tile-pop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes row-appear {
  from { opacity: 0; transform: scaleY(0.8); }
  to   { opacity: 1; transform: scaleY(1); }
}

.tile.shake { animation: shake 0.4s ease; }
.tile.pop   { animation: tile-pop 0.35s ease; }

