        :root {
            --dark-background: #121212;
            --surface-color: #1E1E1E;
            --primary-color: #BB86FC; 
            --secondary-color: #03DAC6;
            --error-color: #CF6679;
            --on-primary: #000000; 
            --on-secondary: #000000; 
            --on-surface: #E0E0E0; 
            --on-background: #E0E0E0; 
            --input-border-color: #505050;
            --outline-color: #8B8B8B;

            --red-button: #EB5757;
            --blue-button: #2F80ED;
            --orange-button: #F2994A;
            --yellow-button: #F2C94C;
            --green-button: #219653;
            --purple-button: #9B51E0; 

            --primary-color-rgb: 187, 134, 252;
            --secondary-color-rgb: 3, 218, 198;
            --error-color-rgb: 207, 102, 121;
            --on-primary-rgb: 0, 0, 0;
            --surface-color-rgb: 30, 30, 30;

        }

        body {
            font-family: 'Google Sans Text', 'Roboto', sans-serif;
            margin: 0;
            padding: 0;
            background-color: var(--dark-background);
            color: var(--on-background);
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            min-height: 100vh;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            touch-action: manipulation;
        }

        #app {
            width: 100vw;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            padding: 20px;
            box-sizing: border-box;
            position: relative;
            opacity: 1;
            transition: opacity 0.3s ease-in-out;
            gap: 20px;
            overflow-y: auto;
            padding-top: 80px;
            padding-bottom: 20px;
        }

        #app:has(.input-group):not(:has(.header)) {
            justify-content: center;
            padding-top: 20px;
        }


        .header {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 10px;
            position: fixed;
            top: 0;
            left: 0;
            box-sizing: border-box;
            background-color: var(--surface-color);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            border-bottom-left-radius: 16px;
            border-bottom-right-radius: 16px;
            z-index: 50;
        }

        .header .back-button {
            background: none;
            border: none;
            color: var(--on-surface);
            font-size: 24px;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: background-color 0.2s ease;
        }
        .header .back-button:active {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .header .room-info {
            font-size: 16px;
            color: var(--on-surface);
            padding-right: 10px;
            font-weight: 500;
            margin-left: 20px;
        }

        .input-group {
            width: 90%;
            max-width: 340px;
            margin-bottom: 15px;
            text-align: center;
        }

        .input-group label {
            display: block;
            margin-bottom: 8px;
            font-size: 16px;
            font-weight: 500;
            color: var(--outline-color);
        }

        .input-group input[type="text"],
        .input-group input[type="number"] {
            width: 100%;
            padding: 14px 18px;
            background-color: var(--surface-color);
            border: 1px solid var(--input-border-color);
            border-radius: 16px;
            color: var(--on-surface);
            font-size: 18px;
            text-align: center;
            box-sizing: border-box;
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        .input-group input[type="text"]:focus,
        .input-group input[type="number"]:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.3);
        }

        .color-palette {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-top: 15px;
            width: 200px;
        }

        .color-box {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            cursor: pointer;
            border: 3px solid transparent;
            transition: border 0.2s ease-in-out, transform 0.1s ease;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        }

        .color-box.selected {
            border: 3px solid white;
            transform: scale(1.1);
        }

        .color-box[data-color="red"] { background-color: var(--red-button); }
        .color-box[data-color="blue"] { background-color: var(--blue-button); }
        .color-box[data-color="orange"] { background-color: var(--orange-button); }
        .color-box[data-color="yellow"] { background-color: var(--yellow-button); }
        .color-box[data-color="green"] { background-color: var(--green-button); }
        .color-box[data-color="purple"] { background-color: var(--purple-button); }

        .btn {
            width: 90%;
            max-width: 340px;
            padding: 16px 24px;
            border: none;
            border-radius: 28px;
            font-size: 17px;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
            color: var(--on-primary);
            text-transform: capitalize;
        }

        .btn-primary {
            background-color: var(--secondary-color);
        }

        .btn-secondary {
            background-color: transparent;
            color: var(--primary-color);
            border: 1px solid var(--primary-color);
            box-shadow: none;
        }
        .btn-secondary:active {
            background-color: rgba(var(--primary-color-rgb), 0.08);
            transform: translateY(-1px);
        }

        .btn-purple {
            background-color: var(--primary-color);
            color: var(--on-primary);
        }

        .btn-red {
            background-color: var(--error-color);
            color: var(--on-primary);
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
        }
        .btn:active {
            transform: translateY(0);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        
        .btn:disabled {
            background-color: var(--surface-color);
            color: var(--outline-color);
            cursor: not-allowed;
            box-shadow: none;
            opacity: 0.7;
        }

        .btn-small {
            padding: 10px 16px;
            font-size: 14px;
            max-width: 140px;
            border-radius: 20px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        .btn-small.btn-secondary {
            background-color: transparent;
            color: var(--primary-color);
            border: 1px solid var(--outline-color);
            box-shadow: none;
        }

        .player-card {
            background-color: var(--surface-color);
            border-radius: 24px;
            padding: 24px 30px;
            text-align: center;
            width: 90%;
            margin-top: 25px;
            max-width: 340px;
            margin-bottom: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }

        .player-avatar {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            background-color: var(--purple-button);
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 36px;
            font-weight: 700;
            margin-bottom: 12px;
            color: var(--on-primary);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .player-name {
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 4px;
            color: var(--on-surface);
        }
        .player-score {
            font-size: 18px;
            color: var(--secondary-color);
            font-weight: 500;
            margin-top: 5px;
        }

        .player-status {
            font-size: 15px;
            color: var(--outline-color);
        }

        .room-code-display {
            font-family: 'Google Sans Text', monospace;
            font-size: 38px;
            font-weight: 700;
            margin-top: 15px;
            color: var(--secondary-color);
            letter-spacing: 2px;
        }

        .copy-button {
            background: none;
            border: none;
            color: var(--outline-color);
            font-size: 14px;
            cursor: pointer;
            margin-top: 8px;
            text-decoration: underline;
            padding: 8px;
            border-radius: 8px;
            transition: background-color 0.2s ease;
        }
        .copy-button:active {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .letter-display {
            font-size: 120px;
            font-weight: 700;
            text-align: center;
            margin: 20px 0;
            color: var(--primary-color);
            text-shadow: 0 0 25px rgba(var(--primary-color-rgb), 0.7);
            animation: pulse 1.5s infinite alternate;
        }
        
        @keyframes pulse {
            from { text-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.5); }
            to { text-shadow: 0 0 35px rgba(var(--primary-color-rgb), 1); }
        }

        .timer-display {
            font-size: 36px;
            font-weight: 700;
            margin-top: 15px;
            color: var(--on-background);
        }

        .responses-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
            width: 90%;
            max-width: 360px;
            margin-top: 20px;
        }

        .response-category {
            background-color: var(--surface-color);
            border-radius: 16px;
            padding: 15px 18px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .response-category label {
            font-size: 15px;
            font-weight: 500;
            margin-bottom: 8px;
            color: var(--primary-color);
        }

        .response-category input {
            width: 100%;
            padding: 10px 0;
            background: none;
            border: none;
            border-bottom: 1px solid var(--input-border-color);
            color: var(--on-surface);
            font-size: 16px;
            outline: none;
            transition: border-bottom-color 0.2s ease;
        }

        .response-category input:focus {
            border-bottom-color: var(--secondary-color);
        }
        
        .response-category > div { 
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            margin-bottom: 8px;
            padding: 8px 12px;
            border-radius: 12px;
            transition: background-color 0.3s ease;
            gap: 8px;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }
        .response-category > div span {
            font-size: 15px;
            word-break: break-word;
            text-align: left;
            width: 100%;
            display: flex;
            align-items: center;
        }
        .response-category > div .player-avatar { 
            width: 30px;
            height: 30px;
            font-size: 15px;
            margin-right: 8px;
            margin-bottom: 0;
            flex-shrink: 0;
        }
        .response-category > div .response-text {
            flex-grow: 1;
        }

        .chat-container {
            width: 90%;
            max-width: 360px;
            height: 250px;
            background-color: var(--surface-color);
            border-radius: 16px;
            padding: 12px;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            margin-top: 15px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            flex-grow: 1; 
            min-height: 150px; 
        }
       
        .chat-message-wrapper {
            display: flex;
            margin-bottom: 8px;
            max-width: 85%; 
        }

        .chat-message-wrapper.me {
            margin-left: auto; 
            flex-direction: row-reverse; 
        }
        .chat-message-wrapper.other {
            margin-right: auto; 
        }

        .chat-message-bubble {
            padding: 10px 14px;
            border-radius: 18px; 
            font-size: 14px;
            line-height: 1.4;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
            position: relative;
            flex-shrink: 1; 
        }
        .chat-message-wrapper.me .chat-message-bubble {
            background-color: var(--primary-color);
            color: var(--on-primary);
            border-bottom-right-radius: 4px; 
            margin-right: 8px; 
        }
        .chat-message-wrapper.other .chat-message-bubble {
            background-color: rgba(var(--surface-color-rgb), 0.7); 
            color: var(--on-surface);
            border-bottom-left-radius: 4px; 
            margin-left: 8px; 
        }
        .chat-message-wrapper .chat-avatar-in-bubble { 
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 16px;
            font-weight: bold;
            color: var(--on-primary);
            flex-shrink: 0; 
        }

        .chat-message-bubble strong {
            display: block;
            font-weight: 500;
            font-size: 13px;
            margin-bottom: 4px;
            color: rgba(var(--on-primary-rgb), 0.8);
        }
        .chat-message-wrapper.other .chat-message-bubble strong {
            color: rgba(var(--on-surface-rgb), 0.8);
        }

        .chat-input-group {
            display: flex;
            width: 90%;
            max-width: 360px;
            margin-top: 15px;
            gap: 10px;
        }
        .chat-input-group input {
            flex-grow: 1;
            padding: 12px 16px;
            background-color: var(--surface-color);
            border: 1px solid var(--input-border-color);
            border-radius: 24px;
            color: var(--on-surface);
            font-size: 16px;
            outline: none;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }
        .chat-input-group button {
            background-color: var(--primary-color);
            color: var(--on-primary);
            border: none;
            border-radius: 24px;
            padding: 12px 18px;
            cursor: pointer;
            font-weight: 500;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            transition: background-color 0.2s ease, transform 0.1s ease;
        }
        .chat-input-group button:active {
            transform: translateY(1px);
        }
        
        .chat-button {
            position: fixed;
            right: 20px;
            width: auto; 
            min-width: 120px; 
            padding: 12px 20px;
            font-size: 16px;
            border-radius: 28px; 
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
            z-index: 40;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px; 
        }
        .chat-notification-bubble {
            background-color: var(--error-color);
            color: var(--on-primary);
            border-radius: 50%;
            padding: 4px 8px;
            font-size: 12px;
            font-weight: bold;
            position: absolute;
            top: -8px; 
            right: -8px; 
            min-width: 20px;
            text-align: center;
            line-height: 1;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        }
        .chat-notification-icon .material-symbols-outlined {
            font-size: 24px;
            transition: color 0.2s ease;
        }
        .chat-notification-bubble + .material-symbols-outlined {
            color: var(--primary-color); 
        }
       
        .chat-button .chat-notification-icon.has-notification .material-symbols-outlined {
            color: var(--error-color); 
        }


        .winner-display {
            background-color: var(--primary-color);
            border-radius: 24px;
            padding: 30px;
            text-align: center;
            width: 90%;
            max-width: 350px;
            margin-bottom: 20px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
            color: var(--on-primary);
        }
        .winner-display::before {
            content: 'VENCEDOR:';
            font-size: 20px;
            font-weight: 700;
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            color: rgba(var(--on-primary-rgb), 0.7);
        }

        .winner-score {
            font-size: 64px;
            font-weight: 700;
            margin-top: 15px;
            margin-bottom: 8px;
            display: block;
            color: var(--on-primary);
        }
        .winner-name {
            font-size: 32px;
            font-weight: 700;
            color: var(--on-primary);
        }
        .player-score-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            margin-top: 10px;
            font-size: 18px;
            font-weight: 500;
            color: var(--on-primary);
            opacity: 0.8;
        }
        .player-score-item .score {
            font-weight: 700;
        }

.popup-video {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-color: rgba(0, 0, 0, 1);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease-in-out;
        }

        .popup-video.visible {
            opacity: 1;
            pointer-events: auto;
        }

        /* Pop-up genérico */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-color: rgba(0, 0, 0, 0.9);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease-in-out;
        }

        .popup-overlay.visible {
            opacity: 1;
            pointer-events: auto;
        }

        .popup-content {
            background-color: var(--surface-color);
            padding: 40px;
            border-radius: 28px;
            text-align: center;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
            animation: fadeInScale 0.3s ease-out;
        }

        @keyframes fadeInScale {
            from { opacity: 0; transform: scale(0.9); }
            to { opacity: 1; transform: scale(1); }
        }

        .popup-content h2 {
            color: var(--primary-color);
            font-size: 32px;
            margin-bottom: 20px;
            font-weight: 700;
        }

        .popup-content .countdown-timer {
            font-size: 60px;
            font-weight: 700;
            color: var(--secondary-color);
        }
        
        .popup-content.letter-reveal {
            background-color: transparent;
            box-shadow: none;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .popup-content.letter-reveal h2 {
            font-size: 180px;
            color: var(--primary-color);
            text-shadow: 0 0 50px rgba(var(--primary-color-rgb), 1);
            animation: scaleInAndOut 1.5s ease-out forwards;
            margin-bottom: 0;
            padding: 0;
        }
        
        @keyframes scaleInAndOut {
            0% { transform: scale(0.5); opacity: 0; }
            50% { transform: scale(1.1); opacity: 1; }
            100% { transform: scale(0.8); opacity: 0; }
        }

        .player-list-lobby {
            list-style: none;
            padding: 0;
            margin: 20px 0;
            width: 90%;
            max-width: 340px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            border-radius: 16px;
        }
        
        .player-list-lobby li {
            background-color: var(--surface-color);
            padding: 12px 18px;
            border-radius: 16px;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }
        .player-list-lobby li:last-child {
            margin-bottom: 0;
        }
        
        .player-list-lobby .player-info {
            display: flex;
            align-items: center;
        }

        .player-list-lobby .player-avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            font-size: 18px;
            margin-right: 12px;
            margin-bottom: 0;
            box-shadow: none;
            flex-shrink: 0;
        }
        
        .player-list-lobby .player-name-lobby {
            font-size: 17px;
            font-weight: 500;
            color: var(--on-surface);
        }
        
        .player-list-lobby .player-ready-status {
            font-size: 14px;
            color: var(--outline-color);
            font-weight: 400;
        }
        
        
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.popup-overlay.visible {
    visibility: visible;
    opacity: 1;
}

.popup-content {
    background-color: var(--background-color); 
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 90%;
    max-height: 90%;
    display: flex; 
    flex-direction: column; 
    position: relative;
}


.chat-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: relative;
    color: var(--text-color); 
}

