/* ============================================
   SUNWELL FORTUNE LOBBY - Midnight Casino Theme
   Adapted from sunwell-fortune-midnight.html
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    /* Light / Sunwell colors */
    --sunwell-gold: #FFD700;
    --sunwell-amber: #FFAA00;
    --sunwell-light: #FFF8DC;
    --sunwell-glow: #FFE4B5;

    /* Blood Elf / Silvermoon */
    --blood-red: #8B0000;
    --blood-crimson: #DC143C;
    --silvermoon-gold: #C9A227;
    --silvermoon-bronze: #8B4513;

    /* Void colors */
    --void-purple: #4B0082;
    --void-deep: #1A0033;
    --void-indigo: #2E0854;
    --void-cosmic: #0D001A;
    --void-pink: #9932CC;
    --void-blue: #4169E1;

    /* Bioluminescent / Harandar */
    --bio-cyan: #00CED1;
    --bio-green: #00FF7F;
    --bio-teal: #20B2AA;

    /* Eversong autumn */
    --autumn-orange: #FF6B35;
    --autumn-red: #CD5C5C;
    --autumn-gold: #DAA520;
}

/* ===== SUNWELL LOBBY CONTAINER ===== */
.sunwell-lobby {
    font-family: 'Philosopher', 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(180deg, var(--void-cosmic) 0%, var(--void-deep) 30%, var(--void-indigo) 70%, var(--void-purple) 100%);
    color: white;
    position: relative;
}

/* ===== EPIC BACKGROUND ===== */
.sunwell-world-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Voidstorm Sky */
.sunwell-voidstorm {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background:
        radial-gradient(ellipse 80% 50% at 30% 20%, rgba(75, 0, 130, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 70% 30%, rgba(65, 105, 225, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 100% 60% at 50% 0%, rgba(153, 50, 204, 0.5) 0%, transparent 60%);
    animation: voidstormPulse 8s ease-in-out infinite;
}

@keyframes voidstormPulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Void Tendrils */
.sunwell-void-tendril {
    position: absolute;
    width: 3px;
    background: linear-gradient(180deg, var(--void-pink), transparent);
    border-radius: 50%;
    filter: blur(1px);
    animation: tendrilFloat 10s ease-in-out infinite;
}

@keyframes tendrilFloat {
    0%, 100% { transform: translateY(0) scaleY(1) rotate(-5deg); opacity: 0.6; }
    50% { transform: translateY(-30px) scaleY(1.2) rotate(5deg); opacity: 0.9; }
}

/* Sunwell Glow - центриран източник на светлина */
.sunwell-source {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle,
        rgba(255, 248, 220, 1) 0%,
        rgba(255, 215, 0, 0.8) 20%,
        rgba(255, 170, 0, 0.5) 40%,
        rgba(255, 140, 0, 0.2) 60%,
        transparent 80%);
    border-radius: 50%;
    animation: sunwellPulse 4s ease-in-out infinite;
    filter: blur(20px);
}

.sunwell-source::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #FFFAFA, #FFD700);
    border-radius: 50%;
    filter: blur(5px);
    animation: sunwellCore 2s ease-in-out infinite;
}

@keyframes sunwellPulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.9; }
    50% { transform: translateX(-50%) scale(1.15); opacity: 1; }
}

@keyframes sunwellCore {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* Light Rays from Sunwell */
.sunwell-light-rays {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 400px;
    background:
        conic-gradient(from 0deg at 50% 0%,
            transparent 0deg,
            rgba(255, 215, 0, 0.1) 10deg,
            transparent 20deg,
            rgba(255, 215, 0, 0.15) 40deg,
            transparent 50deg,
            rgba(255, 215, 0, 0.1) 70deg,
            transparent 80deg,
            rgba(255, 215, 0, 0.12) 100deg,
            transparent 110deg,
            rgba(255, 215, 0, 0.1) 130deg,
            transparent 140deg,
            rgba(255, 215, 0, 0.15) 160deg,
            transparent 170deg,
            rgba(255, 215, 0, 0.1) 190deg,
            transparent 200deg);
    animation: raysRotate 30s linear infinite;
    opacity: 0.7;
}

@keyframes raysRotate {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

/* Silvermoon Spires Silhouette */
.sunwell-silvermoon-spires {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    z-index: 1;
}

/* Golden particles floating up */
.sunwell-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--sunwell-gold);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--sunwell-gold), 0 0 12px var(--sunwell-amber);
    animation: particleRise 8s ease-out infinite;
}

@keyframes particleRise {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; transform: translateY(90vh) scale(1); }
    90% { opacity: 0.8; }
    100% { transform: translateY(-50px) scale(0.5); opacity: 0; }
}

/* Void particles falling */
.sunwell-void-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--void-pink);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--void-pink);
    animation: voidFall 12s linear infinite;
}

@keyframes voidFall {
    0% { transform: translateY(-50px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.6; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Bioluminescent mushrooms */
.sunwell-bio-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(15px);
    animation: bioGlow 5s ease-in-out infinite;
}

@keyframes bioGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* Stars with void tint */
.sunwell-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: starTwinkle 3s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* ===== HEADER ===== */
.sunwell-header {
    position: relative;
    padding: 20px 15px;
    z-index: 50;
}

.sunwell-header-top {
    display: none; /* Moved to status bar */
}

/* Player Frame - Blood Elf Style */
.sunwell-player-frame {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sunwell-portrait-container {
    position: relative;
    width: 58px;
    height: 58px;
}

.sunwell-portrait-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--silvermoon-gold);
    border-radius: 50%;
    box-shadow:
        0 0 15px rgba(255, 215, 0, 0.5),
        inset 0 0 15px rgba(255, 215, 0, 0.3);
    animation: portraitGlow 3s ease-in-out infinite;
}

@keyframes portraitGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.5), inset 0 0 15px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), inset 0 0 20px rgba(255, 215, 0, 0.5); }
}

.sunwell-portrait-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--void-purple), var(--void-indigo));
}

.sunwell-level-gem {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--blood-crimson), var(--blood-red));
    color: var(--sunwell-light);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    border: 2px solid var(--silvermoon-gold);
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
}

.sunwell-player-details h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: var(--sunwell-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    margin: 0;
}

.sunwell-player-details p {
    font-size: 0.7rem;
    color: var(--bio-cyan);
    text-shadow: 0 0 5px var(--bio-cyan);
    margin: 0;
}

/* Currency - Sunwell Style */
.sunwell-currency-display {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.6), rgba(75, 0, 130, 0.4));
    border: 2px solid var(--silvermoon-gold);
    border-radius: 25px;
    padding: 8px 14px;
    box-shadow:
        0 0 15px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sunwell-currency-display:hover {
    box-shadow:
        0 0 25px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sunwell-currency-icon {
    font-size: 1rem;
    animation: gemFloat 2s ease-in-out infinite;
}

@keyframes gemFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.sunwell-currency-amount {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--sunwell-gold), var(--sunwell-light), var(--sunwell-gold));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 3s linear infinite;
}

@keyframes goldShimmer {
    from { background-position: 200% center; }
    to { background-position: -200% center; }
}

/* Logo - Epic WoW Style */
.sunwell-logo-section {
    text-align: center;
    padding: 15px 0 25px;
    position: relative;
}

/* 🎯 Hide logo section in Rank mode */
.sunwell-lobby--rank-mode .sunwell-logo-section {
    display: none;
}

/* 🛒 Hide entire header in Shop mode - shop has its own header */
.sunwell-lobby--shop-mode .sunwell-header {
    display: none;
}

.sunwell-logo-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.sunwell-ornament-wing {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sunwell-gold), var(--silvermoon-gold));
    position: relative;
}

