* {
        box-sizing: border-box;
    }

    /* ==========================================
       DOOLHOF CONTAINER
       ========================================== */

    .doolhof-container {
        width: min(100%, 900px);
        margin: 20px auto;
        padding: 0 10px;
    }

    h1 {
        margin: 10px 0 5px;
    }

    .instructie {
        margin: 0 0 10px;
        line-height: 1.4;
    }

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

    #timer {
        margin: 10px 0 15px;
        font-size: 22px;
        font-weight: bold;
    }

    #tijd {
        display: inline-block;
        min-width: 65px;
        font-variant-numeric: tabular-nums;
    }

/* ==========================================
       RODE STIP
       ========================================== */

    #stip {
        position: absolute;

        width: 10px;
        height: 10px;

        background: red;
        border-radius: 50%;

        transform: translate(-50%, -50%);
        z-index: 10;
        pointer-events: none;
    }

    /* ==========================================
       GEWONNEN POPUP
       ========================================== */

    #gewonnen {
        display: none;
        position: absolute;
        inset: 0;

        background: rgba(255, 255, 255, 0.78);

        align-items: center;
        justify-content: center;
        z-index: 20;
    }

    #gewonnen.zichtbaar {
        display: flex;
    }

    .gewonnen-box {
        width: min(90%, 330px);
        background: white;
        padding: 25px 30px;
        border-radius: 12px;

        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
        text-align: center;
    }

    .gewonnen-box h2 {
        margin-top: 0;
        margin-bottom: 15px;
    }

    .eindtijd {
        font-size: 20px;
    }

    #eindtijd {
        display: block;
        margin-top: 5px;
        font-size: 28px;
    }

    .gewonnen-box button {
        border: none;
        border-radius: 6px;
        padding: 10px 25px;
        font-size: 16px;
        cursor: pointer;

        background: #198754;
        color: white;
    }

    .gewonnen-box button:hover {
        background: #157347;
    }

    /* ==========================================
       PIJLTJES SMARTPHONE / TABLET
       ========================================== */

    #besturing {
        display: none;
    }

    @media (max-width: 900px) {
        #besturing {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            margin: 15px auto 10px;
        }

        .pijl-rij {
            display: flex;
            gap: 6px;
        }

        .pijl {
            width: 60px;
            height: 55px;

            border: 1px solid #999;
            border-radius: 8px;
            background: #fff;

            font-size: 25px;
            line-height: 1;
            cursor: pointer;

            touch-action: manipulation;
            user-select: none;
            -webkit-user-select: none;

            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .pijl:active {
            transform: scale(0.94);
            background: #eee;
        }
    }

    /* ==========================================
       KLEINE SMARTPHONE
       ========================================== */

    @media (max-width: 400px) {
        .doolhof-container {
            padding: 0 5px;
        }

        h1 {
            font-size: 25px;
        }

        .instructie {
            font-size: 14px;
        }

        #timer {
            font-size: 20px;
        }

        .pijl {
            width: 54px;
            height: 50px;
            font-size: 22px;
        }

        #besturing {
            margin-top: 10px;
        }
    }