/* ═══ Famovo Wordle ══════════════════════════════════════════════════════ */
.wordle-page {
  max-width: 500px; margin: 0 auto;
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 16px;
}
.wordle-header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.wordle-title { text-align: center; display: flex; flex-direction: column; }
.wordle-kicker { font-size: 18px; font-weight: 700; color: var(--ink); }
.wordle-date { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.wordle-status {
  text-align: center; font-size: 14px; line-height: 1.4;
  padding: 10px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px;
}
.wordle-board {
  display: grid; grid-template-rows: repeat(6, 1fr);
  gap: 6px; padding: 6px;
  max-width: 340px; margin: 0 auto; width: 100%;
  aspect-ratio: 5 / 6;
}
.wordle-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
}
.wordle-row.shake { animation: wordle-shake 0.4s; }
@keyframes wordle-shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.wordle-cell {
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(22px, 7vw, 32px); font-weight: 800;
  text-transform: uppercase;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  user-select: none;
}
.wordle-cell.wordle-typed { border-color: #94a3b8; transform: scale(1.03); }
.wordle-cell.wordle-hit  { background: #15803d; border-color: #15803d; color: #fff; }
.wordle-cell.wordle-near { background: #d97706; border-color: #d97706; color: #fff; }
.wordle-cell.wordle-miss { background: #6b7280; border-color: #6b7280; color: #fff; }

/* On-screen keyboard */
.wordle-kb {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 4px; touch-action: manipulation;
}
.wordle-kb-row {
  display: flex; justify-content: center; gap: 4px;
}
.wordle-key {
  flex: 1; min-width: 0; max-width: 42px;
  height: 52px;
  border: 0; border-radius: 6px;
  background: #e5e7eb; color: var(--ink);
  font-size: 15px; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit;
  padding: 0; transition: background 0.15s, color 0.15s;
}
.wordle-key:active { background: #cbd5e1; }
.wordle-key-wide { flex: 0 0 auto; min-width: 58px; max-width: 72px; font-size: 12px; }
.wordle-key-hit  { background: #15803d; color: #fff; }
.wordle-key-near { background: #d97706; color: #fff; }
.wordle-key-miss { background: #3f3f46; color: #fff; }
@media (max-width: 380px) {
  .wordle-key { height: 46px; max-width: 34px; font-size: 14px; }
  .wordle-key-wide { min-width: 48px; }
}

.wordle-error {
  text-align: center;
  background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b;
  padding: 8px 12px; border-radius: 8px; font-size: 13px;
  max-width: 340px; margin: 10px auto;
  font-weight: 600;
}

