/* ============ LOBBY PAGE STYLES ============ */

.main-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px 60px;
    min-height: 100vh;
}

/* Planet Circle */
.planet-circle {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 30px;
}

.planet-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(30, 20, 50, 0.9), rgba(10, 5, 20, 0.95));
    border: 2px solid rgba(150, 130, 180, 0.3);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.planet-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.planet-stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.planet-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 40px rgba(150, 130, 180, 0.15), 
                0 0 80px rgba(150, 130, 180, 0.05),
                inset 0 0 40px rgba(150, 130, 180, 0.05);
    pointer-events: none;
}

/* Title */
.main-title {
    font-size: 2.4em;
    font-weight: 900;
    color: #FFD700;
    text-align: center;
    margin-bottom: 8px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    line-height: 1.4;
}

.subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1em;
    margin-bottom: 24px;
    text-align: center;
}

/* Feature Pills */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.pill {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pill i {
    color: #FFD700;
    font-size: 0.85em;
}

/* Game Card */
.game-card {
    width: 100%;
    max-width: 420px;
    background: rgba(30, 15, 60, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px 28px;
    margin-bottom: 30px;
}

.card-title {
    text-align: center;
    font-size: 1.5em;
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 14px;
}

.separator {
    text-align: center;
    margin: 18px 0;
    position: relative;
}

.separator::before,
.separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.separator::before {
    right: 0;
}

.separator::after {
    left: 0;
}

.separator span {
    background: rgba(30, 15, 60, 0.6);
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9em;
}

/* Active Rooms */
.active-rooms {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 30px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

#roomCount {
    color: #FFD700;
    font-weight: 700;
}

/* How to Play */
.how-to-play {
    width: 100%;
    max-width: 700px;
    margin-top: 20px;
}

.how-to-play h3 {
    text-align: center;
    color: #FFD700;
    font-size: 1.3em;
    margin-bottom: 20px;
}

.how-to-play h3 i {
    margin-left: 8px;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.rule-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.rule-icon {
    font-size: 1.6em;
    min-width: 40px;
    text-align: center;
}

.rule-text {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 480px) {
    .main-title {
        font-size: 1.7em;
    }
    
    .game-card {
        padding: 24px 20px;
        margin: 0 10px 30px;
    }
    
    .planet-circle {
        width: 130px;
        height: 130px;
    }
    
    .feature-pills {
        gap: 6px;
    }
    
    .pill {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}
