/* =====================================================
   GLOBAL
===================================================== */

* {
    box-sizing: border-box;
}


html,
body {

    margin: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #e9e4da;

    font-family: Arial, sans-serif;

    color: #222;
}


#game {

    position: relative;

    width: 100%;
    height: 100%;
}


canvas {

    display: block;
}



/* =====================================================
   STATS
===================================================== */

#stats {

    position: absolute;

    top: 20px;
    left: 20px;

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

    padding: 12px 16px;

    border-radius: 14px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);

    z-index: 10;
}


#stats strong {

    display: block;

    font-size: 18px;
}


#stats span {

    font-size: 13px;

    color: #777;
}



/* =====================================================
   QUESTION
===================================================== */

#ui {

    position: absolute;

    left: 50%;
    bottom: 28px;

    transform: translateX(-50%);

    width: min(420px, calc(100% - 30px));

    text-align: center;

    pointer-events: none;

    z-index: 10;
}


#question {

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

    border-radius: 18px;

    padding: 18px 20px;

    margin-bottom: 12px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.12);
}


#age {

    font-size: 13px;

    color: #888;

    margin-bottom: 6px;

    text-transform: uppercase;

    letter-spacing: 1px;
}


#text {

    font-size: 20px;

    font-weight: bold;
}



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

#buttons {

    display: flex;

    gap: 10px;

    justify-content: center;

    pointer-events: auto;
}


button {

    border: 0;

    border-radius: 14px;

    padding: 14px 30px;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    color: white;

    transition:
        transform 0.15s,
        opacity 0.15s;
}


button:hover {

    transform: translateY(-2px);
}


#yes {

    background: #4f9d69;
}


#no {

    background: #d96565;
}



/* =====================================================
   CAMERA DEBUG
===================================================== */

#cameraDebug {

    margin-top: 10px;

    padding-top: 10px;

    border-top:
        1px solid #ddd;

}


#cameraDebug label {

    display: block;

    font-size: 12px;

    color: #777;

    margin-bottom: 5px;

}


#cameraDebug label strong {

    display: inline;

    font-size: 12px;

    color: #333;

}


#zoomSlider {

    width: 150px;

    cursor: pointer;

}