.sunwell-ornament-wing::before {
    content: '';
    position: absolute;
    top: -3px;
    width: 8px;
    height: 8px;
    background: var(--sunwell-gold);
    transform: rotate(45deg);
}

.sunwell-ornament-wing.left::before { right: 0; }
.sunwell-ornament-wing.right { background: linear-gradient(90deg, var(--silvermoon-gold), var(--sunwell-gold), transparent); }
.sunwell-ornament-wing.right::before { left: 0; }

.sunwell-ornament-gem {
    font-size: 1.2rem;
    animation: gemPulse 2s ease-in-out infinite;
}

@keyframes gemPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px var(--sunwell-gold)); }
    50% { transform: scale(1.2); filter: drop-shadow(0 0 15px var(--sunwell-gold)); }
}

.sunwell-logo-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(180deg,
        var(--sunwell-light) 0%,
        var(--sunwell-gold) 30%,
        var(--autumn-orange) 60%,
        var(--blood-crimson) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    position: relative;
    margin: 0;
}

.sunwell-logo-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: var(--bio-cyan);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 10px var(--bio-cyan);
}

.sunwell-logo-subtitle::before,
.sunwell-logo-subtitle::after {
    content: '◆';
    color: var(--void-pink);
    font-size: 0.5rem;
    animation: subtitleGem 2s ease-in-out infinite;
}

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

/* ===== FANTASY STATUS BAR ===== */
/* RPG-style status panel with decorative frame */
.sunwell-status-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 20px;
    padding: 0;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;

    /* Main background - dark with gradient */
    background: linear-gradient(
        180deg,
        rgba(20, 12, 35, 0.95) 0%,
        rgba(35, 20, 50, 0.9) 50%,
        rgba(20, 12, 35, 0.95) 100%
    );

    /* Double border effect */
    border: 2px solid;
    border-image: linear-gradient(
        135deg,
        var(--silvermoon-gold) 0%,
        var(--sunwell-gold) 25%,
        var(--autumn-orange) 50%,
        var(--sunwell-gold) 75%,
        var(--silvermoon-gold) 100%
    ) 1;

    border-radius: 0; /* Sharp corners for RPG look */

    /* Outer glow */
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.15),
        inset 0 0 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

/* Corner ornaments - diamond shapes */
.status-bar-ornament {
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--sunwell-gold), var(--autumn-orange));
    transform: rotate(45deg);
    z-index: 2;
}

.status-bar-ornament.tl { top: -5px; left: -5px; }
.status-bar-ornament.tr { top: -5px; right: -5px; }
.status-bar-ornament.bl { bottom: -5px; left: -5px; }
.status-bar-ornament.br { bottom: -5px; right: -5px; }

/* Status bar buttons */
.status-bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.status-bar-btn:active {
    background: rgba(255, 215, 0, 0.1);
}

/* Inner border effect for buttons */
.status-bar-btn::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    right: 4px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    pointer-events: none;
}

.status-bar-btn.camp::before {
    right: 0;
    border-right: none;
}

.status-bar-btn.balance::before {
    left: 0;
    border-left: none;
}

/* Button icon */
.status-bar-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Button label */
.status-bar-label {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sunwell-light);
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.3);
    letter-spacing: 1px;
}

/* Balance amount - special gold color */
.status-bar-btn.balance .status-bar-label {
    background: linear-gradient(
        90deg,
        var(--sunwell-gold) 0%,
        var(--sunwell-light) 50%,
        var(--sunwell-gold) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Center divider */
.status-bar-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    position: relative;
}

/* Vertical line */
.status-bar-divider::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--sunwell-gold) 30%,
        var(--sunwell-gold) 70%,
        transparent 100%
    );
}

/* Center gem */
.status-bar-gem {
    font-size: 0.9rem;
    color: var(--sunwell-gold);
    z-index: 1;
    background: rgba(20, 12, 35, 1);
    padding: 2px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

/* ===== SUNWELL HERALD - News Panel ===== */
/* Matches status-bar style exactly */
.void-crystal-herald {
    position: relative;
    margin-top: 15px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

/* Main frame - same style as status-bar */
.herald-frame {
    position: relative;
    background: linear-gradient(
        180deg,
        rgba(20, 12, 35, 0.95) 0%,
        rgba(35, 20, 50, 0.9) 50%,
        rgba(20, 12, 35, 0.95) 100%
    );
    padding: 12px 14px;

    /* Same border as status-bar */
    border: 2px solid;
    border-image: linear-gradient(
        135deg,
        var(--silvermoon-gold) 0%,
        var(--sunwell-gold) 25%,
        var(--autumn-orange) 50%,
        var(--sunwell-gold) 75%,
        var(--silvermoon-gold) 100%
    ) 1;

    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.15),
        inset 0 0 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

/* Corner ornaments - same as status-bar */
.herald-gem {
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--sunwell-gold), var(--autumn-orange));
    transform: rotate(45deg);
    z-index: 2;
}

.herald-gem.top {
    top: -5px;
    left: 50%;
    margin-left: -5px;
}

.herald-gem.bottom {
    bottom: -5px;
    left: 50%;
    margin-left: -5px;
}

/* Header section */
.herald-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.herald-gem-icon {
    font-size: 0.6rem;
    color: var(--sunwell-gold);
}

.herald-title {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--sunwell-light);
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.3);
}

/* Divider line - gold gradient */
.herald-divider {
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--sunwell-gold) 30%,
        var(--sunwell-gold) 70%,
        transparent 100%
    );
    margin-bottom: 10px;
    opacity: 0.5;
}

/* News entries container */
.herald-entries {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Single entry */
.herald-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

/* Entry icon */
.herald-entry-icon {
    font-size: 1rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Entry content */
.herald-entry-content {
    flex: 1;
    min-width: 0;
}

/* Entry tag */
.herald-entry-tag {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1px 5px;
    margin-bottom: 2px;
    background: rgba(255, 215, 0, 0.15);
    color: var(--sunwell-gold);
    border: 1px solid rgba(255, 215, 0, 0.25);
}

/* Entry title */
.herald-entry-title {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sunwell-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Entry description */
.herald-entry-desc {
    font-size: 0.65rem;
    color: rgba(255, 248, 220, 0.7);
    margin-top: 1px;
}

/* Separator between entries */
.herald-separator {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 5%,
        rgba(255, 215, 0, 0.2) 50%,
        transparent 95%
    );
}

/* ===== GAMES SECTION ===== */
.sunwell-games-section {
    position: relative;
    z-index: 10;
    padding: 0 12px 130px;
}

.sunwell-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 5px;
}

.sunwell-section-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px var(--sunwell-gold));
}

.sunwell-section-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sunwell-glow);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* ===== GAME CARDS - WoW Midnight Style ===== */
.sunwell-games-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 420px;
    margin: 0 auto;
}

.sunwell-game-card {
    position: relative;
    border-radius: 16px;
    overflow: visible;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Card outer glow based on rarity */
.sunwell-game-card::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 20px;
    background: var(--card-border);
    z-index: -1;
    transition: all 0.3s ease;
}

.sunwell-game-card::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 24px;
    background: var(--card-border);
    z-index: -2;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.3s ease;
}

.sunwell-game-card:hover {
    transform: translateY(-12px) scale(1.02);
}

.sunwell-game-card:hover::after {
    opacity: 0.7;
}

/* Rarity Variants - Light vs Void */
.sunwell-game-card.legendary-light {
    --card-border: linear-gradient(135deg, var(--sunwell-gold), var(--sunwell-amber), var(--autumn-orange), var(--sunwell-gold));
    --card-glow: var(--sunwell-gold);
}

