/* fonte 7 segmentos para display LCD */
@font-face {
    font-family: 'DSEG7';
    src: url('../assets/fonts/DSEG7.woff2') format('woff2');
}
/* fonte LCD original da maquina */
@font-face {
    font-family: 'LcdShock';
    src: url('../assets/fonts/LCD_SHOCK_TTF.ttf') format('truetype');
}
/* fontes ArialNros/ArialShock/ArialBK sao carregadas via FontFace API
 * em app.js:loadFonts() — nao precisa @font-face aqui */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: none;
}

/* canvas tamanho controlado 100% via JS */
#game {
    display: block;
}

/* posicionado dinamicamente via JS — escondido ate o jogo carregar */
#btn-fullscreen {
    position: fixed;
    z-index: 9999;
    background: transparent;
    border: none;
    padding: 4px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.9));
    display: none;
}
#btn-fullscreen.game-ready { display: flex; }
#btn-fullscreen.help-active { display: none; }
#btn-fullscreen svg {
    width: 100%;
    height: 100%;
}

:fullscreen #btn-fullscreen,
:-webkit-full-screen #btn-fullscreen {
    display: none;
}

/* celular landscape: esconder botao fullscreen (Safari nao suporta) */
@media screen and (orientation: landscape) and (max-height: 500px) {
    #btn-fullscreen {
        display: none;
    }
}

/* overlay para girar celular */
#rotate-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 99999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #FFD700;
    font-family: Arial, sans-serif;
    text-align: center;
}

#rotate-overlay .icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: rotatePhone 2s ease-in-out infinite;
}

#rotate-overlay .text {
    font-size: 22px;
    font-weight: bold;
}

@keyframes rotatePhone {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(90deg); }
}

@media screen and (orientation: portrait) and (max-width: 1024px) {
    #rotate-overlay {
        display: flex;
    }
    #game, #btn-fullscreen {
        display: none;
    }
}
