:root {
    /* Color palette - Neon Casino meets Education */
    --primary-purple: #8b5cf6;
    --primary-cyan: #06b6d4;
    --primary-pink: #ec4899;
    --primary-gold: #fbbf24;
    --primary-green: #10b981;
    
    --bg-dark: #0a0118;
    --bg-card: #1a0b2e;
    --bg-card-hover: #2d1b4e;
    
    --text-primary: #ffffff;
    --text-secondary: #a78bfa;
    --text-muted: #9ca3af;
    
    /* Neon glows */
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.3);
    --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.5), 0 0 40px rgba(6, 182, 212, 0.3);
    --glow-pink: 0 0 20px rgba(236, 72, 153, 0.5), 0 0 40px rgba(236, 72, 153, 0.3);
    --glow-gold: 0 0 20px rgba(251, 191, 36, 0.5), 0 0 40px rgba(251, 191, 36, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Animated background particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-dark) 0%, #1a0a2e 100%);
}

.particles-container::before,
.particles-container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: float 8s infinite ease-in-out;
}

.particles-container::before {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: -2s;
}

.particles-container::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    bottom: 20%;
    right: 10%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* Main container */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 1.5rem 2rem;
    background: rgba(26, 11, 46, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.logo-section {
    position: relative;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    filter: blur(40px);
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    display: flex;
    gap: 1rem;
    text-shadow: var(--glow-purple);
    position: relative;
    z-index: 1;
}

.logo-ars {
    color: var(--primary-purple);
    animation: glow-pulse 2s infinite alternate;
}

.logo-docendi {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes glow-pulse {
    from { text-shadow: var(--glow-purple); }
    to { text-shadow: 0 0 30px rgba(139, 92, 246, 0.8), 0 0 60px rgba(139, 92, 246, 0.5); }
}

/* User stats */
.user-stats {
    display: flex;
    gap: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(26, 11, 46, 0.8);
    border-radius: 15px;
    border: 2px solid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card.credits {
    border-color: var(--primary-gold);
}

.stat-card.xp {
    border-color: var(--primary-cyan);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stat-card.credits:hover {
    box-shadow: var(--glow-gold);
}

.stat-card.xp:hover {
    box-shadow: var(--glow-cyan);
}

.stat-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px currentColor);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.credits .stat-value {
    color: var(--primary-gold);
}

.xp .stat-value {
    color: var(--primary-cyan);
}

/* Daily Mission */
.daily-mission {
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid var(--primary-pink);
    position: relative;
    overflow: hidden;
    animation: mission-glow 2s infinite alternate;
}

@keyframes mission-glow {
    from { box-shadow: 0 0 20px rgba(236, 72, 153, 0.3); }
    to { box-shadow: var(--glow-pink); }
}

.mission-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.mission-icon {
    font-size: 3rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.mission-text h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-pink);
}

.mission-text p {
    color: var(--text-secondary);
}

.mission-progress {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    width: 200px;
    height: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-pink), var(--primary-purple));
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--primary-pink);
}

.progress-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-pink);
}

/* Section titles */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-primary);
}

.title-decoration {
    color: var(--primary-purple);
    animation: spin 4s linear infinite;
    display: inline-block;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Cognitive Rooms Grid */
.cognitive-rooms {
    margin-bottom: 3rem;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.room-card {
    position: relative;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 2px solid;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
}

.room-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, currentColor, transparent 30%);
    opacity: 0;
    transition: opacity 0.5s;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.room-card:hover::before {
    opacity: 0.3;
}

.room-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.4s;
}

.room-card:hover .room-glow {
    opacity: 1;
}

.room-card.memory {
    border-color: var(--primary-purple);
}

.room-card.memory .room-glow {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.6) 0%, transparent 70%);
}

.room-card.reasoning {
    border-color: var(--primary-cyan);
}

.room-card.reasoning .room-glow {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.6) 0%, transparent 70%);
}

.room-card.reading {
    border-color: var(--primary-green);
}

.room-card.reading .room-glow {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.6) 0%, transparent 70%);
}

.room-card.attention {
    border-color: var(--primary-pink);
}

.room-card.attention .room-glow {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.6) 0%, transparent 70%);
}

.room-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: var(--bg-card-hover);
}

.room-card.memory:hover {
    box-shadow: var(--glow-purple);
}

.room-card.reasoning:hover {
    box-shadow: var(--glow-cyan);
}

.room-card.reading:hover {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5), 0 0 40px rgba(16, 185, 129, 0.3);
}

.room-card.attention:hover {
    box-shadow: var(--glow-pink);
}

.room-header {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.room-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px currentColor);
}

