
        * {
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        html,
        body {
            margin: 0;
            padding: 0;
            min-height: 100%;
        }

        body {
            font-family:
                -apple-system,
                BlinkMacSystemFont,
                "Segoe UI",
                Roboto,
                Helvetica,
                Arial,
                sans-serif;

            background:
                linear-gradient(
                    145deg,
                    #eefcff 0%,
                    #f5f0ff 50%,
                    #fff1f6 100%
                );

            color: #292b42;
        }

        button,
        input {
            font: inherit;
        }

        button {
            border: 0;
            cursor: pointer;
        }

        /* =========================================================
           APP
        ========================================================= */

        .app {
            width: 100%;
            max-width: 650px;
            min-height: 100vh;
            margin: auto;

            padding:
                max(20px, env(safe-area-inset-top))
                20px
                max(20px, env(safe-area-inset-bottom))
                20px;
        }

        .screen {
            display: none;
            min-height: calc(100vh - 40px);
        }

        .screen.active {
            display: flex;
            flex-direction: column;
        }

        /* =========================================================
           HEADER
        ========================================================= */

        .header {
            display: flex;
            align-items: center;
            justify-content: space-between;

            margin-bottom: 25px;
        }

        .logo {
            font-size: 25px;
            font-weight: 900;
            letter-spacing: -1px;
        }

        .logo span {
            color: #ff4f81;
        }

        .round-badge {
            background: rgba(255,255,255,.85);

            padding: 8px 14px;

            border-radius: 30px;

            font-size: 13px;
            font-weight: 800;

            box-shadow:
                0 5px 20px rgba(50,50,90,.08);
        }

        /* =========================================================
           START SCREEN
        ========================================================= */

        .start-screen {
            align-items: center;
            justify-content: center;
            text-align: center;

            padding-bottom: 30px;
        }

        .logo-big {
            font-size: clamp(42px, 12vw, 70px);
            font-weight: 950;
            line-height: .9;
            letter-spacing: -4px;

            margin-bottom: 25px;
        }

        .logo-big .pink {
            color: #ff4f81;
        }

        .logo-big .purple {
            color: #6c63ff;
        }

        .speech {
            font-size: 75px;
            margin-bottom: 20px;

            animation: floating 3s ease-in-out infinite;
        }

        .start-description {
            color: #777b91;
            line-height: 1.6;
            max-width: 420px;
            margin: 0 auto;
        }

        /* =========================================================
           BUTTONS
        ========================================================= */

        .primary-button {
            width: 100%;

            background:
                linear-gradient(
                    135deg,
                    #6c63ff,
                    #8b72ff
                );

            color: white;

            padding: 18px 25px;

            border-radius: 18px;

            font-size: 18px;
            font-weight: 900;

            box-shadow:
                0 12px 30px rgba(108,99,255,.28);

            transition: transform .15s;
        }

        .primary-button:active {
            transform: scale(.97);
        }

        .secondary-button {
            width: 100%;

            background: white;
            color: #555a72;

            padding: 16px 20px;

            border-radius: 16px;

            font-size: 16px;
            font-weight: 800;

            box-shadow:
                0 7px 25px rgba(50,50,90,.08);
        }

        .danger-button {
            background: #fff0f4;
            color: #ff4f81;
        }

        /* =========================================================
           LOBBY
        ========================================================= */

        .lobby-title {
            text-align: center;
            margin-bottom: 25px;
        }

        .lobby-title .emoji {
            font-size: 55px;
        }

        .lobby-title h1 {
            margin: 10px 0 5px;

            font-size: 32px;
            letter-spacing: -1px;
        }

        .lobby-title p {
            margin: 0;
            color: #81859a;
        }

        .name-input-wrapper {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }

        .name-input-wrapper input {
            flex: 1;

            min-width: 0;

            background: white;
            border: 2px solid transparent;

            padding: 16px 17px;

            border-radius: 16px;

            outline: none;

            box-shadow:
                0 7px 25px rgba(50,50,90,.08);
        }

        .name-input-wrapper input:focus {
            border-color: #6c63ff;
        }

        .add-button {
            width: 55px;
            flex-shrink: 0;

            border-radius: 16px;

            background: #65d6c7;
            color: white;

            font-size: 28px;
            font-weight: 700;
        }

        .players {
            display: flex;
            flex-direction: column;
            gap: 10px;

            margin-bottom: 25px;
        }

        .player-row {
            display: flex;
            align-items: center;
            gap: 12px;

            background: white;

            padding: 12px 14px;

            border-radius: 18px;

            box-shadow:
                0 7px 25px rgba(50,50,90,.07);

            animation: slideIn .2s ease;
        }

        .player-avatar {
            width: 43px;
            height: 43px;

            display: flex;
            align-items: center;
            justify-content: center;

            border-radius: 50%;

            background:
                linear-gradient(
                    135deg,
                    #6c63ff,
                    #65d6c7
                );

            color: white;

            font-weight: 900;
            font-size: 17px;
        }

        .player-row-name {
            flex: 1;
            font-weight: 800;
        }

        .player-row-score {
            font-size: 13px;
            color: #8b8fa3;
            font-weight: 700;
        }

        .remove-player {
            width: 32px;
            height: 32px;

            border-radius: 50%;

            background: #fff0f4;
            color: #ff4f81;

            font-size: 20px;
            font-weight: 900;
        }

        .empty-players {
            text-align: center;

            padding: 30px 15px;

            color: #9699aa;
        }

        .start-game-wrapper {
            margin-top: auto;
        }

        /* =========================================================
           GAME
        ========================================================= */

        .game-screen {
            padding-bottom: 10px;
        }

        .turn-banner {
            background: white;

            border-radius: 20px;

            padding: 14px 20px;

            text-align: center;

            box-shadow:
                0 7px 25px rgba(50,50,90,.08);

            margin-bottom: 18px;
        }

        .turn-banner small {
            display: block;

            color: #999daf;

            font-size: 10px;
            font-weight: 900;

            letter-spacing: 2px;
            text-transform: uppercase;

            margin-bottom: 4px;
        }

        .turn-banner strong {
            color: #6c63ff;

            font-size: 22px;
        }

        /* =========================================================
           TIMER
        ========================================================= */

        .timer {
            margin-bottom: 20px;
        }

        .timer-circle {
            width: 105px;
            height: 105px;

            margin: auto;

            border-radius: 50%;

            background: white;

            border: 7px solid #65d6c7;

            display: flex;
            align-items: center;
            justify-content: center;

            font-size: 39px;
            font-weight: 950;

            box-shadow:
                0 10px 35px rgba(50,50,90,.1);

            transition:
                border-color .2s,
                transform .2s;
        }

        .timer.warning .timer-circle {
            border-color: #ffb84d;
        }

        .timer.danger .timer-circle {
            border-color: #ff4f81;

            animation:
                timerPulse .8s infinite;
        }

        /* =========================================================
           CARD
        ========================================================= */

        .word-card {
            background: white;

            border-radius: 30px;

            padding: 28px 20px;

            text-align: center;

            box-shadow:
                0 15px 45px rgba(50,50,90,.12);

            margin-bottom: 18px;
        }

        .category {
            display: inline-block;

            padding: 7px 12px;

            border-radius: 30px;

            background: #f1efff;
            color: #6c63ff;

            font-size: 11px;
            font-weight: 900;

            text-transform: uppercase;
            letter-spacing: 1px;

            margin-bottom: 12px;
        }

        .word-label {
            font-size: 11px;
            font-weight: 900;

            color: #aaaebd;

            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .main-word {
            font-size: clamp(38px, 11vw, 55px);

            font-weight: 950;

            letter-spacing: -2px;

            margin:
                5px 0
                25px;
        }

        .forbidden-box {
            background: #fff0f4;

            border-radius: 20px;

            padding: 17px;
        }

        .forbidden-title {
            color: #ff4f81;

            font-size: 11px;
            font-weight: 900;

            text-transform: uppercase;
            letter-spacing: 1.5px;

            margin-bottom: 10px;
        }

        .forbidden-list {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 8px;
        }

        .forbidden-word {
            background: white;

            color: #ff4f81;

            border-radius: 30px;

            padding: 8px 13px;

            font-size: 15px;
            font-weight: 900;
        }

        /* =========================================================
           GAME BUTTONS
        ========================================================= */

        .game-buttons {
            display: grid;

            grid-template-columns:
                1fr 1fr;

            gap: 10px;

            margin-bottom: 15px;
        }

        .game-button {
            min-height: 64px;

            border-radius: 18px;

            font-size: 16px;
            font-weight: 900;

            transition:
                transform .1s;
        }

        .game-button:active {
            transform: scale(.95);
        }

        .correct-button {
            background: #65d6c7;
            color: white;

            box-shadow:
                0 8px 20px rgba(101,214,199,.25);
        }

        .skip-button {
            background: white;
            color: #656a7f;

            box-shadow:
                0 8px 20px rgba(50,50,90,.08);
        }

        /* =========================================================
           BUZZERS
        ========================================================= */

        .buzzer-title {
            text-align: center;

            font-size: 11px;
            font-weight: 900;

            color: #a0a3b2;

            text-transform: uppercase;
            letter-spacing: 1.5px;

            margin:
                5px 0
                10px;
        }
.buzzers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.buzzer {
    min-height: 105px;

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #ff4f81,
            #ff6e73
        );

    color: white;

    box-shadow:
        0 10px 25px rgba(255,79,129,.25);

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 4px;

    transition:
        transform .1s,
        opacity .2s;
}

.buzzer:active {
    transform: scale(.94);
}

.buzzer-emoji {
    font-size: 27px;
}

.buzzer-name {
    font-size: 18px;
    font-weight: 950;
}

.buzzer-status {
    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1px;

    opacity: .8;
}


/*
 * De speler die aan de beurt is.
 */

.buzzer-active-player {
    background:
        linear-gradient(
            145deg,
            #6c63ff,
            #8b72ff
        );

    box-shadow:
        0 10px 25px rgba(108,99,255,.25);

    cursor: default;
}


/*
 * Op grotere schermen
 * eventueel 3 spelers naast elkaar.
 */

@media (min-width: 600px) {

    .buzzers {
        grid-template-columns:
            repeat(3, 1fr);
    }

}
        /* =========================================================
           BUZZ MODAL
        ========================================================= */

        .modal {
            position: fixed;
            inset: 0;

            z-index: 100;

            background:
                rgba(34,37,60,.78);

            display: none;

            align-items: center;
            justify-content: center;

            padding: 25px;
        }

        .modal.show {
            display: flex;
        }

        .modal-box {
            width: 100%;
            max-width: 430px;

            background: white;

            border-radius: 32px;

            padding: 35px 25px;

            text-align: center;

            animation:
                modalPop .2s ease;
        }

        .modal-emoji {
            font-size: 70px;

            margin-bottom: 5px;
        }

        .modal-box h2 {
            margin: 0 0 8px;

            font-size: 34px;
            letter-spacing: -1px;
        }

        .modal-box p {
            color: #777b90;
            margin: 0;
        }

        .winner-name {
            color: #ff4f81;
            font-weight: 950;
        }

        .modal-word {
            margin-top: 20px;

            padding: 14px;

            background: #fff0f4;

            border-radius: 15px;

            color: #ff4f81;

            font-weight: 900;
        }

        .modal-buttons {
            display: grid;

            grid-template-columns:
                1fr 1fr;

            gap: 10px;

            margin-top: 20px;
        }

        /* =========================================================
           SCOREBOARD
        ========================================================= */

        .score-screen {
            text-align: center;
        }

        .trophy {
            font-size: 75px;

            margin-top: 30px;
        }

        .score-screen h1 {
            font-size: 36px;

            margin:
                10px 0
                25px;

            letter-spacing: -1px;
        }

        .score-list {
            display: flex;
            flex-direction: column;

            gap: 10px;

            text-align: left;

            margin-bottom: 25px;
        }

        .score-row {
            display: flex;
            align-items: center;

            background: white;

            border-radius: 20px;

            padding: 14px 16px;

            box-shadow:
                0 7px 25px rgba(50,50,90,.07);
        }

        .score-position {
            width: 35px;

            font-size: 20px;
            font-weight: 950;
        }

        .score-player {
            flex: 1;

            font-weight: 900;
        }

        .score-points {
            font-size: 22px;
            font-weight: 950;

            color: #6c63ff;
        }

        /* =========================================================
           COUNTDOWN
        ========================================================= */

        .countdown {
            position: fixed;
            inset: 0;

            z-index: 200;

            background:
                linear-gradient(
                    145deg,
                    #6c63ff,
                    #8b72ff
                );

            color: white;

            display: none;

            align-items: center;
            justify-content: center;

            text-align: center;
        }

        .countdown.show {
            display: flex;
        }

        .countdown-number {
            font-size: 150px;
            font-weight: 950;

            animation:
                countdownPop .8s ease;
        }

        .countdown-player {
            font-size: 24px;
            font-weight: 800;
        }

        /* =========================================================
           TOAST
        ========================================================= */

        .toast {
            position: fixed;

            left: 50%;
            bottom: 25px;

            transform:
                translate(-50%, 30px);

            background: #292b42;
            color: white;

            padding: 13px 20px;

            border-radius: 30px;

            font-size: 14px;
            font-weight: 800;

            opacity: 0;

            pointer-events: none;

            transition:
                opacity .2s,
                transform .2s;

            z-index: 300;

            white-space: nowrap;
        }

        .toast.show {
            opacity: 1;

            transform:
                translate(-50%, 0);
        }

        /* =========================================================
           ANIMATIONS
        ========================================================= */

        @keyframes floating {

            0%, 100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-10px);
            }

        }

        @keyframes timerPulse {

            0%, 100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.06);
            }

        }

        @keyframes modalPop {

            from {
                transform: scale(.8);
                opacity: 0;
            }

            to {
                transform: scale(1);
                opacity: 1;
            }

        }

        @keyframes countdownPop {

            0% {
                transform: scale(1.5);
                opacity: 0;
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }

        }

        @keyframes slideIn {

            from {
                transform: translateY(8px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }

        }

        /* =========================================================
           DESKTOP
        ========================================================= */

        @media (min-width: 600px) {

            .app {
                padding-left: 30px;
                padding-right: 30px;
            }

            .buzzers {
                grid-template-columns:
                    repeat(3, 1fr);
            }

        }

        
        .qr {
    display: flex;

    justify-content: center;

    align-items: center;

    margin: 25px auto;

    padding: 15px;

    background: white;

    border-radius: 20px;

    width: fit-content;

    box-shadow:
        0 10px 30px rgba(0,0,0,.08);
}


.qr img,
.qr canvas {
    display: block;
}


.scanner {
    width: 100%;

    max-width: 400px;

    margin: 20px auto;

    border-radius: 20px;

    overflow: hidden;
}


.connection-status {
    margin: 20px 0;

    padding: 15px;

    border-radius: 15px;

    background: #f3f4ff;

    color: #5b54d6;

    font-weight: 800;
}


.hidden {
    display: none !important;
}


.small {
    font-size: 13px;

    color: #888;
}


.waiting-animation {
    font-size: 50px;

    animation:
        waitingSpin 1.5s linear infinite;
}


@keyframes waitingSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


.uh-button {

    width: 100%;

    min-height: 75px;

    margin-top: 20px;

    border: 0;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #ff3d5a,
            #ff1744
        );

    color: white;

    font-size: 22px;

    font-weight: 950;

    box-shadow:
        0 10px 30px
        rgba(255,23,68,.25);

}


.uh-button:active {

    transform: scale(.96);

}


.big-input {

    width: 100%;

    padding: 18px;

    border-radius: 15px;

    border: 2px solid #eee;

    font-size: 18px;

    box-sizing: border-box;

    margin-bottom: 15px;

}