/* ==========================================================================
   pvp.css - Стили для PvP арены в стиле huli
   Полное соответствие дизайну huli.html
   ========================================================================== */

/* ===== FULL-WIDTH TOP HERO ===== */
.trumpamole__arenapvp-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: rgba(0, 0, 0, 0.18);
}

.trumpamole__arenapvp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../../assets/battle/bg_page.webp') center/cover no-repeat;
    filter: blur(1.2px) saturate(1.05) contrast(1.05);
    transform: scale(1.08);
    opacity: 0.95;
}

.trumpamole__arenapvp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.10) 0%,
        rgba(36, 26, 26, 0.35) 40%,
        rgba(36, 26, 26, 0.86) 100%);
    pointer-events: none;
}

.trumpamole__arenapvp-hero-inner {
    position: relative;
    z-index: 2;
    width: min(440px, 100%);
    margin: 0 auto;
    padding: calc(12px + var(--safe-top)) 14px 12px 14px;
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 10px;
    align-items: center;
    min-height: 100px;
}

.trumpamole__arenapvp-title-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.trumpamole__arenapvp-page-title {
    font-family: "Unbounded", "Manrope", system-ui;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: rgba(255, 248, 230, 0.96);
    margin: 0;
}

.trumpamole__arenapvp-page-sub {
    font-size: 12px;
    line-height: 1.25;
    color: rgba(255, 246, 230, 0.80);
    font-weight: 800;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.trumpamole__arenapvp-stats-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: nowrap;
}

.trumpamole__arenapvp-chip {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 18px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 232, 170, 0.10);
    min-width: 0;
}

.trumpamole__arenapvp-chip-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.trumpamole__arenapvp-chip-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.30));
    opacity: 0.95;
    flex: 0 0 auto;
}

.trumpamole__arenapvp-chip-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.trumpamole__arenapvp-chip-label {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.25px;
    color: rgba(255, 246, 230, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trumpamole__arenapvp-chip-value {
    font-size: 13px;
    font-weight: 900;
    color: rgba(255, 248, 230, 0.98);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.trumpamole__arenapvp-top-icon {
    width: 212px;
    height: 176px;
    display: grid;
    place-items: center;
    overflow: visible;
}

.trumpamole__arenapvp-top-icon img {
    width: 100%;
    height: 100%;
    margin-right: 90px;
    object-fit: contain;
    filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.40));
    transform: translateY(2px);
}

/* ===== PODIUM СТАТИСТИКИ ===== */
.trumpamole__arenapvp-podium-wrap-full {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    box-shadow: var(--softShadow);
    background: rgba(0, 0, 0, 0.10);
}

.trumpamole__arenapvp-podium-wrap-full::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../../assets/battle/bg_podium.webp') center/cover no-repeat;
    filter: saturate(1.05) contrast(1.05);
    transform: scale(1.03);
    opacity: 0.98;
    pointer-events: none;
}

.trumpamole__arenapvp-podium-wrap-full::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.10) 0%,
        rgba(36, 26, 26, 0.55) 60%,
        rgba(36, 26, 26, 0.92) 100%);
    pointer-events: none;
    backdrop-filter: blur(1px);
}

.trumpamole__arenapvp-podium-inner {
    position: relative;
    z-index: 2;
    width: min(440px, 100%);
    margin: 0 auto;
    padding: 16px 14px 10px 14px;
}

.trumpamole__arenapvp-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    align-items: start;
    padding: 0 2px;
}

.trumpamole__arenapvp-stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.trumpamole__arenapvp-stat-icon {
    width: 88px;
    height: 88px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.45));
    margin-bottom: 2px;
}

.trumpamole__arenapvp-stat-big-number {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    position: absolute;
    z-index: 5;
        top: 44px;
        padding:8px;
        border-radius:8px;
    color: rgba(255, 248, 230, 0.98);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 18px rgba(0, 0, 0, 0.22);
}

.trumpamole__arenapvp-stat-label-under {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: rgba(255, 246, 230, 1);
}

.trumpamole__arenapvp-button-wrap {
    padding: 12px 0 6px 0;
}

/* ===== MAIN PANEL ===== */
.trumpamole__arenapvp-main-panel {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 12px;
    padding-bottom: calc(18px + var(--safe-bottom));
    border-top: 1px solid rgba(255, 232, 170, 0.10);
    overflow: hidden;
    -webkit-box-shadow: 0px -9px 13px -2px rgba(0, 0, 0, 0.82);
    box-shadow: 0px -9px 13px -2px rgb(31 22 22);
}

.trumpamole__arenapvp-main-panel::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    width: 54px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 246, 230, 0.22);
    opacity: 0.55;
    z-index: 1;
    pointer-events: none;
}

