
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: none;
}

body {
    font-family: Arial, sans-serif;
    background: #f8e9e8;
}

#game {
    display: none;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#loading-screen {
    width: 100%;
    height: 100%;
}

/* Горизонтальный игровой экран */

#game {
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
}

/* Подсказка при вертикальном положении */

#rotate-message {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: #f8e5e5;
    color: #a77e91;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 25px;
    font-size: 20px;
}

@media (orientation: portrait) {
    #rotate-message {
        display: flex;
    }
}
/* горизонтальный игровой экран */