/* Spelling game page; shares tokens and card styles with daily.css. */
.game-back { margin: 4px 0 12px; }

/* No lesson-number badge here, so the subtitle lines up with the title. */
.game .lesson-meta { margin-left: 0; }
.game-back a { color: var(--teal); font-weight: 700; }

.game-progress {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.game-clue {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.game-meaning {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
}

.game-clue .lesson-meta { margin: 2px 0 0; }

button.say-word {
  flex: none;
  width: 60px;
  height: 60px;
  font-size: 1.6rem;
  background: var(--paper);
  border: 2px solid var(--lesson-color);
  border-radius: 50%;
  cursor: pointer;
}

.game-slots,
.game-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.game-slot,
.game-tile,
.game-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 60px;
  font-size: 1.7rem;
  font-weight: 800;
  border-radius: 12px;
}

.game-slot {
  color: var(--ink);
  background: #f4f8fb;
  border: 2px dashed var(--line);
}

.game-slot:not(:empty) {
  background: var(--paper);
  border: 2px solid var(--lesson-color);
}

.game-slot.is-solved {
  color: #fff;
  background: #2a9d8f;
  border-color: #2a9d8f;
}

.game-word {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-slots { column-gap: 22px; }

.game-mark { width: 22px; }

.game-tile {
  color: #fff;
  background: var(--lesson-color);
  border: 0;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .18);
  cursor: pointer;
}

.game-tile.is-used { visibility: hidden; }

.game-tile:active,
.game-slot:active { transform: scale(.95); }

.game-slot:focus-visible,
.game-tile:focus-visible,
.game-button:focus-visible,
button.say-word:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.game-message {
  min-height: 1.6em;
  margin: 16px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.game-button {
  min-height: 48px;
  padding: 8px 18px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.game-next {
  color: #fff;
  background: var(--lesson-color);
  border-color: var(--lesson-color);
}

.game-button[hidden] { display: none; }

@media (max-width: 620px) {
  .game-slot, .game-tile, .game-mark { width: 44px; height: 52px; font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .game-tile:active, .game-slot:active { transform: none; }
}
