/* ===== MOBILE RESPONSIVE ADDITIONS ONLY - NO EXISTING STYLES CHANGED ===== */

/* Tablet (768px and below) */
@media only screen and (max-width: 768px) {
    /* Stack HUD items vertically */
    .minecraft-hud {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }
    
    .hud-left, .hud-center, .hud-right {
        width: 100%;
        justify-content: center;
    }
    
    /* Stack side panels vertically */
    .game-screen {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .panel-left, .panel-right {
        max-width: 100%;
    }
    
    /* Center form on smaller screens */
    .send-form-container {
        width: 95%;
    }
    
    /* Make hotbar scrollable horizontally */
    .hotbar {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding: 12px;
    }
    
    .hotbar-slot {
        flex-shrink: 0;
    }
    
    /* Adjust mining world height */
    .mining-world {
        min-height: 400px;
    }
}

/* Mobile (480px and below) */
@media only screen and (max-width: 480px) {
    /* Reduce title size */
    .game-title {
        font-size: 1.2rem;
    }
    
    .title-shadow, .title-main {
        font-size: 1.2rem;
    }
    
    .subtitle {
        font-size: 0.5rem;
    }
    
    /* Smaller buttons */
    .pixel-button {
        font-size: 0.6rem;
        padding: 10px 15px;
    }
    
    /* Compact stats panels */
    .stats-panel {
        padding: 12px;
    }
    
    .panel-header {
        font-size: 0.65rem;
        padding: 8px;
    }
    
    .stat-block {
        padding: 12px;
    }
    
    .stat-label {
        font-size: 0.5rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .stat-sublabel {
        font-size: 0.45rem;
    }
    
    /* Smaller form */
    .form-panel {
        padding: 18px;
    }
    
    .form-header {
        font-size: 0.85rem;
        padding: 12px;
    }
    
    .amount-big {
        font-size: 2rem;
    }
    
    .send-btn {
        font-size: 0.7rem;
        padding: 15px;
    }
    
    /* Smaller hotbar */
    .hotbar-slot {
        width: 50px;
        height: 50px;
    }
    
    .pixel-icon {
        width: 28px;
        height: 28px;
    }
    
    .balance-display {
        font-size: 0.65rem;
        margin-left: 6px;
    }
    
    /* Adjust character size */
    .minecraft-character {
        width: 50px;
        height: 75px;
    }
    
    .char-head {
        width: 35px;
        height: 35px;
        left: 7.5px;
    }
    
    .char-body {
        width: 35px;
        height: 25px;
        top: 37px;
        left: 7.5px;
    }
    
    .char-arm {
        width: 14px;
        height: 25px;
        top: 39px;
    }
    
    .char-leg {
        width: 14px;
        height: 15px;
        top: 60px;
    }
    
    .char-leg-left { left: 11px; }
    .char-leg-right { left: 25px; }
    
    /* Reduce mining world height */
    .mining-world {
        min-height: 350px;
    }
    
    /* Hide mining rigs on mobile to save space */
    .mining-rigs-container {
        display: none;
    }
}

/* Extra small (360px and below) */
@media only screen and (max-width: 360px) {
    .game-title {
        font-size: 0.9rem;
    }
    
    .title-shadow, .title-main {
        font-size: 0.9rem;
    }
    
    .subtitle {
        font-size: 0.45rem;
    }
    
    .pixel-button {
        font-size: 0.55rem;
        padding: 8px 12px;
    }
    
    .panel-header {
        font-size: 0.6rem;
    }
    
    .form-header {
        font-size: 0.75rem;
    }
    
    .amount-big {
        font-size: 1.6rem;
    }
    
    .send-btn {
        font-size: 0.65rem;
    }
    
    .hotbar-slot {
        width: 45px;
        height: 45px;
    }
    
    .pixel-icon {
        width: 24px;
        height: 24px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Ensure minimum touch target sizes (iOS standard is 44x44px) */
    .pixel-button {
        min-height: 44px;
    }
    
    .hotbar-slot {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Remove hover states on touch devices */
    .pixel-button:hover {
        transform: none;
    }
    
    .hotbar-slot:hover {
        transform: none;
        background: rgba(139, 139, 139, 0.8);
    }
    
    .action-card:hover {
        transform: none;
    }
}

/* Landscape mobile optimization */
@media only screen and (max-height: 500px) and (orientation: landscape) {
    .mining-world {
        min-height: 280px;
    }
    
    .minecraft-character {
        bottom: 45%;
    }
    
    .form-panel {
        padding: 12px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .amount-big {
        font-size: 1.8rem;
    }
}