.sunwell-game-card.legendary-void {
    --card-border: linear-gradient(135deg, var(--void-pink), var(--void-purple), var(--void-blue), var(--void-pink));
    --card-glow: var(--void-pink);
}

.sunwell-game-card.epic-light {
    --card-border: linear-gradient(135deg, var(--autumn-orange), var(--blood-crimson), var(--autumn-orange));
    --card-glow: var(--autumn-orange);
}

.sunwell-game-card.epic-void {
    --card-border: linear-gradient(135deg, var(--void-indigo), var(--void-pink), var(--void-indigo));
    --card-glow: var(--void-pink);
}

.sunwell-game-card.rare {
    --card-border: linear-gradient(135deg, var(--bio-cyan), var(--bio-teal), var(--bio-cyan));
    --card-glow: var(--bio-cyan);
}

.sunwell-game-card.common {
    --card-border: linear-gradient(135deg, #6b7280, #9ca3af, #6b7280);
    --card-glow: #9ca3af;
}

/* Card Inner */
.sunwell-card-inner {
    position: relative;
    background: linear-gradient(180deg,
        rgba(26, 0, 51, 0.95) 0%,
        rgba(13, 0, 26, 0.98) 100%);
    border-radius: 14px;
    overflow: hidden;
}

/* Card Image */
.sunwell-card-image-section {
    position: relative;
    height: 165px;
    overflow: hidden;
}

.sunwell-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.3s ease;
}

.sunwell-game-card:hover .sunwell-card-image {
    transform: scale(1.12);
}

/* Image Overlay - Light/Void gradient */
.sunwell-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.sunwell-game-card.legendary-light .sunwell-card-overlay,
.sunwell-game-card.epic-light .sunwell-card-overlay {
    background:
        linear-gradient(180deg, rgba(255, 215, 0, 0.1) 0%, transparent 30%, rgba(13, 0, 26, 0.9) 100%),
        radial-gradient(ellipse at 50% 0%, rgba(255, 215, 0, 0.2) 0%, transparent 60%);
}

.sunwell-game-card.legendary-void .sunwell-card-overlay,
.sunwell-game-card.epic-void .sunwell-card-overlay {
    background:
        linear-gradient(180deg, rgba(153, 50, 204, 0.2) 0%, transparent 30%, rgba(13, 0, 26, 0.9) 100%),
        radial-gradient(ellipse at 50% 0%, rgba(75, 0, 130, 0.3) 0%, transparent 60%);
}

.sunwell-game-card.rare .sunwell-card-overlay,
.sunwell-game-card.common .sunwell-card-overlay {
    background:
        linear-gradient(180deg, rgba(0, 206, 209, 0.15) 0%, transparent 30%, rgba(13, 0, 26, 0.9) 100%),
        radial-gradient(ellipse at 50% 0%, rgba(0, 206, 209, 0.2) 0%, transparent 60%);
}

/* Rarity Badge */
.sunwell-rarity-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(5px);
    z-index: 5;
}

.sunwell-rarity-badge.light-infused {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 170, 0, 0.9));
    color: var(--void-deep);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    animation: lightBadgePulse 2s ease-in-out infinite;
}

.sunwell-rarity-badge.void-corrupted {
    background: linear-gradient(135deg, rgba(153, 50, 204, 0.9), rgba(75, 0, 130, 0.9));
    color: white;
    box-shadow: 0 0 20px rgba(153, 50, 204, 0.6);
    animation: voidBadgePulse 2s ease-in-out infinite;
}

.sunwell-rarity-badge.haranir {
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.9), rgba(32, 178, 170, 0.9));
    color: var(--void-deep);
    box-shadow: 0 0 15px rgba(0, 206, 209, 0.5);
}

@keyframes lightBadgePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.9), 0 0 40px rgba(255, 170, 0, 0.4); }
}

@keyframes voidBadgePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(153, 50, 204, 0.6); }
    50% { box-shadow: 0 0 30px rgba(153, 50, 204, 0.9), 0 0 40px rgba(75, 0, 130, 0.4); }
}

/* Status Badge */
.sunwell-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sunwell-status-badge.hot {
    background: linear-gradient(135deg, #FF4500, #FF6B35);
    color: white;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.5);
    animation: hotPulse 1s ease-in-out infinite;
}

.sunwell-status-badge.new {
    background: linear-gradient(135deg, var(--bio-green), var(--bio-teal));
    color: var(--void-deep);
    box-shadow: 0 0 15px rgba(0, 255, 127, 0.5);
}

.sunwell-status-badge.locked {
    background: linear-gradient(135deg, #4b5563, #6b7280);
    color: white;
    box-shadow: 0 0 10px rgba(107, 114, 128, 0.5);
}

.sunwell-status-badge.coming {
    background: linear-gradient(135deg, var(--void-purple), var(--void-pink));
    color: white;
    box-shadow: 0 0 15px rgba(153, 50, 204, 0.5);
}

@keyframes hotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Card Particles */
.sunwell-card-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.sunwell-card-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    opacity: 0;
}

.sunwell-game-card.legendary-light .sunwell-card-particle,
.sunwell-game-card.epic-light .sunwell-card-particle {
    background: var(--sunwell-gold);
    box-shadow: 0 0 8px var(--sunwell-gold);
}

.sunwell-game-card.legendary-void .sunwell-card-particle,
.sunwell-game-card.epic-void .sunwell-card-particle {
    background: var(--void-pink);
    box-shadow: 0 0 8px var(--void-pink);
}

.sunwell-game-card.rare .sunwell-card-particle,
.sunwell-game-card.common .sunwell-card-particle {
    background: var(--bio-cyan);
    box-shadow: 0 0 8px var(--bio-cyan);
}

.sunwell-game-card:hover .sunwell-card-particle {
    animation: cardParticle 1.5s ease-out infinite;
}

.sunwell-card-particle:nth-child(1) { left: 15%; animation-delay: 0s; }
.sunwell-card-particle:nth-child(2) { left: 35%; animation-delay: 0.3s; }
.sunwell-card-particle:nth-child(3) { left: 55%; animation-delay: 0.6s; }
.sunwell-card-particle:nth-child(4) { left: 75%; animation-delay: 0.9s; }

@keyframes cardParticle {
    0% { bottom: 0; opacity: 0; transform: scale(0); }
    20% { opacity: 1; transform: scale(1); }
    100% { bottom: 100%; opacity: 0; transform: scale(0.3); }
}

/* Card Content */
.sunwell-card-content {
    padding: 18px;
    text-align: center;
    position: relative;
}

/* Corner ornaments */
.sunwell-corner-ornament {
    position: absolute;
    width: 15px;
    height: 15px;
    border-color: var(--silvermoon-gold);
    border-style: solid;
    border-width: 0;
    opacity: 0.6;
}

.sunwell-corner-ornament.tl { top: 5px; left: 5px; border-top-width: 2px; border-left-width: 2px; }
.sunwell-corner-ornament.tr { top: 5px; right: 5px; border-top-width: 2px; border-right-width: 2px; }
.sunwell-corner-ornament.bl { bottom: 5px; left: 5px; border-bottom-width: 2px; border-left-width: 2px; }
.sunwell-corner-ornament.br { bottom: 5px; right: 5px; border-bottom-width: 2px; border-right-width: 2px; }

.sunwell-card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--sunwell-glow);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.sunwell-card-provider {
    font-size: 0.7rem;
    color: var(--bio-cyan);
    margin-bottom: 15px;
    opacity: 0.8;
}

/* Play Button - WoW Action Bar Style */
.sunwell-play-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--silvermoon-gold);
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sunwell-game-card.legendary-light .sunwell-play-btn,
.sunwell-game-card.epic-light .sunwell-play-btn {
    background: linear-gradient(180deg, var(--silvermoon-bronze), var(--blood-red));
    color: var(--sunwell-gold);
}