.room-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.room-description {
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.room-stats {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.room-level {
    padding: 0.3rem 0.8rem;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    border: 1px solid var(--primary-purple);
    color: var(--primary-purple);
    font-weight: 600;
}

.room-games {
    color: var(--text-muted);
}

.room-button {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    border: none;
    border-radius: 15px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.room-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.6s, height 0.6s;
}

.room-button:hover::before {
    width: 300px;
    height: 300px;
}

.room-button span {
    position: relative;
    z-index: 1;
}

.room-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

.room-button:active {
    transform: scale(0.98);
}

/* Bottom section */
.bottom-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.subsection-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subsection-title .icon {
    font-size: 1.5rem;
}

/* Special Challenges */
.special-challenges {
    padding: 2rem;
    background: rgba(26, 11, 46, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.challenge-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.challenge-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.challenge-item:not(.locked):hover {
    transform: translateX(10px);
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--primary-gold);
}

.challenge-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.challenge-icon {
    font-size: 1.5rem;
}

.challenge-name {
    flex: 1;
    font-weight: 600;
}

.challenge-requirement {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.challenge-reward {
    font-weight: 700;
    color: var(--primary-gold);
}

/* Ranking */
.ranking-section {
    padding: 2rem;
    background: rgba(26, 11, 46, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(6, 182, 212, 0.3);
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.rank-item:hover {
    transform: translateX(5px);
}

.rank-position {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    border: 2px solid var(--primary-purple);
}

.rank-item.rank-1 .rank-position {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.rank-item.rank-2 .rank-position {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #000;
    border-color: #c0c0c0;
}

.rank-item.rank-3 .rank-position {
    background: linear-gradient(135deg, #cd7f32, #e8a87c);
    color: #000;
    border-color: #cd7f32;
}

.rank-item.current-user {
    border-color: var(--primary-cyan);
    background: rgba(6, 182, 212, 0.1);
}

.rank-item.current-user .rank-position {
    border-color: var(--primary-cyan);
    background: rgba(6, 182, 212, 0.3);
}

.rank-name {
    flex: 1;
    font-weight: 600;
}

.rank-score {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--primary-cyan);
}

.view-full-ranking {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 2px solid var(--primary-cyan);
    border-radius: 10px;
    color: var(--primary-cyan);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-full-ranking:hover {
    background: var(--primary-cyan);
    color: var(--bg-dark);
    box-shadow: var(--glow-cyan);
}

/* Click effects */
.click-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.click-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    animation: particle-burst 0.8s ease-out forwards;
}

@keyframes particle-burst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }

    .header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .logo {
        font-size: 1.8rem;
    }

    .user-stats {
        width: 100%;
        justify-content: space-around;
    }

    .mission-content {
        flex-direction: column;
        text-align: center;
    }

    .mission-progress {
        margin-left: 0;
        flex-direction: column;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .bottom-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.3rem;
    }

    .stat-card {
        padding: 0.8rem 1rem;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
/* ============================================
   WANTED POSTER - Estilo Viejo Oeste
   ============================================ */

.wanted-poster {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-2deg);
    z-index: 10;
    width: 200px;
    height: 250px;
    pointer-events: none;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8));
    animation: posterSway 4s ease-in-out infinite;
}

@keyframes posterSway {
    0%, 100% { transform: translate(-50%, -50%) rotate(-2deg); }
    50% { transform: translate(-50%, -50%) rotate(2deg); }
}

.poster-content {
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, 
            #f4e4c1 0%, 
            #e8d4a8 25%, 
            #dfc799 50%, 
            #d4ba89 75%, 
            #c9ad78 100%
        );
    border: 3px solid #8b6f47;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    position: relative;
    box-shadow: 
        inset 0 0 40px rgba(0, 0, 0, 0.15),
        inset 0 0 80px rgba(139, 111, 71, 0.1);
}

/* Textura de papel envejecido */
.poster-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 111, 71, 0.03) 2px,
            rgba(139, 111, 71, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(139, 111, 71, 0.03) 2px,
            rgba(139, 111, 71, 0.03) 4px
        );
    opacity: 0.4;
    pointer-events: none;
}

/* Manchas de envejecimiento */
.poster-content::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 15%;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(139, 111, 71, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.poster-header {
    font-family: 'Orbitron', serif;
    font-size: 1.2rem;
    font-weight: 900;
    text-align: center;
    color: #4a3520;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #8b6f47;
    padding-bottom: 0.5rem;
}

.poster-soon {
    font-family: 'Orbitron', serif;
    font-size: 1.5rem;
    font-weight: 900;
    text-align: center;
    color: #8b4513;
    letter-spacing: 5px;
    margin: 2rem 0;
    text-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.2),
        -1px -1px 0px rgba(255, 255, 255, 0.3);
    transform: scaleY(1.2);
    line-height: 1;
}

.poster-footer {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    color: #6b5434;
    margin-top: 1rem;
    border-top: 1px solid #8b6f47;
    padding-top: 0.5rem;
}

/* Tachuelas/Clavos en las esquinas */
.poster-nail {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #c0c0c0 0%, #808080 50%, #404040 100%);
    border-radius: 50%;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.5);
    z-index: 11;
}

.poster-nail::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #606060;
    border-radius: 50%;
}

.nail-top-left {
    top: -6px;
    left: -6px;
}

.nail-top-right {
    top: -6px;
    right: -6px;
}

.nail-bottom-left {
    bottom: -6px;
    left: -6px;
}

.nail-bottom-right {
    bottom: -6px;
    right: -6px;
}

/* Bordes desgastados/rasgados */
.poster-content {
    clip-path: polygon(
        2% 0%, 
        98% 1%, 
        100% 3%, 
        99% 97%, 
        97% 100%, 
        3% 99%, 
        0% 96%, 
        1% 2%
    );
}

/* Efecto hover - el cartel se acerca */
.room-card:hover .wanted-poster {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.05);
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.9));
}

/* Deshabilitar botón cuando está en desarrollo */
.room-card:has(.wanted-poster) .room-button {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.room-card:has(.wanted-poster) {
    opacity: 0.85;
}

/* Variante para carteles más pequeños (opcional) */
.wanted-poster.small {
    width: 150px;
    height: 200px;
}

.wanted-poster.small .poster-soon {
    font-size: 2rem;
    margin: 1.5rem 0;
}

.wanted-poster.small .poster-header {
    font-size: 1rem;
}

.wanted-poster.small .poster-footer {
    font-size: 0.8rem;
}

/* ============================================
   END WANTED POSTER
   ============================================ */