/* ==========================================================================
   VOIDCALL - MOBILE & RESPONSIVE PERFECTION
   ========================================================================== */

/* Main Arena Layout */
.arena-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px 12px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Top Bar: Opponent HUD */
.arena-top-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    border-radius: 12px;
    flex-shrink: 0;
    gap: 8px;
}

/* Center Battlefield Area */
.arena-center-field {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0; /* Prevents overflow in flexbox */
}

/* Bottom Bar: Player HUD & Hand */
.arena-bottom-hud {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.player-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    border-radius: 12px;
}

/* Hand cards horizontal carousel */
.hand-scroll-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 4px 10px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    min-height: 125px;
    align-items: flex-end;
}

.hand-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Opponent Mini Hand Indicator */
.opponent-hand-preview {
    display: flex;
    gap: 4px;
    align-items: center;
}

.opponent-card-pill {
    width: 14px;
    height: 22px;
    background: linear-gradient(135deg, #7928ca, #ff0080);
    border-radius: 3px;
    box-shadow: 0 0 6px rgba(255, 0, 128, 0.4);
}

/* Mana Display Component */
.mana-pool-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mana-gem {
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 35% 35%, #00f2fe, #0072ff);
    border-radius: 50%;
    border: 1px solid #ffffff;
    box-shadow: 0 0 8px #00f2fe;
    transition: all 0.3s ease;
}

.mana-gem.empty {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

/* Big Action Button */
.end-turn-action-btn {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    color: #040308;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.end-turn-action-btn:disabled {
    background: rgba(160, 130, 255, 0.2);
    color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
    cursor: not-allowed;
}

.end-turn-action-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.6);
}

/* Floating Touch Drag Avatar */
.touch-drag-proxy {
    position: fixed;
    pointer-events: none;
    z-index: 5000;
    width: 80px;
    height: 116px;
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.1) rotate(4deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 242, 254, 0.8);
    border-radius: 10px;
}

/* Mobile Screen Tuning */
@media (max-width: 480px) {
    .arena-container {
        padding: 4px 6px;
    }

    .card-item-3d {
        width: 78px;
        height: 115px;
        border-radius: 9px;
    }

    .card-mana-badge {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .card-title {
        font-size: 8px;
    }

    .card-mini-radar {
        width: 18px;
        height: 18px;
        bottom: 24px;
    }

    .grid-slot {
        border-radius: 8px;
    }

    .piece-label {
        font-size: 8px;
    }

    .end-turn-action-btn {
        padding: 8px 12px;
        font-size: 11px;
    }

    .banner-notification {
        font-size: 18px;
        padding: 12px 24px;
    }
}