.sunwell-game-card.legendary-void .sunwell-play-btn,
.sunwell-game-card.epic-void .sunwell-play-btn {
    background: linear-gradient(180deg, var(--void-indigo), var(--void-purple));
    color: var(--bio-cyan);
    border-color: var(--void-pink);
}

.sunwell-game-card.rare .sunwell-play-btn,
.sunwell-game-card.common .sunwell-play-btn {
    background: linear-gradient(180deg, #1A4A4A, #0D2626);
    color: var(--bio-cyan);
    border-color: var(--bio-cyan);
}

.sunwell-play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.sunwell-play-btn:hover::before {
    left: 100%;
}

.sunwell-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.sunwell-play-btn span {
    font-size: 1rem;
}

/* Locked/Coming Soon state */
.sunwell-game-card.locked .sunwell-play-btn,
.sunwell-game-card.coming-soon .sunwell-play-btn {
    background: linear-gradient(180deg, #374151, #1f2937);
    color: #9ca3af;
    border-color: #4b5563;
    cursor: not-allowed;
}

.sunwell-game-card.locked .sunwell-card-image,
.sunwell-game-card.coming-soon .sunwell-card-image {
    filter: grayscale(50%) brightness(0.7);
}

/* ===== BOTTOM NAVIGATION ===== */
.sunwell-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(26, 0, 51, 0.95), rgba(13, 0, 26, 0.98));
    backdrop-filter: blur(20px);
    border-top: 2px solid var(--silvermoon-gold);
    padding: 8px 10px 18px;
    display: flex;
    justify-content: space-around;
    z-index: 1000;
}

.sunwell-bottom-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sunwell-gold), transparent);
}

.sunwell-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: none;
    border: none;
}

.sunwell-nav-item.active {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.15), transparent);
}

.sunwell-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 3px;
    background: var(--sunwell-gold);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--sunwell-gold);
}

.sunwell-nav-icon {
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.sunwell-nav-item.active .sunwell-nav-icon {
    filter: drop-shadow(0 0 10px var(--sunwell-gold));
    transform: scale(1.15);
}

.sunwell-nav-label {
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.sunwell-nav-item.active .sunwell-nav-label {
    color: var(--sunwell-gold);
}

.sunwell-nav-badge {
    position: absolute;
    top: 3px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--blood-crimson);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--blood-crimson);
    animation: navBadgePulse 1.5s ease-in-out infinite;
}

@keyframes navBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ===== LOADING SCREEN ===== */
.sunwell-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, var(--void-indigo) 0%, var(--void-cosmic) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 1s ease, visibility 1s ease;
}

.sunwell-loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.sunwell-loading-sunwell {
    width: 100px;
    height: 100px;
    position: relative;
    margin-bottom: 30px;
}

.sunwell-loading-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--sunwell-light), var(--sunwell-gold), var(--sunwell-amber));
    box-shadow: 0 0 40px var(--sunwell-gold), 0 0 80px var(--sunwell-amber);
    animation: loadingOrbPulse 1.5s ease-in-out infinite;
}

@keyframes loadingOrbPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

.sunwell-loading-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--void-pink);
    border-bottom-color: var(--bio-cyan);
    border-radius: 50%;
    animation: loadingRingSpin 1.5s linear infinite;
}

@keyframes loadingRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sunwell-loading-text {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--sunwell-gold);
    text-shadow: 0 0 20px var(--sunwell-gold);
    animation: loadingTextPulse 1.5s ease-in-out infinite;
}

@keyframes loadingTextPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.sunwell-loading-tip {
    margin-top: 25px;
    font-size: 0.7rem;
    color: var(--bio-cyan);
    text-align: center;
    max-width: 280px;
    font-style: italic;
    opacity: 0.8;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 380px) {
    .sunwell-logo-title { font-size: 2rem; }
    .sunwell-card-image-section { height: 175px; }
}

@media (min-width: 480px) {
    .sunwell-logo-title { font-size: 2.3rem; }
    .sunwell-card-image-section { height: 185px; }
    .sunwell-games-grid { max-width: 450px; }
}

@media (min-width: 768px) {
    .sunwell-games-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        max-width: 750px;
        gap: 25px;
    }
    .sunwell-card-image-section { height: 160px; }
    .sunwell-source { width: 200px; height: 200px; }
}

/* ===== PARTICLE CONTAINERS ===== */
.sunwell-particles-container,
.sunwell-stars-container,
.sunwell-tendrils-container,
.sunwell-bio-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* ============================================
   SOCIAL STATS PANEL - Activity & Leaderboard
   ============================================ */

.social-stats-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.social-stats-panel.open {
    opacity: 1;
    visibility: visible;
}

.social-stats-panel.closing {
    opacity: 0;
    visibility: hidden;
}

.social-stats-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 0, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.social-stats-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 420px;
    max-height: 85vh;
    background: linear-gradient(135deg,
        rgba(46, 8, 84, 0.98) 0%,
        rgba(26, 0, 51, 0.98) 100%
    );
    border: 2px solid rgba(153, 50, 204, 0.5);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 0 40px rgba(153, 50, 204, 0.4),
        0 0 80px rgba(75, 0, 130, 0.3),
        inset 0 1px 0 rgba(255, 215, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-stats-panel.open .social-stats-content {
    transform: translate(-50%, -50%) scale(1);
}

/* Header */
.social-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(90deg,
        rgba(255, 215, 0, 0.15) 0%,
        transparent 100%
    );
    border-bottom: 1px solid rgba(153, 50, 204, 0.3);
}

.social-stats-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #FFD700;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.social-stats-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(153, 50, 204, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-stats-close:hover {
    background: rgba(255, 100, 100, 0.5);
    transform: scale(1.1);
}

/* Sections */
.social-stats-section {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(153, 50, 204, 0.2);
}

.social-stats-section:last-child {
    border-bottom: none;
}

.social-stats-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.social-stats-section-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-stats-section-header span {
    font-size: 16px;
}

