/* Dedicated mobile layout: separate the drawing stock from the trick. */
[data-game="burro"] .pass-button[hidden] { display: none; }
@media (max-width: 1050px) {
  [data-game="burro"] .felt-table { min-height: 490px; height: 490px; }
  [data-game="burro"] .card-stack { display: none; }
  [data-game="burro"] .felt-table::before { width: 380px; height: 380px; opacity: .45; }
  [data-game="burro"] .player-seat { gap: 3px; padding: 4px; }
  [data-game="burro"] .avatar { width: 24px; height: 24px; font-size: .85rem; }
  [data-game="burro"] .player-details { display: flex; line-height: 1.2; }
  [data-game="burro"] .player-details strong { font-size: .67rem; }
  [data-game="burro"] .player-details small { font-size: .49rem; letter-spacing: 0; white-space: nowrap; }
  [data-game="burro"] :is(.seat-north, .seat-west, .seat-east) { top: 8px; width: 31%; flex-direction: column; text-align: center; transform: none; }
  [data-game="burro"] .seat-north { left: 50%; transform: translateX(-50%); }
  [data-game="burro"] .seat-west { left: 4px; }
  [data-game="burro"] .seat-east { right: 4px; }
  [data-game="burro"] .seat-south { bottom: 118px; }
  [data-game="burro"] .trick-area { top: 88px; width: 240px; height: 234px; transform: translateX(-50%); }
  [data-game="burro"] .played-slot,
  [data-game="burro"] .played-slot .playing-card { width: 56px; height: 78px; }
  [data-game="burro"] .played-slot .card-rank { left: 5px; top: 6px; font-size: 1.05rem; }
  [data-game="burro"] .played-slot .card-rank small { font-size: .62rem; }
  [data-game="burro"] .played-slot .card-pip { font-size: 1.6rem; }
  [data-game="burro"] .slot-north { top: 0; left: 50%; transform: translateX(-50%); }
  [data-game="burro"] .slot-west { top: 82px; left: 0; transform: none; }
  [data-game="burro"] .slot-east { top: 82px; right: 0; transform: none; }
  [data-game="burro"] .slot-south { bottom: 48px; left: 50%; transform: translateX(-50%); }
  [data-game="burro"] .heart-status { top: auto; bottom: 22px; left: 50%; transform: translateX(-50%); padding: 3px 7px; font-size: .52rem; white-space: nowrap; }
  [data-game="burro"] .heart-status span { font-size: .8rem; }
  [data-game="burro"] .turn-message { bottom: 0; width: calc(100% + 24px); font-size: .65rem; letter-spacing: 0; }
  [data-game="burro"] .human-hand { bottom: 0; }
}
@media (min-width: 640px) and (max-width: 1050px) and (max-height: 600px) and (orientation: landscape) {
  [data-game="burro"] .felt-table { min-height: 326px; height: max(326px, calc(100svh - 64px)); }
  [data-game="burro"] :is(.seat-north, .seat-west, .seat-east) { top: 6px; }
  [data-game="burro"] .seat-south { display: none; }
  [data-game="burro"] .trick-area { top: 78px; width: min(340px, calc(100% - 32px)); height: 126px; transform: translateX(-50%); display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 14px; }
  [data-game="burro"] .played-slot { position: relative; inset: auto; transform: none; justify-self: center; }
  [data-game="burro"] .played-slot,
  [data-game="burro"] .played-slot .playing-card { width: 50px; height: 70px; }
  [data-game="burro"] .heart-status { bottom: 16px; }
  [data-game="burro"] .turn-message { width: 100%; font-size: .61rem; }
}

@media (max-width:1050px) {
  [data-game="burro"] .burro-mark { display:none; }
  [data-game="burro"] .draw-stock { left:16px; top:330px; width:110px; height:42px; transform:none; border-radius:5px; }
  [data-game="burro"] .draw-stock .deck-stack { width:30px; height:42px; }
  [data-game="burro"] .draw-stock small { top:5px; bottom:auto; left:42px; right:0; font-size:.6rem; }
  [data-game="burro"] .draw-stock>b { top:22px; bottom:auto; left:42px; right:0; font-size:.65rem; }
}
@media (min-width:640px) and (max-width:1050px) and (max-height:600px) and (orientation:landscape) {
  [data-game="burro"] .trick-area { left:50%; }
  [data-game="burro"] .draw-stock { top:164px; left:12px; }
  [data-game="burro"] .turn-message { left:calc(50% + 60px); width:calc(100% - 130px); }
}

