/* ==================== 大厅界面 ==================== */
.lobby-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 50%, #0a1628 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    overflow-y: auto;
}

.lobby-container {
    background: linear-gradient(145deg, rgba(30, 45, 74, 0.95) 0%, rgba(21, 34, 56, 0.95) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* 游戏选择大厅 */
.lobby-header {
    text-align: center;
    margin-bottom: 35px;
}

.lobby-logo {
    font-size: 64px;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.lobby-main-title {
    font-size: 36px;
    background: linear-gradient(135deg, #ffd700 0%, #ff9500 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 3px;
}

.lobby-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* 游戏卡片 */
.game-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.game-card {
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s;
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateX(10px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.game-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.game-card.disabled:hover {
    transform: none;
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: none;
}

.game-card-icon {
    font-size: 48px;
    margin-right: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 150, 0, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.game-card-content {
    flex: 1;
}

.game-card-title {
    font-size: 22px;
    color: #fff;
    margin-bottom: 5px;
    font-weight: bold;
}

.game-card-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.game-card-tags {
    display: flex;
    gap: 8px;
}

.game-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.game-tag.hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
}

.game-tag.coming {
    background: linear-gradient(135deg, #636e72 0%, #2d3436 100%);
    color: rgba(255, 255, 255, 0.7);
}

.game-card-arrow {
    font-size: 24px;
    color: rgba(255, 215, 0, 0.6);
    transition: all 0.3s;
}

.game-card:hover .game-card-arrow {
    color: #ffd700;
    transform: translateX(5px);
}

.lobby-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 返回按钮 */
.lobby-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 215, 0, 0.8);
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.lobby-back:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.lobby-title {
    text-align: center;
    font-size: 32px;
    background: linear-gradient(135deg, #ffd700 0%, #ff9500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

/* 输入框 */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.lobby-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.lobby-buttons .action-btn {
    flex: 1;
    padding: 15px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: rgba(255, 255, 255, 0.4);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 215, 0, 0.2);
}

.divider span {
    padding: 0 15px;
}

/* 等待房间 */
.waiting-room {
    text-align: center;
}

.room-id-display {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(135deg, #ffd700 0%, #ff9500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
    letter-spacing: 5px;
}

.room-tip {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 20px;
}

.players-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.player-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-item.ready {
    border-color: #44ff44;
    background: rgba(68, 255, 68, 0.1);
}

.player-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.player-item .info {
    flex: 1;
    text-align: left;
}

.player-item .name {
    color: #fff;
    font-weight: bold;
}

.player-item .status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.player-item.ready .status {
    color: #44ff44;
}
