/* Keep the complete combat cabinet visible on portrait phones. */
@media (max-width: 620px) {
  .topbar { height: 42px; padding: 0 12px; }
  .brand { font-size: 18px; }
  .top-right { gap: 8px; }
  .game.is-battle { padding: 4px 8px 12px; }
  .game.is-battle .arena { gap: 5px; margin-bottom: 6px; }
  .game.is-battle .arena-caption { padding: 0; line-height: 14px; font-size: 8px; }
  .game.is-battle .enemies {
    min-height: 0 !important;
    gap: 6px;
    flex-wrap: nowrap;
  }
  .game.is-battle .enemy {
    flex: 1 1 0;
    grid-template-columns: 32px minmax(0, 1fr);
    row-gap: 2px;
    max-width: 230px;
  }
  .game.is-battle .enemy .portrait {
    height: clamp(72px, 14svh, 108px);
    width: 100%;
    max-width: 132px;
  }
  .game.is-battle .enemy .intent-forecast { width: 30px; gap: 3px; }
  .game.is-battle .intent-forecast .intent {
    width: 30px;
    min-height: 24px;
    padding: 2px 1px;
    gap: 1px;
  }
  .game.is-battle .intent-forecast .intent svg { width: 12px; height: 12px; }
  .game.is-battle .intent-forecast .intent span { font-size: 7px; }
  .game.is-battle .intent-forecast .intent b { font-size: 10px; }
  .game.is-battle .enemy strong {
    width: 100%;
    min-width: 0;
    font-size: 10px;
    line-height: 15px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .game.is-battle .enemy .enemy-hp { height: 4px; margin: 2px 0; }
  .game.is-battle .enemy > small { font-size: 9px; line-height: 12px; }
  .game.is-battle .enemy .target-label { top: -3px; font-size: 12px; line-height: 12px; }
  .game.is-battle .player-unit {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 58px;
    padding: 4px 7px;
    gap: 3px 8px;
  }
  .game.is-battle .player-unit > .portrait { width: 42px; height: 46px; }
  .game.is-battle .player-unit .player-bar { min-height: 17px; }
  .game.is-battle .player-unit .resources { font-size: 13px; gap: 10px; }
  .game.is-battle .player-unit .resources svg { width: 13px; height: 13px; }
  .game.is-battle .player-unit .hp-track { height: 5px; }
  .game.is-battle .player-unit .defense-display {
    grid-template-columns: 64px 1fr;
    font-size: 10px;
    gap: 5px;
  }
  .game.is-battle .player-unit .defense-track { height: 5px; }
  .game.is-battle .machine { padding: 6px 5px; border-width: 3px; margin-bottom: 6px; }
  .game.is-battle .class-badge { padding: 2px 8px; margin-bottom: 4px; font-size: 10px; line-height: 14px; }
  .game.is-battle .robot-guide { flex-wrap: nowrap; padding-bottom: 4px; gap: 4px; }
  .game.is-battle .robot-guide button { padding: 2px 4px; font-size: 9px; }
  .game.is-battle .robot-guide button svg { width: 16px; height: 16px; }
  .game.is-battle .robot-guide > span { font-size: 8px; white-space: nowrap; }
  .game.is-battle .reel-window { height: clamp(96px, 19svh, 140px); border-width: 3px; }
  .game.is-battle .symbol svg { width: clamp(26px, 5svh, 36px); height: clamp(26px, 5svh, 36px); }
  .game.is-battle .stop-buttons { gap: 5px; margin: 5px 0; }
  .game.is-battle .stop-btn { min-height: 36px; padding: 6px 2px; }
  .game.is-battle .result-strip {
    min-height: 24px;
    max-height: 42px;
    margin: 4px 0 !important;
    padding: 3px 4px !important;
  }
  .game.is-battle .result-strip:empty { display: none; }
  .game.is-battle .result-tags { font-size: 10px !important; }
  .game.is-battle .machine-controls {
    grid-template-columns: 34px minmax(65px, 1fr) 104px;
    gap: 6px;
    padding-top: 0;
  }
  .game.is-battle .bet-control { gap: 3px; }
  .game.is-battle .bet-arrow { min-width: 32px; min-height: 24px; padding: 2px; }
  .game.is-battle .bet-control > .bet-coins {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 32px;
    min-height: 0;
  }
  .game.is-battle .bet-coins svg { width: 12px; height: 12px; }
  .game.is-battle .coin-tray { min-height: 76px; padding: 4px; }
  .game.is-battle .payout-display,
  .game.is-battle .spin-wallet { font-size: 9px; line-height: 19px; margin-bottom: 0; }
  .game.is-battle .spin-wallet b,
  .game.is-battle .payout-display b { font-size: 17px; }
  .game.is-battle .tray-pixels { height: 18px; min-height: 18px; }
  .game.is-battle .spin-wallet-group { gap: 4px; }
  .game.is-battle .spin-wallet-group #auto-button { min-height: 28px; padding: 4px 2px; font-size: 10px; }
  .game.is-battle .spin-btn { height: 48px; min-height: 48px; padding: 6px; font-size: 22px; }
  .game.is-battle #combat-banner { top: 70px; }
}
