/* ============================================
   NEON CASTLES - Cyberpunk Theme Stylesheet
   ============================================ */

:root {
    /* Neon Color Palette */
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff00ff;
    --neon-purple: #9d00ff;
    --neon-pink: #ff0080;
    --neon-green: #00ff88;
    --neon-yellow: #ffff00;
    --neon-orange: #ff8800;

    /* Dark Theme */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: rgba(15, 15, 25, 0.9);
    --bg-panel: rgba(10, 10, 20, 0.95);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;

    /* Sizes */
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
    background-image:
        radial-gradient(ellipse at 20% 80%, rgba(157, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

/* ============================================
   SCREEN MANAGEMENT
   ============================================ */

.screen {
    display: none;
    width: 100vw;
    height: 100vh;
}

.screen.active {
    display: flex;
}

/* ============================================
   MENU SCREEN
   ============================================ */

#menu-screen {
    justify-content: center;
    align-items: center;
    background: var(--bg-dark);
}

.menu-container {
    text-align: center;
    padding: 40px;
    max-width: 900px;
    width: 100%;
}

.game-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: 8px;
}

.neon-text {
    display: inline-block;
    text-shadow:
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 40px currentColor,
        0 0 80px currentColor;
}

.neon-text.cyan {
    color: var(--neon-cyan);
}

.neon-text.magenta {
    color: var(--neon-magenta);
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.player-name-section {
    margin-bottom: 30px;
}

.player-name-section label {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.player-name-section input {
    width: 300px;
    padding: 15px 20px;
    font-size: 1.2rem;
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-card);
    border: 2px solid var(--neon-cyan);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

.player-name-section input:focus {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.player-name-section input::placeholder {
    color: var(--text-muted);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--neon-purple);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

/* Character Grid */
.character-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.character-card {
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--border-radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.character-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.2);
}

.character-card.selected {
    border-color: var(--neon-magenta);
    box-shadow:
        0 0 20px rgba(255, 0, 255, 0.4),
        inset 0 0 30px rgba(255, 0, 255, 0.1);
}

.character-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    position: relative;
}

.reaper-icon {
    background: linear-gradient(135deg, #ff0000, #ff6600);
}

.titan-icon {
    background: linear-gradient(135deg, #0066ff, #00ccff);
}

.ghost-icon {
    background: linear-gradient(135deg, #9900ff, #ff00ff);
}

.viper-icon {
    background: linear-gradient(135deg, #00ff00, #88ff00);
}

.character-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--neon-cyan);
}

.ability {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Neon Button */
.neon-button {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 20px 60px;
    background: transparent;
    border: 3px solid var(--neon-cyan);
    border-radius: var(--border-radius);
    color: var(--neon-cyan);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.neon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.neon-button:hover::before {
    left: 100%;
}

.neon-button:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow:
        0 0 20px rgba(0, 240, 255, 0.5),
        inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.neon-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.neon-button:disabled:hover {
    background: transparent;
    box-shadow: none;
}

.neon-button:disabled::before {
    display: none;
}

/* ============================================
   GAME SCREEN
   ============================================ */

#game-screen {
    position: relative;
}

#game-canvas {
    display: block;
    background: #0a0a12;
}

/* ============================================
   HUD
   ============================================ */

#hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 20px;
    pointer-events: none;
}

#hud>* {
    pointer-events: auto;
}

.hud-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-panel);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    border: 2px solid var(--neon-cyan);
}

.player-details {
    display: flex;
    flex-direction: column;
}

#hud-player-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.level-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

#hud-level {
    font-size: 0.8rem;
    color: var(--neon-yellow);
}

.xp-bar {
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-magenta));
    transition: width 0.3s ease;
}

.health-bar {
    width: 200px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: var(--border-radius);
    border: 2px solid var(--neon-pink);
    position: relative;
    overflow: hidden;
}

.health-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-orange));
    transition: width 0.3s ease;
}

#health-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.85rem;
    font-weight: 700;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

/* HUD Center */
.hud-center {
    display: flex;
    gap: 20px;
}

.resource-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-panel);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 216, 0, 0.3);
}

.resource-display .icon {
    font-size: 1.5rem;
}

#gold-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--neon-yellow);
}

/* HUD Right */
.hud-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.minimap {
    width: 180px;
    height: 180px;
    background: var(--bg-panel);
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: var(--border-radius);
    overflow: hidden;
}

#minimap-canvas {
    width: 100%;
    height: 100%;
}

/* ============================================
   COMMAND PANEL
   ============================================ */

#command-panel {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-panel);
    padding: 15px 25px;
    border-radius: var(--border-radius-lg);
    border: 2px solid rgba(157, 0, 255, 0.4);
    box-shadow: 0 0 30px rgba(157, 0, 255, 0.2);
}

#command-panel h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--neon-purple);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 3px;
}

.unit-buttons {
    display: flex;
    gap: 10px;
}

.unit-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(30, 30, 50, 0.8);
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.unit-btn:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.1);
    transform: translateY(-3px);
}

.unit-btn:active {
    transform: translateY(0);
}

.unit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.unit-btn:disabled:hover {
    transform: none;
    border-color: rgba(0, 240, 255, 0.3);
    background: rgba(30, 30, 50, 0.8);
}

.unit-icon {
    font-size: 1.5rem;
}

.unit-name {
    font-size: 0.8rem;
    font-weight: 700;
}

.unit-cost {
    font-size: 0.7rem;
    color: var(--neon-yellow);
}

/* ============================================
   MYSTERY ITEM DISPLAY
   ============================================ */

#mystery-item-display {
    position: absolute;
    bottom: 120px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-panel);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

#mystery-item-display.hidden {
    display: none;
}