.chat-button .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 4px 4px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 18px;
    height: 18px;
}

#chatPopupContent {
    width: 350px;
    height: 80%; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--outline-color);
}

.chat-header h3 {
    margin: 0;
    color: var(--primary-color); 
}

.close-chat-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-color);
    cursor: pointer;
    line-height: 1;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--outline-color);
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 80%; 
}

.chat-message .message-info {
    font-size: 0.8em;
    margin-bottom: 3px;
    font-weight: bold;
}

.message-bubble {
    padding: 8px 12px;
    border-radius: 15px;
    word-wrap: break-word;
}

.my-message {
    align-self: flex-end; 
    text-align: right;
}

.my-message .message-bubble {
    background-color: var(--green-button);
    color: white;
    border-bottom-right-radius: 0;
}

.other-message {
    align-self: flex-start; 
    text-align: left;
}

.other-message .message-bubble {
    background-color: var(--input-border-color);
    color: var(--text-color);
    border-bottom-left-radius: 0;
}

.chat-input-area {
    display: flex;
    gap: 10px;
}

#chatMessageInput {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid var(--outline-color);
    border-radius: 5px;
    font-size: 1em;
    background-color: var(--input-background-color);
    color: var(--text-color);
}

.btn-send {
    background-color: var(--secondary-color);
    color: black;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    border-radius: 500px;
}

