/* ==========================================================================
   STARMINER IDLE - FULL RPG PIXEL ART MINING ARENA (clicker-arena.css)
   ========================================================================== */

.game-mining-arena {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 620px;
    background: 
        radial-gradient(circle at 50% 50%, rgba(36, 52, 91, 0.4) 0%, transparent 70%),
        var(--pixel-panel-bg);
    border: 4px solid var(--pixel-black);
    border-radius: 0;
    padding: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 4px 4px 0px var(--pixel-panel-highlight),
        inset -4px -4px 0px var(--pixel-panel-shadow),
        0 6px 0px var(--pixel-black),
        0 14px 36px rgba(0,0,0,0.9);
}

/* Stats & Score Display */
.stats-score-display {
    text-align: center;
}

.main-coins-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--game-font-pixel);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--neon-gold);
    text-shadow: 
        4px 4px 0 var(--pixel-black),
        -1px -1px 0 var(--pixel-black),
        1px -1px 0 var(--pixel-black),
        -1px 1px 0 var(--pixel-black),
        0 0 18px rgba(255, 199, 0, 0.8);
    letter-spacing: 1px;
    margin-bottom: 8px;
    animation: floatScore 2.5s ease-in-out infinite;
}

.main-coins-display i {
    font-size: 1.9rem;
    filter: drop-shadow(3px 3px 0 var(--pixel-black));
}

@keyframes floatScore {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Income Rates Badges Row (RPG Status Ribbons) */
.income-rates-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.rate-badge {
    background: var(--pixel-slot-bg);
    border: 3px solid var(--pixel-black);
    border-radius: 0;
    padding: 6px 10px;
    font-family: var(--game-font-pixel);
    font-size: 0.68rem;
    color: #CBD5E1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 
        inset 1px 1px 0px rgba(255,255,255,0.15),
        inset -1px -1px 0px rgba(0,0,0,0.6),
        0 3px 0px var(--pixel-black);
    text-shadow: 2px 2px 0 var(--pixel-black);
}

.rate-badge i {
    font-size: 0.78rem;
}

.rate-badge.rate-dps {
    color: var(--neon-cyan);
    border-color: var(--pixel-black);
    box-shadow: 
        inset 0 0 0 1px var(--neon-cyan-dark),
        0 3px 0px var(--pixel-black);
}

.rate-badge.rate-dpc {
    color: var(--neon-emerald);
    border-color: var(--pixel-black);
    box-shadow: 
        inset 0 0 0 1px var(--neon-emerald-dark),
        0 3px 0px var(--pixel-black);
}

.rate-badge.active-pickaxe-badge {
    color: var(--neon-gold);
    border-color: var(--pixel-black);
    box-shadow: 
        inset 0 0 0 1px var(--neon-gold-dark),
        0 3px 0px var(--pixel-black);
}

.rate-badge.rate-shards-badge {
    color: var(--neon-purple);
    border-color: var(--pixel-black);
    box-shadow: 
        inset 0 0 0 1px var(--neon-purple-dark),
        0 3px 0px var(--pixel-black);
}

/* Active Buffs Row */
.active-buffs-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 24px;
    margin-bottom: 4px;
}

.active-buff-pill {
    background: #2D2006;
    border: 2px solid var(--pixel-black);
    border-radius: 0;
    color: var(--neon-gold);
    font-family: var(--game-font-pixel);
    font-size: 0.62rem;
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: inset 0 0 0 1px var(--neon-gold), 0 2px 0px var(--pixel-black);
    text-shadow: 1px 1px 0 var(--pixel-black);
}

/* Ore Name Header Banner */
.ore-name-tag {
    font-family: var(--game-font-pixel);
    font-size: 0.95rem;
    color: #FFF;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 4px 0 8px;
    text-shadow: 3px 3px 0 var(--pixel-black);
}

/* Mine Target Zone & 3D Voxel Pixel Ore Block */
.mine-target-zone {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    min-height: 220px;
    margin: 4px 0;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.mine-halo-pulse {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 199, 0, 0.25) 0%, rgba(192, 132, 252, 0.08) 50%, transparent 70%);
    animation: haloBreathe 2.5s infinite ease-in-out;
    pointer-events: none;
}

@keyframes haloBreathe {
    0%, 100% { transform: scale(0.92); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.95; }
}

.interactive-ore-block {
    width: 170px;
    height: 170px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: none;
    transition: transform 0.05s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.ore-pixel-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 12px 20px rgba(0,0,0,0.9)) drop-shadow(0 0 18px rgba(56, 189, 248, 0.5));
    transition: filter 0.15s ease, transform 0.05s ease;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.ore-boss-icon {
    font-size: 5rem;
    filter: drop-shadow(4px 4px 0 var(--pixel-black));
}

/* Click Recoil (Voxel Depression) */
.mine-target-zone:active .ore-pixel-img,
.interactive-ore-block.clicked .ore-pixel-img {
    transform: translateY(8px) scale(0.88);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.95)) drop-shadow(0 0 32px rgba(255, 199, 0, 0.9)) brightness(1.25);
}

/* Boss Mode Stage */
.game-mining-arena.boss-mode-active {
    box-shadow: 
        inset 0 0 0 3px var(--neon-red),
        0 6px 0px var(--pixel-black),
        0 0 35px rgba(239, 68, 68, 0.5);
}