/* Live dot animation */
.live-dot {
    width: 10px;
    height: 10px;
    background: #ff4444;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
    box-shadow: 0 0 8px #ff4444;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

/* Live Ticker Container */
.social-live-ticker {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(153, 50, 204, 0.5) transparent;
}

.social-live-ticker::-webkit-scrollbar {
    width: 4px;
}

.social-live-ticker::-webkit-scrollbar-thumb {
    background: rgba(153, 50, 204, 0.5);
    border-radius: 4px;
}

/* Ticker Items */
.ticker-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(13, 0, 26, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(153, 50, 204, 0.2);
    animation: tickerSlideIn 0.3s ease;
}

@keyframes tickerSlideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.ticker-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.ticker-text {
    flex: 1;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

.ticker-text strong {
    color: #00CED1;
}

.ticker-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

/* Loading/Empty States */
.ticker-loading,
.ticker-empty,
.ticker-error,
.leaderboard-empty {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.ticker-error {
    color: #ff6b6b;
}

/* Leaderboard Container */
.social-leaderboard {
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(153, 50, 204, 0.5) transparent;
}

.social-leaderboard::-webkit-scrollbar {
    width: 4px;
}

.social-leaderboard::-webkit-scrollbar-thumb {
    background: rgba(153, 50, 204, 0.5);
    border-radius: 4px;
}

/* Leaderboard List */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(13, 0, 26, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(153, 50, 204, 0.2);
    transition: all 0.2s ease;
}

.leaderboard-item:nth-child(1) {
    background: linear-gradient(135deg,
        rgba(255, 215, 0, 0.15) 0%,
        rgba(13, 0, 26, 0.5) 100%
    );
    border-color: rgba(255, 215, 0, 0.3);
}

.leaderboard-item:nth-child(2) {
    background: linear-gradient(135deg,
        rgba(192, 192, 192, 0.1) 0%,
        rgba(13, 0, 26, 0.5) 100%
    );
    border-color: rgba(192, 192, 192, 0.2);
}

.leaderboard-item:nth-child(3) {
    background: linear-gradient(135deg,
        rgba(205, 127, 50, 0.1) 0%,
        rgba(13, 0, 26, 0.5) 100%
    );
    border-color: rgba(205, 127, 50, 0.2);
}

.leaderboard-item.current-user {
    border-color: rgba(0, 206, 209, 0.5);
    background: linear-gradient(135deg,
        rgba(0, 206, 209, 0.1) 0%,
        rgba(13, 0, 26, 0.5) 100%
    );
}

.leaderboard-rank {
    font-size: 20px;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.leaderboard-info {
    flex: 1;
    min-width: 0;
}

.leaderboard-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-streak {
    font-size: 11px;
    color: #ff9500;
    margin-top: 2px;
}

.leaderboard-points {
    font-size: 14px;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    flex-shrink: 0;
}

/* Stats row in leaderboard */
.leaderboard-stats-row {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

.leaderboard-streak,
.leaderboard-winrate {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.leaderboard-streak {
    color: #ff9500;
}

.leaderboard-winrate {
    color: #00CED1;
}

/* View All Button */
.social-stats-view-all {
    margin-left: auto;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(153, 50, 204, 0.3) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    color: #FFD700;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-stats-view-all:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(153, 50, 204, 0.4) 100%);
    transform: scale(1.05);
}

/* Live Ticker inside social panel - basic overrides */
.social-live-ticker .activity-ticker-container {
    padding: 0 !important;
    background: transparent !important;
}

.social-live-ticker .activity-ticker-header {
    display: none !important;
}

/* Player Frame Hover Effect (clickable) */
.sunwell-player-frame {
    cursor: pointer;
    transition: all 0.2s ease;
}

.sunwell-player-frame:hover {
    transform: scale(1.02);
}

.sunwell-player-frame:hover .sunwell-portrait-border {
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.5),
        inset 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .social-stats-content {
        width: 95%;
        max-height: 90vh;
    }

    .social-stats-header {
        padding: 14px 16px;
    }

    .social-stats-header h2 {
        font-size: 16px;
    }

    .social-stats-section {
        padding: 14px 16px;
    }

    .ticker-item {
        padding: 8px 10px;
    }

    .leaderboard-item {
        padding: 10px 12px;
    }

    .social-live-ticker {
        max-height: 160px;
    }

    .social-leaderboard {
        max-height: 220px;
    }
}

/* ============================================
   🏕️ BACK TO CAMP BUTTON
   ============================================ */
.sunwell-back-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.6), rgba(75, 0, 130, 0.4));
    border: 2px solid var(--sunwell-gold);
    border-radius: 25px;
    color: var(--sunwell-light);
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 0 15px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.sunwell-back-button:hover {
    box-shadow:
        0 0 25px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sunwell-back-button:active {
    transform: translateY(0) scale(0.98);
}

.sunwell-back-icon {
    font-size: 16px;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
}

.sunwell-back-text {
    letter-spacing: 1px;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(255, 215, 0, 0.4);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .sunwell-back-button {
        padding: 8px 14px;
        font-size: 12px;
        gap: 4px;
    }

    .sunwell-back-icon {
        font-size: 16px;
    }
}

/* ============================================
   🎮 BOTTOM NAV TRANSFORMATIONS
   ============================================ */

/* Smooth transition for bottom nav transformations */
.bottom-nav {
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gaming mode specific styles - animation plays ONCE on creation */
.bottom-nav--gaming {
    animation: bottomNavSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-fill-mode: forwards;
}

.bottom-nav--main {
    /* No animation for main nav to prevent re-triggering */
}

@keyframes bottomNavSlideIn {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Gaming nav button hover effects */
.bottom-nav--gaming button {
    transition: all 0.3s ease;
}

.bottom-nav--gaming button:hover {
    transform: translateY(-3px);
}

.bottom-nav--gaming button:active {
    transform: translateY(0);
}

/* Golden glow effect on active gaming tab */
.bottom-nav--gaming button.text-amber-400 {
    animation: goldenPulse 2s ease-in-out infinite;
}

@keyframes goldenPulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8));
    }
}

/* ============================================
   🏆 RANK VIEW STYLES
   ============================================ */

.sunwell-rank-view {
    position: relative;
    z-index: 1;
    padding: 8px 16px 100px; /* Reduced top padding since logo section is hidden */
    min-height: 100vh;
    overflow-y: auto;
}

/* Rank Header */
.sunwell-rank-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.sunwell-rank-title {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--sunwell-gold);
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.4);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.sunwell-rank-subtitle {
    font-family: 'Philosopher', sans-serif;
    font-size: 14px;
    color: var(--void-pink);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    letter-spacing: 1px;
}

/* Section Styling */
.sunwell-rank-section {
    margin-bottom: 40px;
}

.sunwell-section-header-rank {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.3), rgba(26, 0, 51, 0.5));
    border: 2px solid var(--sunwell-gold);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.sunwell-section-icon-rank {
    font-size: 24px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.sunwell-section-title-rank {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--sunwell-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1.5px;
}

/* Live Highlights Container */
.sunwell-rank-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Leaderboard List */
.sunwell-rank-leaderboard {
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.6), rgba(13, 0, 26, 0.8));
    border: 2px solid rgba(201, 162, 39, 0.3);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.sunwell-rank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sunwell-rank-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.2), rgba(26, 0, 51, 0.3));
    border: 1px solid rgba(153, 50, 204, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.sunwell-rank-item:hover {
    transform: translateX(4px);
    border-color: var(--void-pink);
    box-shadow: 0 4px 12px rgba(153, 50, 204, 0.3);
}

.sunwell-rank-item--current {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 170, 0, 0.1));
    border: 2px solid var(--sunwell-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.sunwell-rank-medal {
    font-size: 28px;
    min-width: 40px;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.sunwell-rank-name {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--sunwell-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.sunwell-rank-points {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--sunwell-gold);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* ===== STATS HIGHLIGHTS (3 Cards) - Mobile First ===== */
.sunwell-stats-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 16px;
    color: var(--void-pink);
    font-size: 14px;
}

.sunwell-stats-loading .loading-shimmer {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(153, 50, 204, 0.2), rgba(153, 50, 204, 0.5), rgba(153, 50, 204, 0.2));
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.sunwell-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sunwell-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.2), rgba(26, 0, 51, 0.3));
    border: 1px solid rgba(153, 50, 204, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
}

.sunwell-stat-card:active {
    transform: scale(0.98);
}

/* Card variants */
.sunwell-stat-card--gold {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
}

.sunwell-stat-card--purple {
    border-color: rgba(153, 50, 204, 0.4);
    box-shadow: 0 0 15px rgba(153, 50, 204, 0.15);
}

.sunwell-stat-card--green {
    border-color: rgba(0, 255, 127, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 127, 0.1);
}

.sunwell-stat-icon {
    font-size: 36px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.sunwell-stat-value {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.sunwell-stat-card--gold .sunwell-stat-value {
    color: var(--sunwell-gold);
    text-shadow:
        0 0 12px rgba(255, 215, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.8);
}

.sunwell-stat-card--purple .sunwell-stat-value {
    color: var(--void-pink);
    text-shadow:
        0 0 12px rgba(153, 50, 204, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.8);
}

.sunwell-stat-card--green .sunwell-stat-value {
    color: var(--bio-green);
    text-shadow:
        0 0 12px rgba(0, 255, 127, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.8);
}

.sunwell-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sunwell-light);
    margin-bottom: 6px;
    opacity: 0.9;
}