.btn-send:hover {
    opacity: 0.9;
}


#stopAnimationOverlay .popup-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#stopVideo {
    max-width: 90%; 
    max-height: 90%; 
    object-fit: contain;
}

        @media (max-width: 480px) {
            #app {
                padding: 10px;
                padding-top: 70px;
            }
            .header {
                padding: 12px 8px;
            }
            .header .back-button {
                font-size: 20px;
                padding: 6px;
            }
            .header .room-info {
                font-size: 14px;
            }
            .input-group {
                width: 95%;
                max-width: 300px;
            }
            .input-group input {
                padding: 12px 16px;
                font-size: 16px;
            }
            .color-palette {
                width: 180px;
                gap: 10px;
            }
            .color-box {
                width: 48px;
                height: 48px;
            }
            .btn {
                width: 95%;
                max-width: 300px;
                padding: 14px 20px;
                font-size: 16px;
            }
            .btn-small {
                padding: 8px 14px;
                font-size: 12px;
            }
            .player-card {
                padding: 20px 25px;
                width: 95%;
                max-width: 300px;
            }
            .player-avatar {
                width: 60px;
                height: 60px;
                font-size: 30px;
            }
            .player-name {
                font-size: 20px;
            }
            .player-score {
                font-size: 16px;
            }
            .player-status {
                font-size: 13px;
            }
            .room-code-display {
                font-size: 32px;
            }
            .letter-display {
                font-size: 90px;
            }
            .timer-display {
                font-size: 28px;
            }
            .stop-button {
                padding: 10px 18px;
                font-size: 15px;
                color: white;
                background-color: red;
            }
            .responses-grid {
                width: 95%;
                max-width: 320px;
            }
            .response-category {
                padding: 12px 15px;
            }
            .response-category label {
                font-size: 13px;
            }
            .response-category input {
                font-size: 15px;
            }
            .response-category > div .player-avatar {
                width: 32px;
                height: 32px;
                font-size: 16px;
            }
            .response-category > div span {
                font-size: 14px;
            }
            .chat-container {
                height: 200px;
                width: 95%;
                max-width: 320px;
            }
            .chat-message-bubble {
                padding: 8px 12px;
                font-size: 12px;
            }
            .chat-message-bubble strong {
                font-size: 11px;
            }
            .chat-input-group {
                width: 95%;
                max-width: 320px;
            }
            .chat-input-group input {
                padding: 10px 14px;
                font-size: 14px;
            }
            .chat-input-group button {
                padding: 10px 16px;
                font-size: 14px;
            }
            .chat-button {
                min-width: 100px;
                padding: 10px 16px;
                font-size: 14px;
            }
            .chat-notification-icon .material-symbols-outlined {
                font-size: 20px;
            }
            .chat-notification-bubble {
                padding: 3px 6px;
                font-size: 10px;
                top: -6px;
                right: -6px;
                min-width: 16px;
            }
            .winner-display {
                padding: 25px;
                width: 95%;
                max-width: 300px;
            }
            .winner-display::before {
                font-size: 18px;
            }
            .winner-score {
                font-size: 50px;
            }
            .winner-name {
                font-size: 26px;
            }
            .player-score-item {
                font-size: 16px;
            }
            .popup-content {
                padding: 30px;
            }
            .popup-content h2 {
                font-size: 24px;
            }
            .popup-content .countdown-timer {
                font-size: 45px;
            }
            .player-list-lobby {
                width: 95%;
                max-width: 300px;
            }
            .player-list-lobby li {
                padding: 10px 15px;
            }
            .player-list-lobby .player-avatar {
                width: 30px;
                height: 30px;
                font-size: 14px;
            }
            .player-list-lobby .player-name-lobby {
                font-size: 15px;
            }
            .player-list-lobby .player-ready-status {
                font-size: 11px;
            }
            .popup-content.letter-reveal h2 {
                font-size: 140px;
            }
        }
