@media (orientation: portrait) {
    header {
        display:none;
    }
    .chat-dock {
        order: 999;
    }
    .arena-center {
        /* min-width: 200px; */
        display:flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0;
    }
    .timer-circle {
        width:30px;
        height:30px;
    }
    .round-chip {
        width:30px;
        height:30px;
        font-size: 0;
    }
    #currentRound {
        font-size: initial;
    }
    .game-container.arena-layout {
        min-height: 60vh;
        max-height: 60vh;
        overflow: scroll;
    }
    .table-stage {
        padding: 0;
        min-height: unset;
    }
    .player-name-rail {
        display:none;
    }
    .player-status-rail {
        display:none;
    }
    .hand-label {
        display:none;
    }
    #animationLayer {
        display: none;
    }
}


@media (max-width: 600px) {
    .choices {
        flex-direction: column;
    }

    .choice-btn {
        width: 100%;
    }

    header h1 {
        font-size: 2em;
    }

    .card-item {
        width: 55px;
        height: 75px;
        font-size: 16px;
        font-weight: 700;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 12px 40px;
    }

    .card {
        padding: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .btn,
    .play-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .play-actions {
        flex-direction: column;
    }

    #manualJoinGroup button {
        width: 100%;
    }

    .hand-section {
        min-width: 0;
    }

    .arena-center {
        padding: 14px;
    }
}

@media (max-width: 960px) {
    .arena-layout {
        grid-template-columns: clamp(110px, 18vw, 150px) 1fr clamp(110px, 18vw, 150px);
        column-gap: clamp(10px, 2vw, 16px);
    }

    .players-rail {
        gap: 10px;
    }

    .player-seat {
        padding: 8px 10px;
    }
}

@media (max-width: 820px) {
    .arena-layout {
        grid-template-columns: clamp(100px, 20vw, 140px) 1fr clamp(100px, 20vw, 140px);
        column-gap: 12px;
    }

    .game-container {
        width: 100%;
    }

    .player-avatar {
        width: 40px;
        height: 40px;
    }

    .player-seat {
        padding: 8px;
    }

    .bottom-band {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-dock {
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .card {
        padding: 40px 50px;
    }

    .game-container {
        max-width: none;
    }
}
