/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 8px;
    align-items: flex-start;
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .cabinet {
    padding: 12px;
    gap: 8px;
    width: 100%;
  }

  .cabinet-header {
    font-size: 10px;
    padding: 4px 0;
  }

  .cabinet-screen {
    border-width: 2px;
    max-width: 100%;
  }

  .score-display,
  .battery-display {
    font-size: 10px;
    padding: 4px 8px;
  }

  .start-panel {
    padding: 40px 15px;
    gap: 16px;
  }

  .start-title {
    font-size: 32px;
  }

  .start-subtitle {
    font-size: 24px;
  }

  .start-tagline {
    font-size: 8px;
  }

  .start-btn,
  .config-btn {
    padding: 12px 20px;
    font-size: 10px;
  }

  .developer {
    font-size: 7px;
  }

  .game-over-panel {
    padding: 30px 15px;
    gap: 12px;
  }

  .game-over-text {
    font-size: 20px;
  }

  .game-over-score,
  .game-over-batteries {
    font-size: 12px;
  }

  .restart-btn,
  .menu-btn {
    padding: 10px 18px;
    font-size: 10px;
  }

  .modal-content {
    padding: 20px;
    max-width: 90%;
  }

  .modal-content h2 {
    font-size: 14px;
  }

  .modal-content p {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 4px;
    align-items: flex-start;
    padding-top: max(4px, env(safe-area-inset-top));
  }

  .cabinet {
    padding: 6px;
    border-width: 2px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    gap: 6px;
    width: 100%;
  }

  .cabinet-header {
    font-size: 8px;
    padding: 3px 0;
  }

  .cabinet-screen {
    border-width: 2px;
    max-width: 100%;
  }

  .score-display,
  .battery-display {
    font-size: 8px;
    padding: 3px 6px;
    top: 10px;
  }

  .score-display {
    left: 10px;
  }

  .battery-display {
    right: 10px;
  }

  .start-panel {
    padding: 30px 10px;
    gap: 12px;
  }

  .start-title {
    font-size: 24px;
  }

  .start-subtitle {
    font-size: 18px;
  }

  .start-tagline {
    font-size: 6px;
  }

  .start-btn,
  .config-btn {
    padding: 10px 16px;
    font-size: 8px;
  }

  .help-btn {
    padding: 6px 10px;
    font-size: 10px;
  }

  .developer {
    font-size: 6px;
  }

  .score-display,
  .battery-display {
    font-size: 10px;
    padding: 4px 8px;
  }

  .game-over-panel {
    padding: 20px 10px;
    gap: 10px;
  }

  .game-over-text {
    font-size: 16px;
  }

  .game-over-score,
  .game-over-batteries {
    font-size: 10px;
  }

  .restart-btn,
  .menu-btn {
    padding: 8px 14px;
    font-size: 8px;
  }

  .modal-content {
    padding: 15px;
  }

  .modal-content h2 {
    font-size: 12px;
  }

  .modal-content p {
    font-size: 8px;
  }

  .modal-close-btn {
    padding: 8px 16px;
    font-size: 8px;
  }
}