#mystery-item-display .item-icon {
    font-size: 1.5rem;
}

#mystery-item-display .item-name {
    font-weight: 700;
    color: var(--neon-green);
}

#mystery-item-display .item-key {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* ============================================
   MODALS
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-card);
    padding: 40px 50px;
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--neon-purple);
    text-align: center;
    max-width: 600px;
    box-shadow: 0 0 60px rgba(157, 0, 255, 0.4);
}

.modal-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.modal-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* Perk Options */
.perk-options {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.perk-card {
    background: rgba(30, 30, 50, 0.8);
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.perk-card:hover {
    border-color: var(--neon-magenta);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.perk-card .perk-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.perk-card .perk-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--neon-cyan);
    margin-bottom: 5px;
}

.perk-card .perk-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 240, 255, 0.8);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.game-title {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .character-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .character-grid {
        grid-template-columns: 1fr;
    }

    .game-title {
        font-size: 2rem;
    }

    .unit-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   LOBBY SYSTEM STYLES
   ============================================ */

/* All menu screens center content */
#name-screen,
#lobby-menu-screen,
#create-lobby-screen,
#join-lobby-screen,
#lobby-room-screen {
    justify-content: center;
    align-items: center;
    background: var(--bg-dark);
}

.game-title.small {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Lobby Options */
.lobby-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.neon-button.large {
    padding: 25px 80px;
    font-size: 1.1rem;
}

.neon-button.secondary {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
}

.neon-button.secondary:hover {
    background: rgba(157, 0, 255, 0.1);
    box-shadow:
        0 0 20px rgba(157, 0, 255, 0.5),
        inset 0 0 20px rgba(157, 0, 255, 0.1);
}

.neon-button.small {
    padding: 12px 30px;
    font-size: 0.9rem;
}

.neon-button.success {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.neon-button.success:hover {
    background: rgba(0, 255, 136, 0.1);
    box-shadow:
        0 0 20px rgba(0, 255, 136, 0.5),
        inset 0 0 20px rgba(0, 255, 136, 0.1);
}

/* Lobby Settings */
.lobby-settings {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px 0;
}

.setting-group {
    text-align: left;
}

.setting-group label {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.toggle-buttons {
    display: flex;
    gap: 10px;
}

.toggle-btn {
    flex: 1;
    padding: 12px 20px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    border-color: var(--neon-cyan);
    color: var(--text-primary);
}

.toggle-btn.active {
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.15);
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Join Lobby Screen */
.join-options {
    max-width: 400px;
    margin: 0 auto;
}

#lobby-code-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    background: var(--bg-card);
    border: 2px solid var(--neon-purple);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 8px;
    outline: none;
    margin-bottom: 15px;
}

#lobby-code-input:focus {
    box-shadow: 0 0 20px rgba(157, 0, 255, 0.5);
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--text-muted);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 15px;
    font-size: 0.9rem;
}

.subsection-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--neon-cyan);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.lobbies-list {
    max-height: 250px;
    overflow-y: auto;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 10px;
    margin-bottom: 20px;
}

.loading-text {
    color: var(--text-muted);
    padding: 20px;
    text-align: center;
}

.lobby-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.lobby-item:hover {
    background: rgba(0, 240, 255, 0.1);
}

.lobby-item:last-child {
    margin-bottom: 0;
}

.lobby-item .lobby-name {
    font-weight: 700;
}

.lobby-item .lobby-players {
    color: var(--neon-cyan);
    font-size: 0.9rem;
}

.lobby-item .join-btn {
    padding: 6px 16px;
    font-size: 0.8rem;
    background: transparent;
    border: 1px solid var(--neon-cyan);
    border-radius: 4px;
    color: var(--neon-cyan);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lobby-item .join-btn:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
}

/* Lobby Room */
.lobby-container {
    text-align: center;
    padding: 30px;
    max-width: 900px;
    width: 100%;
}

.lobby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.lobby-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lobby-code {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--neon-yellow);
    background: var(--bg-card);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    letter-spacing: 4px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.1);
}

/* Players Grid */
.players-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.player-slot {
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    min-height: 120px;
    transition: all 0.3s ease;
}

.player-slot.filled {
    border-color: var(--neon-cyan);
}

.player-slot.ready {
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.player-slot.local {
    border-color: var(--neon-magenta);
}

.slot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.slot-content.empty {
    opacity: 0.5;
}

.slot-number {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.waiting-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.slot-player-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.slot-character {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.slot-ready-badge {
    margin-top: 8px;
    padding: 4px 12px;
    background: var(--neon-green);
    color: var(--bg-dark);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.slot-host-badge {
    margin-top: 8px;
    padding: 4px 12px;
    background: var(--neon-yellow);
    color: var(--bg-dark);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Selection Panel */
.selection-panel {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin-bottom: 25px;
}

.selection-panel h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--neon-purple);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.character-select-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.char-option {
    padding: 15px 20px;
    background: rgba(30, 30, 50, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.char-option:hover {
    border-color: var(--neon-cyan);
}

.char-option.selected {
    border-color: var(--neon-magenta);
    background: rgba(255, 0, 255, 0.15);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

.char-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 8px;
}

.char-option span {
    font-size: 0.85rem;
    font-weight: 600;
}

.color-select-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-option:hover {
    transform: scale(1.15);
}

.color-option.selected {
    border-color: #ffffff;
    box-shadow: 0 0 15px currentColor;
}

.color-option.taken {
    opacity: 0.3;
    cursor: not-allowed;
}

.color-option.taken::after {
    content: '✕';
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: rgba(0, 0, 0, 0.7);
    font-size: 1.2rem;
    font-weight: bold;
}

/* Lobby Actions */
.lobby-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.hidden {
    display: none !important;
}