.sunwell-stat-sub {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: var(--void-pink);
    opacity: 0.85;
    line-height: 1.4;
}

/* Tablet and up: 3 cards in a row */
@media (min-width: 640px) {
    .sunwell-stats-grid {
        flex-direction: row;
        gap: 12px;
    }

    .sunwell-stat-card {
        flex: 1;
        min-width: 0;
        padding: 24px 16px;
    }

    .sunwell-stat-icon {
        font-size: 40px;
    }

    .sunwell-stat-value {
        font-size: 36px;
    }

    .sunwell-stat-label {
        font-size: 13px;
    }

    .sunwell-stat-sub {
        font-size: 14px;
    }
}

/* ===== MY RANK CARD - Personal Position Display ===== */
.my-rank-section {
    margin-bottom: 20px;
}

.my-rank-card {
    position: relative;
    background: linear-gradient(145deg,
        rgba(20, 10, 40, 0.95) 0%,
        rgba(40, 20, 60, 0.9) 50%,
        rgba(20, 10, 40, 0.95) 100%);
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(168, 85, 247, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.my-rank-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        rgba(168, 85, 247, 0.8),
        rgba(255, 215, 0, 0.8),
        rgba(168, 85, 247, 0.8),
        transparent);
}

.my-rank-loading,
.my-rank-error {
    padding: 30px;
    text-align: center;
    color: rgba(200, 180, 255, 0.6);
    font-family: 'Inter', sans-serif;
}

/* Guest state */
.my-rank-guest {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px;
    text-align: center;
}

.my-rank-guest-icon {
    font-size: 32px;
    opacity: 0.6;
}

.my-rank-guest-text {
    color: rgba(200, 180, 255, 0.7);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

/* Header section */
.my-rank-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    position: relative;
}

.my-rank-header--champion {
    background: linear-gradient(135deg,
        rgba(255, 215, 0, 0.15) 0%,
        rgba(255, 170, 0, 0.1) 100%);
    border-bottom-color: rgba(255, 215, 0, 0.3);
}

.my-rank-header--gold {
    background: linear-gradient(135deg,
        rgba(255, 200, 100, 0.1) 0%,
        rgba(200, 150, 50, 0.08) 100%);
}

.my-rank-header--silver {
    background: linear-gradient(135deg,
        rgba(192, 192, 220, 0.1) 0%,
        rgba(150, 150, 180, 0.08) 100%);
}

.my-rank-avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: linear-gradient(145deg,
        rgba(168, 85, 247, 0.3),
        rgba(139, 92, 246, 0.2));
    border: 2px solid rgba(168, 85, 247, 0.5);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.my-rank-user-info {
    flex: 1;
}

.my-rank-name {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 2px;
}

.my-rank-title {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(200, 180, 255, 0.8);
    letter-spacing: 0.5px;
}

.my-rank-crown {
    font-size: 28px;
    filter: drop-shadow(0 3px 8px rgba(255, 215, 0, 0.5));
    animation: crownFloat 3s ease-in-out infinite;
}

@keyframes crownFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

/* Stats grid */
.my-rank-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    background: rgba(0, 0, 0, 0.3);
}

.my-rank-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px;
    background: rgba(30, 15, 50, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.my-rank-stat:hover {
    background: rgba(168, 85, 247, 0.2);
    transform: translateY(-2px);
}

.my-rank-stat--champion {
    background: linear-gradient(180deg,
        rgba(255, 215, 0, 0.2) 0%,
        rgba(255, 170, 0, 0.1) 100%);
}

.my-rank-stat--champion::after {
    content: '👑';
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 10px;
}

.my-rank-stat--gold {
    background: linear-gradient(180deg,
        rgba(255, 200, 100, 0.15) 0%,
        rgba(200, 150, 50, 0.08) 100%);
}

.my-rank-stat--silver {
    background: linear-gradient(180deg,
        rgba(192, 192, 220, 0.12) 0%,
        rgba(150, 150, 180, 0.06) 100%);
}

.my-rank-stat-icon {
    font-size: 20px;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.my-rank-stat-content {
    text-align: center;
    width: 100%;
}

.my-rank-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(200, 180, 255, 0.6);
    margin-bottom: 4px;
}

.my-rank-stat-rank {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.my-rank-stat--champion .my-rank-stat-rank {
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.my-rank-stat--gold .my-rank-stat-rank {
    color: #ffcc66;
}

.my-rank-stat--silver .my-rank-stat-rank {
    color: #c0c0e0;
}

/* Progress bar to next rank */
.my-rank-stat-progress {
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.my-rank-stat-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.my-rank-stat-diff {
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    color: rgba(200, 180, 255, 0.5);
    margin-top: 4px;
    white-space: nowrap;
}

.my-rank-stat-diff--champion {
    color: #ffd700 !important;
    font-weight: 600;
}

/* Inactive state - no data */
.my-rank-stat--inactive {
    opacity: 0.5;
}

.my-rank-stat-rank--none {
    color: rgba(200, 180, 255, 0.4);
    font-size: 14px;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .my-rank-stats {
        grid-template-columns: repeat(5, 1fr);
    }

    .my-rank-stat {
        padding: 10px 4px;
    }

    .my-rank-stat-icon {
        font-size: 16px;
    }

    .my-rank-stat-label {
        font-size: 7px;
    }

    .my-rank-stat-rank {
        font-size: 14px;
    }

    .my-rank-stat-diff {
        font-size: 7px;
    }

    .my-rank-avatar {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .my-rank-name {
        font-size: 15px;
    }
}

/* ===== LEADERBOARD TABS (6 Sub-tabs - Scrollable) ===== */
.sunwell-rank-tabs-wrapper {
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.sunwell-rank-tabs-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.sunwell-rank-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.sunwell-rank-tabs--scrollable {
    display: flex;
    gap: 8px;
    min-width: max-content;
    padding-bottom: 4px;
    margin-bottom: 0;
}

.sunwell-rank-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.15), rgba(26, 0, 51, 0.25));
    border: 1px solid rgba(153, 50, 204, 0.3);
    border-radius: 8px;
    color: var(--void-pink);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 65px;
    flex-shrink: 0;
}

.sunwell-rank-tab:hover {
    border-color: var(--void-pink);
    transform: translateY(-2px);
}

.sunwell-rank-tab--active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 170, 0, 0.15));
    border-color: var(--sunwell-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.sunwell-rank-tab-icon {
    font-size: 18px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.sunwell-rank-tab-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sunwell-rank-tab--active .sunwell-rank-tab-label {
    color: var(--sunwell-gold);
}

/* ===== POWER SCORE LEADERBOARD ===== */
.sunwell-rank-list--power .sunwell-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sunwell-rank-item--power {
    position: relative;
}

.sunwell-rank-item--top1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 170, 0, 0.1)) !important;
    border-color: rgba(255, 215, 0, 0.4) !important;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

.sunwell-rank-item--top2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(169, 169, 169, 0.1)) !important;
    border-color: rgba(192, 192, 192, 0.4) !important;
}

.sunwell-rank-item--top3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(184, 115, 51, 0.1)) !important;
    border-color: rgba(205, 127, 50, 0.4) !important;
}

.sunwell-rank-player {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sunwell-rank-class {
    font-size: 16px;
    flex-shrink: 0;
}

.sunwell-rank-score {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--sunwell-gold);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

/* Power Score Legend */
.sunwell-rank-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 12px;
    margin-top: 16px;
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.4), rgba(13, 0, 26, 0.5));
    border: 1px solid rgba(153, 50, 204, 0.2);
    border-radius: 8px;
    justify-content: center;
}

