/* LetterQuest styles */
.lq-root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  border: 2px solid var(--lq-border, #e5e7eb);
  border-radius: 16px;
  padding: 16px;
  max-width: 720px;
  margin: 16px auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.lq-theme-light { --lq-bg: #ffffff; --lq-fg: #111827; --lq-accent: #3b82f6; --lq-border:#e5e7eb; --lq-cell:#f3f4f6; --lq-cell-fg:#111827; --lq-good:#10b981; --lq-bad:#ef4444; }
.lq-theme-dark  { --lq-bg: #0b1220; --lq-fg: #e5e7eb; --lq-accent: #60a5fa; --lq-border:#1f2937; --lq-cell:#111827; --lq-cell-fg:#e5e7eb; --lq-good:#22c55e; --lq-bad:#f87171; }
.lq-root { background: var(--lq-bg); color: var(--lq-fg); }

.lq-header { display:flex; align-items:center; justify-content:space-between; margin-bottom: 8px; }
.lq-title { font-weight: 800; letter-spacing: .5px; font-size: 22px; }
.lq-controls { display:flex; gap: 8px; align-items:center; }
.lq-toggle { display:flex; align-items:center; gap:6px; font-size:14px; opacity:.9; }
.lq-toggle input { transform: scale(1.2); }
.lq-select { padding:6px 8px; border-radius: 10px; border:1px solid var(--lq-border); background:transparent; color:inherit; }

.lq-status { display:flex; align-items:center; justify-content:space-between; margin: 10px 0 16px; }
.lq-prompt { font-size: 20px; font-weight: 600; }
.lq-score { font-size: 14px; opacity: .85; }

.lq-grid {
  display:grid;
  grid-template-columns: repeat(var(--lq-cols, 3), minmax(0, 1fr));
  gap: 10px;
  user-select:none;
}

.lq-cell {
  background: var(--lq-cell);
  color: var(--lq-cell-fg);
  border: 2px solid transparent;
  border-radius: 16px;
  min-height: 70px;
  font-size: clamp(28px, 8vw, 42px);
  font-weight: 800;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition: transform .06s ease, border-color .2s ease, background .2s ease;
}
.lq-cell:active { transform: scale(.98); }
.lq-cell.lq-correct { border-color: var(--lq-good); background: rgba(16,185,129,.15); }
.lq-cell.lq-wrong { border-color: var(--lq-bad); background: rgba(248,113,113,.15); }

.lq-footer { margin-top: 16px; display:flex; justify-content:flex-end; }
.lq-btn {
  padding: 10px 16px; border-radius: 12px; border: 1px solid var(--lq-border);
  background: transparent; color: inherit; cursor: pointer; font-weight:600;
}
.lq-btn:hover { border-color: var(--lq-accent); }

.lq-finale { text-align:center; padding: 30px 10px; font-size: 18px; }
.lq-finale .lq-big { font-size: 28px; font-weight: 800; margin-bottom: 8px; }

/* Accessibility */
.lq-cell:focus { outline: 3px solid var(--lq-accent); outline-offset: 2px; }
