/* Small phones */
@media (max-width: 380px) {
  .title {
    font-size: 32px;
  }
  
  .logo-badge {
    font-size: 64px;
  }
  
  .letter-tile {
    width: 50px;
    height: 58px;
    font-size: 26px;
  }
  
  .timer-wrap {
    width: 76px;
    height: 76px;
  }
  
  .timer-wrap span {
    font-size: 22px;
  }
  
  #word-input {
    font-size: 18px;
    padding: 14px 18px;
  }
  
  #btn-submit {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }
  
  .result-score {
    font-size: 64px;
  }
  
  .result-emoji {
    font-size: 64px;
  }
  
  .btn-primary,
  .btn-ghost,
  .btn-reward {
    padding: 16px 24px;
    font-size: 15px;
  }
}

/* Tablets */
@media (min-width: 768px) {
  .screen {
    padding: 40px;
  }
  
  .title {
    font-size: 64px;
  }
  
  .letter-tile {
    width: 80px;
    height: 92px;
    font-size: 44px;
  }
  
  .timer-wrap {
    width: 110px;
    height: 110px;
  }
  
  .timer-wrap span {
    font-size: 32px;
  }
  
  .hud {
    max-width: 600px;
  }
  
  .letters-board,
  .input-wrap,
  .found-words {
    max-width: 600px;
  }
  
  #word-input {
    font-size: 26px;
    padding: 20px 28px;
  }
  
  .result-card {
    padding: 48px 40px;
  }
  
  .result-score {
    font-size: 96px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .letter-tile {
    width: 90px;
    height: 104px;
    font-size: 50px;
  }
  
  .letter-tile:hover {
    transform: translateY(-8px) scale(1.08);
  }
  
  .btn-primary:hover,
  .btn-ghost:hover,
  .btn-reward:hover {
    transform: translateY(-4px);
  }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .screen {
    padding: 12px;
  }
  
  .logo-badge {
    font-size: 48px;
  }
  
  .title {
    font-size: 28px;
  }
  
  .best-score {
    padding: 8px 16px;
    margin-bottom: 12px;
  }
  
  .letter-tile {
    width: 44px;
    height: 50px;
    font-size: 22px;
  }
  
  .letters-board {
    gap: 6px;
    margin-bottom: 12px;
  }
  
  .hud {
    margin-bottom: 12px;
  }
  
  .timer-wrap {
    width: 64px;
    height: 64px;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --glass: rgba(255,255,255,0.15);
    --glass-border: rgba(255,255,255,0.3);
    --text-dim: #cbd5e1;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode (default) */
@media (prefers-color-scheme: light) {
  /* Keep dark theme for game aesthetics */
}

/* Hover support */
@media (hover: none) {
  .letter-tile:hover {
    transform: none;
  }
  
  .btn-primary:hover,
  .btn-ghost:hover,
  .btn-reward:hover {
    transform: none;
  }
}