.sunwell-rank-legend-item {
    font-size: 11px;
    color: rgba(200, 180, 230, 0.7);
    white-space: nowrap;
}

/* Mobile: Smaller tabs on small screens */
@media (max-width: 480px) {
    .sunwell-rank-tabs--scrollable {
        gap: 6px;
    }

    .sunwell-rank-tab {
        padding: 8px 10px;
        min-width: 58px;
    }

    .sunwell-rank-tab-icon {
        font-size: 16px;
    }

    .sunwell-rank-tab-label {
        font-size: 9px;
    }

    .sunwell-rank-score {
        font-size: 12px;
    }

    .sunwell-rank-legend {
        gap: 6px 10px;
        padding: 10px;
    }

    .sunwell-rank-legend-item {
        font-size: 10px;
    }
}

/* ===== POWER CHAMPIONS CARDS ===== */
.power-champions-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 20px;
}

/* Make 5th card span full width */
.power-champions-grid > .champion-card:nth-child(5) {
    grid-column: 1 / -1 !important;
}

/* Power Champions specific card styles - override any conflicting styles */
.power-champions-grid > .champion-card {
    position: relative;
    padding: 16px 12px;
    border-radius: 12px;
    text-align: center;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: default;
    /* Reset any conflicting styles from mission-table */
    width: auto !important;
    flex-shrink: unset !important;
    min-width: unset !important;
}

.champion-card:hover {
    transform: translateY(-2px);
}

/* Glow effect behind card */
.champion-glow {
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    opacity: 0.6;
    z-index: 0;
    animation: championPulse 3s ease-in-out infinite;
}

@keyframes championPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.02); }
}

/* Badge in corner */
.champion-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 14px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    z-index: 3;
}

/* Main icon */
.champion-icon {
    font-size: 32px;
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
}

/* Title */
.champion-title {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
}

/* Player name */
.champion-name {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 2;
}

/* Value */
.champion-value {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    position: relative;
    z-index: 2;
}

/* Empty state */
.champion-empty {
    font-size: 12px;
    opacity: 0.5;
    font-style: italic;
    position: relative;
    z-index: 2;
}

