/* === Pixel-Graffiti Character Stats === */

/* === Общий контейнер === */
.character-stats-container {
    padding: 25px;
    background: #f8f4e6; /* старинная бумага */
    border: 4px solid #000; /* пиксельная рамка */
    border-radius: 0; /* прямые углы */
    box-shadow: 4px 4px 0 #000 inset, 0 0 10px rgba(0,0,0,0.3);
    image-rendering: pixelated;

    /* текстура бумаги */
    background-image: 
        repeating-linear-gradient(0deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 2px, transparent 2px, transparent 4px),
        repeating-linear-gradient(90deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 2px, transparent 2px, transparent 4px);
    background-size: 4px 4px;
}

/* === Заголовок === */
.character-stats-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 26px;
    font-family: 'Press Start 2P', monospace;
    color: #ffe066;
    text-shadow: 4px 4px 0 #000, 0 0 6px #ffbe5c;
    animation: pixel-jitter 0.4s infinite steps(2);
}

/* === Сетка статов === */
.character-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* === Карточка стата === */
.stat-card {
    background: #fffdfa;
    border: 3px solid #000;
    border-radius: 0;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 4px 4px 0 #000;
    cursor: pointer;
    transition: transform 0.2s ease;
    transform: rotate(-1deg);
}

.stat-card:hover {
    transform: rotate(1deg) scale(1.05);
    animation: pixel-jitter 0.3s infinite steps(2);
}

/* === Иконка стата === */
.stat-icon {
    font-size: 26px;
    color: #ff5555;
}

/* === Лейбл и значение === */
.stat-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    color: #000;
    text-shadow: 2px 2px 0 #000;
}

.stat-value {
    font-family: 'Press Start 2P', monospace;
    font-size: 18px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 0 #000;
}

/* === Пиксельная дрожащая анимация === */
@keyframes pixel-jitter {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, -1px); }
    60% { transform: translate(-1px, 0); }
    80% { transform: translate(0, 1px); }
}
