/* Coquille du jeu : un canevas plein écran, rien d'autre. */

@font-face { font-family: "Baloo 2"; src: url("fonts/baloo2.woff2") format("woff2"); font-weight: 400 800; font-display: block; }
@font-face { font-family: "Lexend"; src: url("fonts/lexend.woff2") format("woff2"); font-weight: 100 900; font-display: block; }
@font-face { font-family: "OpenDyslexic"; src: url("fonts/opendyslexic-700.woff2") format("woff2"); font-weight: 700; font-display: block; }

html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #1b1040;
    overscroll-behavior: none;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}
#game { position: fixed; inset: 0; }
#game canvas { display: block; }
.nojs { color: #fff; text-align: center; font-family: sans-serif; }

/* Le jeu se joue à l'horizontale : sur un téléphone tenu debout, on invite à tourner l'écran. */
#rotate {
    display: none;
    position: fixed; inset: 0; z-index: 10;
    flex-direction: column; align-items: center; justify-content: center;
    background: #2b1b5e; color: #fff; text-align: center;
    font: 700 1.5rem "Baloo 2", Verdana, sans-serif;
}
#rotate p { margin: .3rem 1rem; }
#rotate p:first-child { font-size: 4rem; }
@media (orientation: portrait) and (max-width: 700px) {
    #rotate { display: flex; }
}
