.game-screen {
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--top-bar-height));
  min-height: calc(100dvh - var(--top-bar-height));
  background: var(--gradient-game-bg);
}

/* Timer bar */
.game__timer {
  width: 100%;
  height: 6px;
  background: var(--color-primary-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.game__timer-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 100ms linear;
}

.game__timer-fill--warning { background: var(--color-warning); }
.game__timer-fill--danger  { background: var(--color-error); animation: timerPulse 500ms infinite; }

.game__timer-text {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.game__timer-text--warning { color: var(--color-warning); }
.game__timer-text--danger  { color: var(--color-error); animation: timerPulse 500ms infinite; }

/* Score area */
.game__score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-sm);
  margin-bottom: var(--space-md);
}

.game__score {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-2xl);
  color: var(--color-primary);
  position: relative;
}

.game__score-fly {
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 8px;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-success);
  animation: scoreFly 800ms ease forwards;
  pointer-events: none;
  white-space: nowrap;
}

.game__streak {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-secondary);
}

.game__streak--active {
  animation: streakFire 600ms ease-in-out infinite;
}

.game__word-count {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Hint */
.game__hint {
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary-50);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-style: italic;
}

/* Letter board */
.game__board {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: var(--space-md) var(--space-sm);
  flex: 1;
  align-content: center;
}

.game__tile {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #FFFFFF 0%, #F5F3FF 100%);
  border: 2px solid var(--color-primary-200);
  box-shadow: var(--shadow-tile);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-primary-800);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
}

.game__tile:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.game__tile:active {
  transform: scale(0.9);
  box-shadow: var(--shadow-tile-active);
}

.game__tile--selected {
  background: var(--gradient-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-purple);
  animation: tilePop 200ms ease;
}

.game__tile--correct {
  background: var(--color-success);
  color: white;
  border-color: var(--color-success);
}

.game__tile--wrong {
  animation: tileShake 400ms ease;
  border-color: var(--color-error);
}

.game__tile--disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Input area */
.game__input-area {
  min-height: 56px;
  margin: var(--space-md) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--color-primary-200);
}

.game__input-letter {
  width: 40px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-50);
  border: 2px solid var(--color-primary-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--color-primary);
  text-transform: uppercase;
  animation: tileSlideIn 150ms ease backwards;
  cursor: pointer;
}

.game__input-placeholder {
  width: 40px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--color-primary-100);
}

/* Booster bar */
.game__booster-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  margin-bottom: var(--space-xs);
  min-height: 0;
}

.game__booster-bar:empty {
  display: none;
}

.game__booster-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 2px solid var(--color-primary-200);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary-700);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.game__booster-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-50);
  transform: translateY(-1px);
}

.game__booster-btn:active {
  transform: scale(0.95);
}

.game__booster-icon {
  font-size: 16px;
}

.game__booster-label {
  font-family: var(--font-heading);
}

.game__booster-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: white;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

/* Action buttons */
.game__actions {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  justify-content: center;
}

.game__action-btn {
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  transition: all var(--transition-fast);
}

.game__submit-btn {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-purple);
  flex: 1;
}

.game__submit-btn:disabled {
  opacity: 0.5;
}

.game__skip-btn {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
}

.game__clear-btn {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
}

.game__pause-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pause overlay */
.game__pause-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.game__pause-title {
  color: white;
  font-size: var(--text-3xl);
  font-weight: 900;
}

.game__pause-info {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
}

/* Word found overlay */
.game__word-found {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: var(--z-modal);
  animation: wordFoundIn 300ms ease forwards;
  pointer-events: none;
}

.game__word-found--exit {
  animation: wordFoundOut 300ms ease forwards;
}

.game__word-found-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: var(--shadow-xl);
  text-align: center;
  min-width: 220px;
  border: 2px solid var(--color-success);
}

.game__word-found-check {
  font-size: 36px;
  margin-bottom: var(--space-sm);
}

.game__word-found-word {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-2xl);
  color: var(--color-primary);
  letter-spacing: 2px;
  margin-bottom: var(--space-xs);
}

.game__word-found-def {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: var(--space-sm);
  max-width: 280px;
}

.game__word-found-points {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--color-success);
}

@keyframes wordFoundIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes wordFoundOut {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to   { opacity: 0; transform: translate(-50%, -50%) scale(0.7) translateY(-20px); }
}

/* ═══ Tablet (640px+) ═══ */
@media (min-width: 640px) {
  .game-screen {
    padding: var(--space-md);
  }

  .game__tile {
    width: 64px;
    height: 64px;
    font-size: var(--text-2xl);
  }

  .game__board {
    gap: 12px;
  }

  .game__input-letter,
  .game__input-placeholder {
    width: 48px;
    height: 52px;
    font-size: var(--text-xl);
  }

  .game__input-area {
    gap: 8px;
    min-height: 68px;
  }

  .game__booster-btn {
    padding: 8px 16px;
    font-size: var(--text-sm);
  }

  .game__booster-icon {
    font-size: 18px;
  }

  .game__booster-count {
    min-width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .game__action-btn {
    padding: 14px 28px;
    font-size: var(--text-base);
  }

  .game__score {
    font-size: var(--text-3xl);
  }

  .game__timer-text {
    font-size: var(--text-xl);
  }

  .game__timer {
    height: 8px;
  }
}

/* ═══ Desktop (1024px+) ═══ */
@media (min-width: 1024px) {
  .game-screen {
    padding: var(--space-lg);
    max-width: 700px;
    margin: 0 auto;
  }

  .game__tile {
    width: 72px;
    height: 72px;
    font-size: var(--text-3xl);
    border-radius: var(--radius-lg);
  }

  .game__input-letter,
  .game__input-placeholder {
    width: 52px;
    height: 56px;
    font-size: var(--text-2xl);
  }
}
