/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Roboto:wght@400;500;700&display=swap');

.global-gauntlet-section {
    position: relative;
    margin: 20px auto;
    max-width: 1200px;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    padding: 0 15px;
}

/* Container with Fire/Gold Border */
.gauntlet-container {
    position: relative;
    background: #0b0d12; /* Deep dark background */
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    overflow: hidden;
    border: 2px solid #FFD700;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    background: url('https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/items/fire-stone.png'); /* Placeholder for fire effect texture if needed, or just gradient */
    background: linear-gradient(45deg, #ff0000, #ff8c00, #ffd700, #ff0000);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 25px;
    animation: fireBorder 3s linear infinite;
    opacity: 0.8;
    filter: blur(10px);
}

@keyframes fireBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header */
.gauntlet-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.live-tag {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    color: #ff4d4d;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 10px rgba(255,0,0,0.3);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(255, 0, 0, 0.7);
    animation: pulseRed 1.5s infinite;
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.title-container {
    display: inline-block;
}

.main-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #FFD700; /* Gold */
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 0 20px rgba(255, 215, 0, 0.3);
    letter-spacing: 2px;
}

.sub-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #d4af37;
    margin: 5px 0 0;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* Regional Meters */
.regional-meters {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.region-meter {
    text-align: center;
    position: relative;
    width: 140px;
}

.region-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ccc;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meter-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.meter-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.meter-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 6;
}

.meter-progress {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 339.292; /* 2 * PI * 54 */
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1s ease-out;
}

/* Colors for regions */
#americas-progress { stroke: #00BFFF; filter: drop-shadow(0 0 5px #00BFFF); }
#europe-progress { stroke: #FF8C00; filter: drop-shadow(0 0 5px #FF8C00); }
#asia-progress { stroke: #32CD32; filter: drop-shadow(0 0 5px #32CD32); }

.meter-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.region-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
    opacity: 0.8;
}

.region-meter[data-region="americas"] .region-icon { color: #00BFFF; }
.region-meter[data-region="europe"] .region-icon { color: #FF8C00; }
.region-meter[data-region="asia"] .region-icon { color: #32CD32; }

.region-score {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.points-label {
    font-size: 0.6rem;
    color: #888;
    text-transform: uppercase;
}

/* Jackpot Section */
.jackpot-section {
    max-width: 600px;
    margin: 0 auto 30px;
    text-align: center;
}

.jackpot-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #ccc;
}

.jackpot-timer {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #fff;
}

.jackpot-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1a1d26;
    padding: 5px;
    border-radius: 20px;
    border: 1px solid #333;
}

.skull-icon {
    color: #ccc;
    font-size: 1.2rem;
    padding-left: 5px;
}

.jackpot-track {
    flex: 1;
    height: 24px;
    background: #0f1118;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.jackpot-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #ff4d4d);
    border-radius: 12px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.jackpot-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    width: 100%;
}

.jackpot-status {
    color: #ff4d4d;
    font-weight: 700;
    font-size: 0.8rem;
    margin-top: 5px;
    letter-spacing: 1px;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Leaderboard */
.leaderboard-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.lb-header {
    display: grid;
    grid-template-columns: 50px 2fr 1.5fr 1.5fr;
    padding: 10px;
    font-weight: 700;
    color: #888;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    font-size: 0.75rem;
}

.lb-row {
    display: grid;
    grid-template-columns: 50px 2fr 1.5fr 1.5fr;
    padding: 12px 10px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.lb-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.col-player {
    display: flex;
    align-items: center;
    gap: 8px;
}

.p-flag {
    width: 20px;
    border-radius: 2px;
}

.trend-up { color: #4ADE80; font-size: 0.8rem; }
.trend-down { color: #F87171; font-size: 0.8rem; }

.rank-1-fire {
    color: #FF8C00;
    margin-left: 5px;
    animation: fireFlicker 1s infinite alternate;
}

@keyframes fireFlicker {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.1); }
}

.col-balance {
    color: #FFD700;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bolt-icon {
    color: #FFD700;
    font-size: 0.8rem;
}

/* User Row */
.lb-user-row {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 1px solid #FFD700;
    border-radius: 8px;
    margin-top: 10px;
    padding: 10px;
    display: grid;
    grid-template-columns: 50px 3fr 1fr 1fr;
    align-items: center;
    color: #FFD700;
    font-weight: 700;
}

/* Footer & Buttons */
.gauntlet-footer {
    text-align: center;
    margin-top: 20px;
}

.btn-join-war {
    background: linear-gradient(180deg, #F59E0B, #B45309);
    border: 2px solid #FCD34D;
    color: #fff;
    padding: 15px 40px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 4px 0 #92400E, 0 5px 10px rgba(0,0,0,0.5);
    transition: all 0.2s;
    width: 100%;
    max-width: 400px;
}

.btn-join-war:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #92400E, 0 8px 15px rgba(0,0,0,0.6);
    filter: brightness(1.1);
}

.btn-join-war:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #92400E, 0 2px 5px rgba(0,0,0,0.5);
}

.secondary-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.btn-view-players, .btn-view-rules {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-view-players:hover, .btn-view-rules:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-view-players i, .btn-view-rules i {
    color: #FFD700;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .regional-meters {
        gap: 20px;
    }
    
    .region-meter {
        width: 100px;
    }
    
    .meter-wrapper {
        width: 90px;
        height: 90px;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .sub-title {
        font-size: 0.9rem;
    }
    
    .lb-header, .lb-row {
        grid-template-columns: 40px 1.5fr 1fr 1fr;
        font-size: 0.8rem;
    }
    
    .lb-user-row {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .live-tag {
        position: static;
        display: inline-flex;
        margin-bottom: 10px;
    }
    
    .gauntlet-container {
        padding: 15px 10px;
    }
}

@media (max-width: 480px) {
    .regional-meters {
        flex-direction: row;
        justify-content: space-around;
        gap: 10px;
    }
    
    .region-meter {
        width: 30%;
    }
    
    .meter-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .region-score {
        font-size: 0.9rem;
    }
    
    .col-region {
        display: none; /* Hide region column on very small screens to save space */
    }
    
    .lb-header, .lb-row {
        grid-template-columns: 35px 1fr 1fr; /* Adjusted columns */
    }
    
    .jackpot-top {
        flex-direction: column;
        gap: 5px;
    }
}