/* Floating Comic Click Text (Pixel Font with Solid Black Outline) */
.floating-click-text,
.floating-dpc-text {
    position: fixed;
    pointer-events: none;
    font-family: var(--game-font-pixel);
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFF;
    text-shadow: 
        2px 2px 0 var(--pixel-black),
        -2px -2px 0 var(--pixel-black),
        2px -2px 0 var(--pixel-black),
        -2px 2px 0 var(--pixel-black);
    z-index: 999999;
    animation: floatPixelText 0.75s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

.floating-click-text.crit,
.floating-dpc-text.crit {
    font-size: 1.3rem;
    color: var(--neon-gold);
    text-shadow: 
        2px 2px 0 var(--pixel-black),
        -2px -2px 0 var(--pixel-black),
        2px -2px 0 var(--pixel-black),
        -2px 2px 0 var(--pixel-black),
        0 0 14px rgba(255, 199, 0, 0.9);
}

.floating-click-text.burst,
.floating-dpc-text.supernova {
    font-size: 1.5rem;
    color: var(--neon-purple);
    text-shadow: 
        2px 2px 0 var(--pixel-black),
        -2px -2px 0 var(--pixel-black),
        2px -2px 0 var(--pixel-black),
        -2px 2px 0 var(--pixel-black),
        0 0 18px rgba(192, 132, 252, 1);
}

@keyframes floatPixelText {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.7);
    }
    20% {
        opacity: 1;
        transform: translateY(-16px) scale(1.15);
    }
    100% {
        opacity: 0;
        transform: translateY(-48px) scale(0.9);
    }
}

/* Fever Frenzy 8-Bit Energy Gauge */
.fever-meter-box {
    background: var(--pixel-slot-bg);
    border: 3px solid var(--pixel-black);
    border-radius: 0;
    padding: 8px 12px;
    box-shadow: 
        inset 3px 3px 0px #000,
        inset -2px -2px 0px var(--pixel-panel-highlight),
        0 3px 0px var(--pixel-black);
}

.fever-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--game-font-pixel);
    font-size: 0.68rem;
    margin-bottom: 6px;
    text-shadow: 2px 2px 0 var(--pixel-black);
}

.fever-bar-bg {
    height: 16px;
    background: #050812;
    border-radius: 0;
    border: 2px solid var(--pixel-black);
    overflow: hidden;
    position: relative;
    box-shadow: inset 2px 2px 0px #000;
}

.fever-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #F59E0B, #EF4444, #EC4899);
    transition: width 0.1s ease;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
}

.fever-meter-box.fever-active .fever-bar-fill {
    animation: feverPixelFlash 0.25s infinite alternate;
}

@keyframes feverPixelFlash {
    from { filter: brightness(1); }
    to { filter: brightness(1.6); }
}

/* Mobile Arena Enhancements */
@media (max-width: 992px) {
    .game-mining-arena {
        height: auto;
        min-height: 460px;
        padding: 12px;
        justify-content: space-around;
    }

    .main-coins-display {
        font-size: 1.8rem;
        gap: 8px;
        margin-bottom: 4px;
    }

    .main-coins-display i {
        font-size: 1.5rem;
    }

    .income-rates-row {
        gap: 4px;
    }

    .rate-badge {
        padding: 4px 8px;
        font-size: 0.62rem;
    }

    .interactive-ore-block {
        width: 140px;
        height: 140px;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .ore-pixel-img {
        width: 120px;
        height: 120px;
    }

    .fever-meter-box {
        padding: 6px 10px;
    }

    .fever-label-row {
        font-size: 0.65rem;
    }
}

/* Ultra-compact mobile (< 480px) */
@media (max-width: 480px) {
    .game-mining-arena {
        height: auto;
        min-height: 380px;
        padding: 10px 8px;
    }

    .main-coins-display {
        font-size: 1.4rem;
        gap: 6px;
        margin-bottom: 2px;
    }

    .main-coins-display .pixel-coin-icon-lg {
        width: 24px;
        height: 24px;
    }

    .income-rates-row {
        gap: 3px;
        margin-bottom: 4px;
    }

    .rate-badge {
        padding: 3px 6px;
        font-size: 0.58rem;
        gap: 4px;
        border-width: 2px;
        box-shadow: inset 1px 1px 0px rgba(255,255,255,0.1), 0 2px 0px var(--pixel-black);
    }

    .rate-badge i {
        font-size: 0.68rem;
    }

    /* Hide pickaxe name text on very small screens */
    .rate-badge.active-pickaxe-badge #activePickaxeName {
        display: none;
    }

    .ore-name-tag {
        font-size: 0.8rem;
        margin: 2px 0 4px;
    }

    .mine-target-zone {
        min-height: 160px;
    }

    .mine-halo-pulse {
        width: 150px;
        height: 150px;
    }

    .interactive-ore-block {
        width: 110px;
        height: 110px;
    }

    .ore-pixel-img {
        width: 100px;
        height: 100px;
    }

    .fever-meter-box {
        padding: 4px 8px;
    }

    .fever-label-row {
        font-size: 0.6rem;
        margin-bottom: 4px;
    }

    .fever-bar-bg {
        height: 12px;
    }

    .active-buff-pill {
        font-size: 0.56rem;
        padding: 2px 6px;
    }

    /* Floating numbers compact on mobile */
    .floating-click-text,
    .floating-dpc-text {
        font-size: 0.78rem;
    }

    .floating-click-text.crit,
    .floating-dpc-text.crit {
        font-size: 0.95rem;
    }

    .floating-click-text.burst,
    .floating-dpc-text.supernova {
        font-size: 1.15rem;
    }
}

