/* ===== SCREENS ===== */.screen {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: calc(100vh - 20px);
            min-height: calc(100dvh - 20px);
        }

        .screen.active {
            display: flex;
        }

        .panel {
            background: rgba(255,255,255,0.95);
            color: #2c3e50;
            padding: 25px 30px;
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.3);
            max-width: 500px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
        }

        .panel h2 {
            margin: 0 0 20px 0;
            text-align: center;
            font-size: 1.4em;
        }

        .panel h3 {
            margin: 20px 0 10px 0;
            font-size: 1em;
            color: #7f8c8d;
        }

        .input-group {
            margin-bottom: 15px;
        }

        .input-group label {
            display: block;
            font-size: 0.85em;
            color: #7f8c8d;
            margin-bottom: 5px;
        }

        .input-group input, .input-group select, .input-group textarea {
            width: 100%;
            padding: 12px;
            font-size: 1em;
            border: 2px solid #ecf0f1;
            border-radius: 8px;
            transition: border-color 0.2s;
            font-family: inherit;
        }

        .input-group input:focus, .input-group select:focus, .input-group textarea:focus {
            outline: none;
            border-color: #3498db;
        }

        .btn {
            width: 100%;
            padding: 14px;
            font-size: 1.1em;
            font-weight: 600;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: transform 0.15s, box-shadow 0.15s;
            margin-top: 10px;
        }

        .btn:hover {
            transform: translateY(-2px);
        }

        .btn-primary {
            background: linear-gradient(135deg, #3498db, #2980b9);
            color: white;
        }

        .btn-secondary {
            background: #ecf0f1;
            color: #2c3e50;
        }

        .btn-success {
            background: linear-gradient(135deg, #2ecc71, #27ae60);
            color: white;
        }

        .btn-warning {
            background: linear-gradient(135deg, #f39c12, #e67e22);
            color: white;
        }

        .btn-small {
            padding: 8px 16px;
            font-size: 0.9em;
            width: auto;
        }

        .btn-row {
            display: flex;
            gap: 10px;
        }

        .btn-row .btn {
            flex: 1;
        }

        /* Lobby code */
        .lobby-code {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            text-align: center;
            margin: 15px 0;
        }

        .lobby-code .code {
            font-size: 2em;
            font-weight: bold;
            letter-spacing: 4px;
            color: #2c3e50;
            font-family: monospace;
        }

        /* Players list */
        .players-list {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 10px;
            margin: 15px 0;
        }

        .player-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px;
            border-radius: 6px;
        }

        .player-item + .player-item {
            border-top: 1px solid #ecf0f1;
        }

        .player-dot {
            width: 16px;
            height: 16px;
            border-radius: 50%;
        }

        .player-item .host-badge {
            font-size: 0.7em;
            background: #3498db;
            color: white;
            padding: 2px 6px;
            border-radius: 4px;
            margin-left: auto;
        }

        /* Color selection */
        .color-select {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin: 10px 0;
        }

        .color-option {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            border: 3px solid transparent;
            transition: transform 0.15s, border-color 0.15s;
        }

        .color-option:hover {
            transform: scale(1.1);
        }

        .color-option.selected {
            border-color: #2c3e50;
            transform: scale(1.15);
        }

        .color-option.taken {
            opacity: 0.3;
            cursor: not-allowed;
        }