.trumpamole__arenapvp-main-inner {
    position: relative;
    z-index: 2;
    width: min(440px, 100%);
    margin: 0 auto;
    padding: 0 14px;
}

.trumpamole__arenapvp-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 2px 2px 6px;
    margin: 0;
    margin-top: 10px;
}

.trumpamole__arenapvp-section-header:first-child {
    margin-top: 0;
}

.trumpamole__arenapvp-section-header h2 {
    margin: 0;
    font-family: "Unbounded", "Manrope", system-ui;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: rgba(255, 248, 230, 0.96);
}

.trumpamole__arenapvp-hint {
    font-size: 12px;
    color: rgba(255, 246, 230, 0.72);
    font-weight: 800;
}

/* ===== PVP CARD ===== */
.trumpamole__arenapvp-card {
    background: rgba(0, 0, 0, 0.22);
    border-radius: var(--radiusCard, 12px);
    border: 1px solid rgba(255, 232, 170, 0.10);
    margin: 6px 0 16px;
    overflow: hidden;
}

.trumpamole__arenapvp-card-inner {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trumpamole__arenapvp-card-title {
    font-family: "Unbounded", "Manrope", system-ui;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: rgba(255, 248, 230, 0.96);
    margin: 0 0 8px 0;
}

.trumpamole__arenapvp-card-text {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 246, 230, 0.82);
}

.trumpamole__arenapvp-card-text p {
    margin: 6px 0;
}

.trumpamole__arenapvp-card-text ul {
    margin: 6px 0;
    padding-left: 20px;
}

.trumpamole__arenapvp-card-text li {
    margin: 4px 0;
}

.trumpamole__arenapvp-accent-gold {
    color: var(--gold-2);
    font-weight: 800;
}

.trumpamole__arenapvp-accent-cream {
    color: rgba(255, 246, 230, 0.96);
    font-weight: 800;
}

.trumpamole__arenapvp-accent-red {
    color: #ffaa96;
    font-weight: 800;
}

/* ===== PVP REWARDS ===== */
.trumpamole__arenapvp-rewards {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.trumpamole__arenapvp-reward-item {
    flex: 1;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border: 1px solid rgba(255, 232, 170, 0.08);
}

.trumpamole__arenapvp-reward-icon {
    font-size: 18px;
}

.trumpamole__arenapvp-reward-text {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 246, 230, 0.90);
    text-align: center;
}

.trumpamole__arenapvp-reward-text strong {
    color: var(--gold-2);
    font-weight: 900;
}

/* ===== PVP STATUS CARD ===== */
.trumpamole__arenapvp-status-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 232, 170, 0.10);
    margin-bottom: 12px;
}

.trumpamole__arenapvp-status-icon {
    width: 48px;
    height: 48px;
    background: rgba(77, 163, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid rgba(77, 163, 255, 0.3);
}

.trumpamole__arenapvp-status-content {
    flex: 1;
}

.trumpamole__arenapvp-status-title {
    font-size: 12px;
    color: rgba(255, 246, 230, 0.72);
    margin-bottom: 2px;
}

.trumpamole__arenapvp-status-text {
    font-size: 16px;
    font-weight: 900;
    color: rgba(255, 248, 230, 0.98);
}

/* ===== PVP CONTROLS ===== */
.trumpamole__arenapvp-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.trumpamole__arenapvp-btn-primary {
    flex: 2;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #4da3ff, #2a6bb0);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    padding: 14px 12px;
    font-weight: 900;
    font-size: 14px;
    transition: transform 0.12s ease, background 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.trumpamole__arenapvp-btn-primary:active {
    transform: translateY(1px) scale(0.98);
}

.trumpamole__arenapvp-btn-primary:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.trumpamole__arenapvp-btn-secondary {
    flex: 1;
    border: 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 10px 22px rgba(0, 0, 0, 0.25);
    color: rgba(255, 246, 230, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    padding: 14px 12px;
    font-weight: 900;
    font-size: 14px;
    transition: transform 0.12s ease, background 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.trumpamole__arenapvp-btn-secondary:active {
    transform: translateY(1px) scale(0.98);
    background: rgba(0, 0, 0, 0.28);
}

.trumpamole__arenapvp-btn-secondary:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.trumpamole__arenapvp-btn-icon {
    font-size: 16px;
}

/* ===== PVP MATCH INFO ===== */
.trumpamole__arenapvp-match {
    background: rgba(0, 0, 0, 0.22);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}

.trumpamole__arenapvp-match-header {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.trumpamole__arenapvp-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border-radius: 40px;
    border: 1px solid rgba(255, 232, 170, 0.2);
}

.trumpamole__arenapvp-timer-icon {
    font-size: 16px;
}

.trumpamole__arenapvp-timer-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--gold-2);
}

.trumpamole__arenapvp-scoreboard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 10px;
}

.trumpamole__arenapvp-player {
    text-align: center;
    flex: 1;
}

.trumpamole__arenapvp-player-label {
    font-size: 12px;
    color: rgba(255, 246, 230, 0.72);
    margin-bottom: 4px;
}

.trumpamole__arenapvp-player-score {
    font-size: 32px;
    font-weight: 900;
    color: rgba(255, 248, 230, 0.98);
}

.trumpamole__arenapvp-vs {
    font-size: 14px;
    font-weight: 900;
    color: rgba(255, 246, 230, 0.5);
    padding: 0 10px;
}

/* ===== PVP BOARD ===== */
.trumpamole__arenapvp-board-container {
    text-align: center;
    margin-bottom: 16px;
}

.trumpamole__arenapvp-board-title {
    font-size: 12px;
    color: rgba(255, 246, 230, 0.72);
    margin-bottom: 12px;
}

.trumpamole__arenapvp-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
}

