/* Területfoglaló Stílusok */
#area-board {
    background-color: #000;
    border: 2px solid rgba(255, 0, 204, 0.4);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 0, 204, 0.2);
    image-rendering: pixelated;
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 65vh;
    aspect-ratio: 2 / 3;
    object-fit: contain;
}

.game-wrapper {
    display: flex;
    flex-direction: column;
}

.game-main {
    display: flex;
    justify-content: center;
    align-items: stretch;
    margin: 15px 0;
    width: 100%;
}

.stats-bar {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 0, 204, 0.2);
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item span:first-child {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
}

.stat-item .stat-value {
    font-size: 1.2rem;
    color: #ff00cc;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 0, 204, 0.5);
}

.progress-container {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    margin: 10px 0;
    position: relative;
    border: 1px solid rgba(255, 0, 204, 0.3);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff00cc, #ff66ff);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-target {
    position: absolute;
    top: 0;
    height: 100%;
    width: 2px;
    background: #fff;
    box-shadow: 0 0 5px #fff;
    z-index: 2;
}

.tools {
    display: flex;
    gap: 15px;
}

.tool-btn {
    background: rgba(255, 0, 204, 0.1);
    border: 1px solid rgba(255, 0, 204, 0.4);
    color: #ff00cc;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    background: rgba(255, 0, 204, 0.3);
    box-shadow: 0 0 15px rgba(255, 0, 204, 0.4);
}

.mobile-controls {
    display: none;
    margin-top: 10px;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.ctrl-btn {
    background: rgba(255, 0, 204, 0.1);
    border: 1px solid rgba(255, 0, 204, 0.3);
    color: #ff00cc;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.1s;
    user-select: none;
    touch-action: manipulation;
    height: 50px;
    width: 50px;
}

.ctrl-btn:active {
    background: rgba(255, 0, 204, 0.5);
    transform: scale(0.95);
}

@media screen and (max-width: 1024px) {
    #area-board {
        max-width: 400px;
        max-height: 50vh;
    }
    
    .mobile-controls {
        display: grid;
        width: 100%;
        max-width: 300px;
        margin: 10px auto 0 auto;
    }
    
    .ctrl-btn {
        height: 65px;
        width: 65px;
    }
}

@media screen and (max-width: 768px) {
    .game-wrapper {
        flex-direction: row-reverse;
        align-items: stretch;
        gap: 10px;
        margin-top: 15px;
    }
    
    .stats-bar {
        flex-direction: column;
        width: 75px;
        margin-bottom: 0;
        padding: 10px 5px;
        justify-content: space-evenly;
    }
    
    .stat-item span:first-child {
        font-size: 0.65rem;
    }
    
    .stat-item .stat-value {
        font-size: 1rem;
    }
    
    .game-main {
        flex: 1;
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    #area-board {
        max-width: 100%;
        max-height: 40vh;
    }
    
    .ctrl-btn {
        height: 50px;
        width: 50px;
    }
    
    .mobile-controls {
        gap: 5px;
        margin-top: 5px;
    }
}