/* ===== THEME 1: Overall Power - Purple/Gold Magical ===== */
.champion-card--overall {
    background: linear-gradient(145deg,
        rgba(138, 43, 226, 0.25) 0%,
        rgba(75, 0, 130, 0.35) 50%,
        rgba(255, 215, 0, 0.15) 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow:
        0 4px 20px rgba(138, 43, 226, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.champion-glow--overall {
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
}
.champion-card--overall .champion-title {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.champion-card--overall .champion-name {
    color: #e8d5ff;
}
.champion-card--overall .champion-value {
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

/* ===== THEME 2: Gear Master - Metallic Steel ===== */
.champion-card--gear {
    background: linear-gradient(145deg,
        rgba(120, 140, 160, 0.3) 0%,
        rgba(70, 90, 110, 0.4) 50%,
        rgba(192, 192, 192, 0.2) 100%);
    border: 2px solid rgba(192, 192, 192, 0.5);
    box-shadow:
        0 4px 20px rgba(100, 120, 140, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.champion-glow--gear {
    background: radial-gradient(ellipse at center, rgba(192, 192, 192, 0.25) 0%, transparent 70%);
}
.champion-card--gear .champion-title {
    color: #c0c0c0;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.5);
}
.champion-card--gear .champion-name {
    color: #d4e5f7;
}
.champion-card--gear .champion-value {
    color: #87ceeb;
    text-shadow: 0 0 12px rgba(135, 206, 235, 0.5);
}

/* ===== THEME 3: Army General - War Red ===== */
.champion-card--army {
    background: linear-gradient(145deg,
        rgba(180, 50, 50, 0.3) 0%,
        rgba(100, 20, 20, 0.4) 50%,
        rgba(255, 100, 50, 0.15) 100%);
    border: 2px solid rgba(255, 80, 80, 0.5);
    box-shadow:
        0 4px 20px rgba(180, 50, 50, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.champion-glow--army {
    background: radial-gradient(ellipse at center, rgba(255, 80, 80, 0.25) 0%, transparent 70%);
}
.champion-card--army .champion-title {
    color: #ff6b6b;
    text-shadow: 0 0 8px rgba(255, 100, 100, 0.5);
}
.champion-card--army .champion-name {
    color: #ffd4d4;
}
.champion-card--army .champion-value {
    color: #ff8c42;
    text-shadow: 0 0 12px rgba(255, 140, 66, 0.5);
}

/* ===== THEME 4: Wealth - Gold Treasure ===== */
.champion-card--wealth {
    background: linear-gradient(145deg,
        rgba(255, 200, 50, 0.25) 0%,
        rgba(180, 130, 20, 0.35) 50%,
        rgba(255, 215, 0, 0.2) 100%);
    border: 2px solid rgba(255, 200, 50, 0.5);
    box-shadow:
        0 4px 20px rgba(255, 180, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.champion-glow--wealth {
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
}
.champion-card--wealth .champion-title {
    color: #ffc107;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}
.champion-card--wealth .champion-name {
    color: #fff8e1;
}
.champion-card--wealth .champion-value {
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

/* ===== THEME 5: Win Champion - Trophy Green ===== */
.champion-card--wins {
    background: linear-gradient(145deg,
        rgba(50, 180, 100, 0.25) 0%,
        rgba(20, 100, 60, 0.35) 50%,
        rgba(100, 255, 150, 0.15) 100%);
    border: 2px solid rgba(100, 220, 150, 0.5);
    box-shadow:
        0 4px 20px rgba(50, 180, 100, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.champion-glow--wins {
    background: radial-gradient(ellipse at center, rgba(100, 255, 150, 0.25) 0%, transparent 70%);
}
.champion-card--wins .champion-title {
    color: #4ade80;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}
.champion-card--wins .champion-name {
    color: #d4f7e4;
}
.champion-card--wins .champion-value {
    color: #22c55e;
    text-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

/* ===== Mobile Optimizations ===== */
@media (max-width: 480px) {
    .power-champions-grid {
        gap: 8px;
    }

    .champion-card {
        padding: 12px 8px;
    }

    .champion-icon {
        font-size: 26px;
        margin-bottom: 4px;
    }

    .champion-title {
        font-size: 9px;
        margin-bottom: 4px;
    }

    .champion-name {
        font-size: 11px;
    }

    .champion-value {
        font-size: 13px;
    }

    .champion-badge {
        font-size: 12px;
        top: 4px;
        right: 4px;
    }

    /* Disable animations on mobile for performance */
    .champion-glow {
        animation: none;
        opacity: 0.5;
    }
}

/* Very small screens - single column */
@media (max-width: 340px) {
    .power-champions-grid {
        grid-template-columns: 1fr;
    }

    .power-champions-grid .champion-card:nth-child(5) {
        grid-column: auto;
    }
}

/* ===== LIVE FEED (Bet History) ===== */
.sunwell-live-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 4px;
}

.sunwell-feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.15), rgba(26, 0, 51, 0.25));
    border: 1px solid rgba(153, 50, 204, 0.25);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sunwell-feed-item:hover {
    transform: translateX(2px);
    border-color: var(--void-pink);
}

.sunwell-feed-item--win {
    border-left: 3px solid var(--bio-green);
}

.sunwell-feed-item--loss {
    border-left: 3px solid var(--blood-red);
}

.sunwell-feed-icon {
    font-size: 24px;
    min-width: 32px;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.sunwell-feed-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sunwell-feed-user {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--sunwell-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sunwell-feed-game {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: var(--void-pink);
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sunwell-feed-amount {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.sunwell-feed-amount--win {
    color: var(--bio-green);
    text-shadow:
        0 0 8px rgba(0, 255, 127, 0.4),
        0 1px 2px rgba(0, 0, 0, 0.8);
}

.sunwell-feed-amount--loss {
    color: var(--blood-crimson);
    text-shadow:
        0 0 8px rgba(220, 20, 60, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Mobile optimization for live feed */
@media (max-width: 480px) {
    .sunwell-live-feed {
        max-height: 500px;
    }

    .sunwell-feed-item {
        padding: 10px;
        gap: 10px;
    }

    .sunwell-feed-icon {
        font-size: 20px;
        min-width: 28px;
    }

    .sunwell-feed-user {
        font-size: 13px;
    }

    .sunwell-feed-game {
        font-size: 10px;
    }

    .sunwell-feed-amount {
        font-size: 14px;
    }
}

/* Actions Container */
.sunwell-rank-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.sunwell-rank-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--void-purple), var(--void-indigo));
    border: 2px solid var(--sunwell-gold);
    border-radius: 12px;
    color: var(--sunwell-light);
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 215, 0, 0.2);
}

.sunwell-rank-button:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, var(--void-indigo), var(--void-purple));
    border-color: var(--sunwell-amber);
    box-shadow:
        0 6px 16px rgba(255, 215, 0, 0.4),
        inset 0 1px 3px rgba(255, 215, 0, 0.3);
}

.sunwell-rank-button:active {
    transform: translateY(0) scale(0.98);
}

.sunwell-button-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.sunwell-rank-button:hover .sunwell-button-arrow {
    transform: translateX(4px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sunwell-rank-view {
        padding: 8px 12px 100px; /* Consistent reduced top padding on mobile */
    }

    .sunwell-rank-title {
        font-size: 24px;
    }

    .sunwell-rank-subtitle {
        font-size: 12px;
    }

    .sunwell-section-title-rank {
        font-size: 16px;
    }

    .sunwell-rank-item {
        padding: 12px 14px;
        gap: 12px;
    }

    .sunwell-rank-medal {
        font-size: 24px;
        min-width: 32px;
    }

    .sunwell-rank-name {
        font-size: 14px;
    }

    .sunwell-rank-points {
        font-size: 16px;
    }

    .sunwell-rank-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .sunwell-rank-title {
        font-size: 20px;
    }

    .sunwell-rank-item {
        padding: 10px 12px;
        gap: 10px;
    }

    .sunwell-rank-medal {
        font-size: 20px;
        min-width: 28px;
    }

    .sunwell-rank-name {
        font-size: 13px;
    }

    .sunwell-rank-points {
        font-size: 14px;
    }
}

/* ============================================
   NETFLIX-STYLE GAME CAROUSEL
   Mobile-optimized horizontal scroll sections
   ALL CARDS SAME SIZE - Clean uniform grid
   ============================================ */

/* Section Container */
.game-carousel-section {
    margin-bottom: 24px;
}

/* Section Header */
.carousel-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    margin-bottom: 12px;
}

.carousel-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-section-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
}

.carousel-section-title h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sunwell-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.carousel-section-count {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
}

/* See All Button */
.carousel-see-all {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--bio-cyan);
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.carousel-see-all:hover,
.carousel-see-all:active {
    background: rgba(0, 206, 209, 0.15);
}

.carousel-arrow {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.carousel-see-all:hover .carousel-arrow {
    transform: translateX(3px);
}

/* Carousel Track */
.game-carousel-track {
    width: 100%;
}

/* Carousel Scroll - Simple horizontal scroll */
.game-carousel-scroll {
    display: flex;
    gap: 10px;
    padding: 4px 16px 12px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Remove scroll snap to prevent offset issues */
}

.game-carousel-scroll::-webkit-scrollbar {
    display: none;
}

/* ===== GAME CARD - UNIFORM SIZE ===== */
.carousel-game-card {
    /* FIXED dimensions - same for ALL cards */
    flex: 0 0 120px;
    width: 120px;
    height: 160px;
    min-width: 120px;
    max-width: 120px;

    border-radius: 10px;
    overflow: hidden;
    background: rgba(13, 0, 26, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    /* Flex column layout */
    display: flex;
    flex-direction: column;
}

.carousel-game-card:active {
    transform: scale(0.97);
}

/* Locked card styles */
.carousel-game-card.locked {
    opacity: 0.65;
    filter: grayscale(40%);
}

.carousel-game-card.coming-soon {
    opacity: 0.55;
}

/* ===== CARD IMAGE - FIXED HEIGHT ===== */
.carousel-card-image {
    position: relative;
    width: 100%;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
}

.carousel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(13, 0, 26, 0.8) 100%);
    pointer-events: none;
}

/* Status Badge */
.carousel-status-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.75rem;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.6);
}

.carousel-status-badge.hot {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9), rgba(255, 170, 0, 0.9));
}

.carousel-status-badge.locked {
    background: rgba(80, 80, 80, 0.8);
}

.carousel-status-badge.coming {
    background: rgba(0, 180, 180, 0.7);
}

/* Rarity Bar at bottom of image */
.carousel-rarity-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
}

.carousel-rarity-bar.legendary-light,
.carousel-rarity-bar.legendary-void {
    background: var(--sunwell-gold);
    box-shadow: 0 0 6px var(--sunwell-gold);
}

.carousel-rarity-bar.epic-light,
.carousel-rarity-bar.epic-void {
    background: var(--void-pink);
    box-shadow: 0 0 5px var(--void-pink);
}

.carousel-rarity-bar.rare {
    background: var(--bio-cyan);
    box-shadow: 0 0 4px var(--bio-cyan);
}

.carousel-rarity-bar.common {
    background: rgba(150, 150, 150, 0.5);
}

/* ===== CARD INFO - FIXED HEIGHT ===== */
.carousel-card-info {
    padding: 8px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-card-title {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.carousel-play-hint {
    font-size: 0.55rem;
    color: var(--bio-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carousel-play-hint.locked {
    color: rgba(255, 100, 100, 0.8);
}

.carousel-play-hint.coming {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   CATEGORY MODAL - Full Screen Grid View
   ============================================ */

.category-games-modal {
    position: fixed;
    inset: 0;
    z-index: 50000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.category-games-modal.open {
    opacity: 1;
    visibility: visible;
}

.category-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 0, 26, 0.95);
    backdrop-filter: blur(10px);
}

.category-modal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

.category-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    margin-bottom: 20px;
}

.category-modal-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--sunwell-glow);
    margin: 0;
}

.category-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.category-modal-close:hover {
    background: rgba(255, 100, 100, 0.3);
    border-color: rgba(255, 100, 100, 0.5);
}

.category-modal-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
}

/* Responsive adjustments for carousel */
@media (min-width: 360px) {
    .carousel-game-card {
        flex: 0 0 130px;
        width: 130px;
        min-width: 130px;
        max-width: 130px;
        height: 170px;
    }
    .carousel-card-image {
        height: 90px;
    }
    .carousel-card-title {
        font-size: 0.75rem;
    }
}

@media (min-width: 480px) {
    .carousel-game-card {
        flex: 0 0 145px;
        width: 145px;
        min-width: 145px;
        max-width: 145px;
        height: 185px;
    }
    .carousel-card-image {
        height: 100px;
    }
    .game-carousel-scroll {
        gap: 12px;
    }
    .carousel-section-title h3 {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .carousel-game-card {
        flex: 0 0 160px;
        width: 160px;
        min-width: 160px;
        max-width: 160px;
        height: 200px;
    }
    .carousel-card-image {
        height: 115px;
    }
    .game-carousel-scroll {
        gap: 16px;
        padding: 6px 24px 16px 24px;
    }
    .category-modal-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}