.trumpamole__arenapvp-hole {
    aspect-ratio: 1;
    background: radial-gradient(circle at center, #5d4037 0%, #3e2723 100%);
    border-radius: 20px;
    border: 3px solid #8d6e63;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3);
}

.trumpamole__arenapvp-hole-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: radial-gradient(circle at center, #795548 0%, #4e342e 100%);
    border-radius: 50%;
    border: 2px solid #a1887f;
}

.trumpamole__arenapvp-mole {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 70%;
    background-image: url('../../assets/mole/mole_up.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.trumpamole__arenapvp-mole.active {
    opacity: 1;
}

.trumpamole__arenapvp-hit-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.5) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
}

.trumpamole__arenapvp-hint {
    font-size: 11px;
    color: rgba(255, 246, 230, 0.6);
    margin-top: 12px;
}

/* ===== PVP MATCH STATS ===== */
.trumpamole__arenapvp-match-stats {
    display: flex;
    gap: 10px;
    justify-content: space-around;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 232, 170, 0.10);
}

.trumpamole__arenapvp-stat {
    text-align: center;
    flex: 1;
}

.trumpamole__arenapvp-stat-icon {
    font-size: 16px;
    margin-bottom: 2px;
}

.trumpamole__arenapvp-stat-value {
    font-size: 14px;
    font-weight: 900;
    color: rgba(255, 248, 230, 0.98);
}

.trumpamole__arenapvp-stat-label {
    font-size: 9px;
    color: rgba(255, 246, 230, 0.6);
    text-transform: uppercase;
}

/* ===== PVP RULES ===== */
.trumpamole__arenapvp-rules {
    margin-top: 16px;
}

.trumpamole__arenapvp-rules-title {
    font-size: 12px;
    font-weight: 900;
    color: rgba(255, 248, 230, 0.98);
    margin-bottom: 8px;
}

.trumpamole__arenapvp-rules-list {
    margin: 0 0 12px 0;
    padding-left: 16px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 246, 230, 0.82);
}

.trumpamole__arenapvp-rules-list li {
    margin-bottom: 4px;
}

/* ===== XP POPUP ===== */
.trumpamole__arenapvp-xp-popup {
    position: fixed;
    color: #FFD700;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 10001;
    animation: trumpamole__floatUp 1s ease-out forwards;
}

@keyframes trumpamole__floatUp {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(var(--rotation, 0deg));
    }
    20% {
        opacity: 1;
        transform: translateY(-10px) rotate(var(--rotation, 0deg));
    }
    80% {
        opacity: 1;
        transform: translateY(-30px) rotate(var(--rotation, 0deg));
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) rotate(var(--rotation, 0deg));
    }
}

@keyframes trumpamole__shake {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1) rotate(-5deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-2deg); }
}

/* ===== АДАПТАЦИЯ ===== */
@media (max-width: 360px) {
    .trumpamole__arenapvp-hero-inner {
        grid-template-columns: 1fr 108px;
    }
    
    .trumpamole__arenapvp-top-icon img {
        margin-right: 70px;
    }
    
    .trumpamole__arenapvp-stat-icon {
        width: 86px;
        height: 86px;
    }
    
    .trumpamole__arenapvp-stat-big-number {
        font-size: 20px;
    }
    
    .trumpamole__arenapvp-controls {
        flex-direction: column;
    }
    
    .trumpamole__arenapvp-btn-primary,
    .trumpamole__arenapvp-btn-secondary {
        flex: none;
        width: 100%;
    }
}

/* ===== HIDDEN STATE ===== */
.trumpamole__arenapvp-hidden {
    display: none !important;
}