.game {
    display: grid;
    width: min(720px, 100%, calc((100vh - 100px) * 1.5));
    width: min(720px, 100%, calc((100dvh - 100px) * 1.5));
}

.game > * {
    grid-area: 1 / 1;
}

canvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    background-color: var(--color-canvas);
}

.start-screen {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius);
    background-color: var(--color-sky);
    background-image: url("../assets/images/9_intro_outro_screens/start-screen.png");
    background-size: 100% auto;
    background-position: bottom;
    background-repeat: no-repeat;
}

.start-menu {
    display: flex;
    gap: 16px;
}

.start-screen-link {
    font-size: 16px;
    color: var(--color-text-dark);
}

.end-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius);
    background-color: var(--color-overlay);
}

.end-screen-image {
    width: 55%;
}

.end-screen-buttons {
    display: flex;
    gap: 16px;
}

.game-controls {
    justify-self: end;
    align-self: start;
    display: flex;
    gap: 8px;
    padding: 8px;
}

.game.fullscreen {
    grid-template-columns: min(100%, 150vh);
    justify-content: center;
    align-content: center;
    background-color: var(--color-canvas);
}

.game.fullscreen canvas,
.game.fullscreen .start-screen,
.game.fullscreen .end-screen {
    border-radius: 0;
}

@media screen and (max-height: 600px) {
    .game {
        width: min(720px, 100%, 150vh);
        width: min(720px, 100%, 150dvh);
    }
}
