/* Crossword board (React island) — classic white grid on dark */

.game-app .cw-wrap { display: flex; flex-direction: column; gap: 1rem; color: var(--text); }
.game-app .cw-toolbar { display: flex; align-items: center; gap: .4rem; justify-content: center; }
.game-app .cw-zoom-btn {
  font: inherit; font-size: 1rem; line-height: 1; min-width: 2rem; padding: .35rem .6rem;
  border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text);
  cursor: pointer;
}
.game-app .cw-zoom-btn:hover:not(:disabled) { border-color: var(--accent); }
.game-app .cw-zoom-btn:disabled { opacity: .4; cursor: default; }
.game-app .cw-zoom-reset { font-size: .82rem; }
.game-app .cw-zoom-pct { min-width: 3.4em; text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; }
.game-app .cw-gridwrap {
  overflow: auto; max-height: 62vh; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel-2); padding: 8px; overscroll-behavior: contain;
}
.game-app .cw-grid {
  display: grid; gap: 2px; user-select: none; width: max-content; margin: 0 auto;
  outline: none; --cw-cell: 36px;
}
.game-app .cw-cell {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: #eef1f4; color: #14181d; border-radius: 3px; cursor: pointer;
  font-weight: 700; font-size: calc(var(--cw-cell, 36px) * 0.5); text-transform: uppercase;
}
.game-app .cw-cell.blank { background: transparent; cursor: default; }
.game-app .cw-cell.active { background: #bcd6f7; }
.game-app .cw-cell.cur { background: #ffd25a; }
.game-app .cw-cell.solved { color: #fff; }
.game-app .cw-cell.hit { animation: ws-pop .45s; }
.game-app .cw-num { position: absolute; top: 1px; left: 2px; font-size: calc(var(--cw-cell, 36px) * 0.3); font-weight: 600; line-height: 1; color: #5a636e; }
.game-app .cw-cell.solved .cw-num { color: rgba(255,255,255,.85); }
.game-app .cw-letter { line-height: 1; }
.game-app .cw-hint { color: var(--muted); font-size: .9rem; text-align: center; margin: 0; }
.game-app .cw-answer { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .75rem; }
.game-app .cw-answer-clue { flex: 1; min-width: 160px; font-size: .9rem; color: var(--text); }
.game-app .cw-answer input { flex: 0 1 200px; font: inherit; font-size: .95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: .4rem .6rem; text-transform: uppercase; }
.game-app .cw-answer button { font: inherit; padding: .4rem .9rem; border-radius: 6px; border: none;
  background: var(--accent); color: #0b0e12; font-weight: 600; cursor: pointer; }
.game-app .cw-clues { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.game-app .cw-cluelist h3 { margin: 0 0 .4rem; font-size: .95rem; color: var(--text); }
.game-app .cw-cluelist ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.game-app .cw-clue { display: flex; gap: .4rem; padding: .3rem .45rem; border-radius: 5px; font-size: .88rem;
  cursor: pointer; color: var(--text); }
.game-app .cw-clue:hover { background: var(--panel); }
.game-app .cw-clue.sel { background: color-mix(in srgb, var(--accent) 22%, var(--panel)); }
.game-app .cw-clue.solved { color: var(--muted); }
.game-app .cw-clue.solved .cw-clnum { color: var(--clr); font-weight: 700; }
.game-app .cw-clnum { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 1.4em; text-align: right; }
@media (max-width: 620px) {
  .game-app .cw-clues { grid-template-columns: 1fr; }
}
