: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);
}

/* ============================================
   REGISTRATION SYSTEM
   ============================================ */

.registration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 1, 24, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.registration-container {
    max-width: 800px;
    width: 100%;
    background: var(--bg-card);
    border-radius: 30px;
    border: 2px solid var(--primary-purple);
    box-shadow: var(--glow-purple);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.registration-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(139, 92, 246, 0.1),
        transparent 30%
    );
    animation: rotate 8s linear infinite;
}

.registration-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.reg-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reg-logo .logo-ars {
    color: var(--primary-purple);
    text-shadow: var(--glow-purple);
}

.reg-logo .logo-docendi {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.registration-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.reg-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.registration-form {
    position: relative;
    z-index: 1;
}

.form-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.section-title-form {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-purple);
}

.section-icon {
    font-size: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem 1rem;
    background: rgba(26, 11, 46, 0.6);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    background: rgba(26, 11, 46, 0.9);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: var(--primary-green);
}

.help-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.validation-message {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

.validation-message.error {
    color: #ef4444;
}

.validation-message.success {
    color: var(--primary-green);
}

.terms-box {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    margin-bottom: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.terms-box::-webkit-scrollbar {
    width: 8px;
}

.terms-box::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.terms-box::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 10px;
}

.terms-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.terms-text strong {
    color: var(--primary-gold);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.checkbox-group input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--primary-purple);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.checkbox-label {
    cursor: pointer;
    font-weight: 500;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn-submit {
    padding: 1.2rem 3rem;
    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.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit::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;
}

.btn-submit:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-purple);
}

.btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-text,
.btn-icon {
    position: relative;
    z-index: 1;
}

/* User info in header */
.user-info-header {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.welcome-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.welcome-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.username-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* ============================================
   END REGISTRATION SYSTEM
   ============================================ */

/* ============================================
   REGISTRATION SCREEN STYLES
   ============================================ */

.registration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 1, 24, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 2rem;
    overflow-y: auto;
}

.registration-container {
    background: var(--bg-card);
    border: 2px solid var(--primary-purple);
    border-radius: 20px;
    padding: 3rem;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--glow-purple), 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.registration-header {
    text-align: center;
    margin-bottom: 2rem;
}

.reg-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.reg-logo .logo-ars {
    color: var(--primary-purple);
    text-shadow: var(--glow-purple);
}

.reg-logo .logo-docendi {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.registration-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-cyan);
}

.reg-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.section-title-form {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-icon {
    font-size: 1.5rem;
}

/* Form Rows and Groups */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: rgba(239, 68, 68, 0.5);
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: rgba(16, 185, 129, 0.5);
}

.help-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.validation-message {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.validation-message.error {
    color: #ef4444;
}

.validation-message.success {
    color: #10b981;
}

/* Terms and Conditions */
.terms-notice {
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid var(--primary-purple);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.terms-notice h4 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.terms-notice p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.terms-checkbox:hover {
    border-color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.05);
}

.terms-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--primary-purple);
}

.terms-checkbox label {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}

/* Submit Button */
.submit-button-container {
    margin-top: 2rem;
}

.submit-button {
    width: 100%;
    padding: 1.2rem;
    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.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--glow-purple);
}

.submit-button:active:not(:disabled) {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-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;
}

.submit-button:hover:not(:disabled)::before {
    width: 400px;
    height: 400px;
}

/* Responsive adjustments for registration */
@media (max-width: 768px) {
    .registration-container {
        padding: 2rem 1.5rem;
        max-height: 95vh;
    }
    
    .reg-logo {
        font-size: 1.5rem;
    }
    
    .registration-header h2 {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .registration-overlay {
        padding: 1rem;
    }
    
    .registration-container {
        padding: 1.5rem 1rem;
    }
    
    .section-title-form {
        font-size: 1rem;
    }
}

/* Username stat card style */
.stat-card.username {
    border-color: var(--primary-cyan);
}

.stat-card.username:hover {
    box-shadow: var(--glow-cyan);
}

.username .stat-value {
    color: var(--primary-cyan);
    font-size: 1.2rem;
}

/* ============================================
   END REGISTRATION STYLES
   ============================================ */

* {
    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;
    gap: 2rem;
}

.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;
    }
    
    .user-info-header {
        width: 100%;
        align-items: center;
    }
    
    .welcome-user {
        align-items: center;
    }

    .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;
    }
    
    /* Registration responsive */
    .registration-container {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .reg-logo {
        font-size: 2rem;
    }
    
    .registration-header h2 {
        font-size: 1.5rem;
    }
}

@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;
    }
    
    .username-display {
        font-size: 1.2rem;
    }
    
    .welcome-text {
        font-size: 0.8rem;
    }
    
    /* Registration responsive */
    .registration-container {
        padding: 1.5rem 1rem;
    }
    
    .form-section {
        padding: 1.5rem 1rem;
    }
    
    .reg-logo {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .registration-header h2 {
        font-size: 1.3rem;
    }
    
    .btn-submit {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}