html {
    text-align: -webkit-center;
}
html, body {
    height: 100dvh;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    margin: 0;
    padding: 0;
}

.board{
    margin: auto;
    border-right: 1px solid;
    border-left: 1px solid;
}

.header{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* центрирует заголовок */
    height: 10dvh;
    color: #5a3e1b; /* тёмно-коричневый, мягкий контраст */
    font-weight: bold;
    background: linear-gradient(135deg, #ffecd2, #ffa78c);
}

.text-header{
    text-align: center;
}

.game {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-height: 980px;
    height: 80dvh;
    padding: 0;
}

.footer{
    height: 10dvh;
    align-items: center;
}

#objects {
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 0.5em;
    margin: 1em 0;
    align-items: center; /* центруем emoji по вертикали */
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20%); }
    100% { transform: translateY(0); }
}

.answers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em;
    margin: 1em 0;
    height: 10dvh;
}

.answers button {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    padding: 0.5em 1em;
    border-radius: 1em;
    border: none;
    cursor: pointer;
    background-color: #fda084;
    min-width: 80px;
    transition: transform 0.2s;
    color: #3a280e; /* тёмно-коричневый, мягкий контраст */
    font-weight: bold;
}

.answers button:hover,
.answers button:active{
    transform: scale(1.1);
}

.answers span {
    font-size: clamp(2rem, 5vw, 4rem);
    animation: bounce 0.6s ease;
    height: fit-content;
}

.result {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    height: 5dvh;
    margin:0;
    color: #5a3e1b; /* тёмно-коричневый, мягкий контраст */
    font-weight: bold;
}

#score {
    font-size: clamp(1rem, 4vw, 2rem);
    margin: 0;
    color: #5a3e1b; /* тёмно-коричневый, мягкий контраст */
    font-weight: bold;
}

