@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&display=swap');

/* --- RESET ABSOLUTO --- */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    /* O comando abaixo mata o fundo de estrelas do site principal */
    background-image: none !important; 
    overflow: hidden;
}

/* --- TELA DO JOGO --- */
.screen-content {
    background-color: #000000 !important;
    color: #ffffff;
    /* Fira Code é excelente para terminais modernos/limpos */
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 13px; /* Tamanho confortável e compacto */
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 15px;
    /* Remove qualquer brilho/blur */
    text-shadow: none !important; 
}

/* --- LOG PRINCIPAL (Output) --- */
#azure-terminal {
    flex: 1;
    overflow-y: auto;
    white-space: pre-wrap; /* Quebra linha se necessário */
    padding-bottom: 20px;
    scrollbar-width: none;
}
#azure-terminal::-webkit-scrollbar { display: none; }

/* --- TIPOGRAFIA DO JOGO --- */
.ascii-art {
    font-size: 10px; /* Arte menor para caber */
    line-height: 10px;
    white-space: pre;
    margin-bottom: 20px;
    font-weight: bold;
    display: block;
}

.system-msg { color: #888888; } /* Cinza para mensagens técnicas */
.narrative  { color: #ffffff; } /* Branco para história */
.dialogue   { color: #ffffff; font-style: italic; } /* Branco itálico para falas */
.combat-log { color: #ffffff; font-weight: 600; } /* Branco negrito para combate */
.item-get   { text-decoration: underline; } /* Sublinhado para itens */

/* --- BARRA DE AÇÕES (Input) --- */
#action-bar {
    border-top: 1px solid #ffffff; /* Linha branca sólida simples */
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 130px; /* Espaço fixo para os botões não pularem */
    background: #000;
}

/* BOTÕES ASCII PUROS */
.ascii-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    padding: 2px 5px;
    display: block;
    width: 100%;
    transition: none; /* Sem animação suave, é terminal */
}

/* Efeito Terminal Clássico: Inverte as cores ao passar o mouse/tocar */
.ascii-btn:hover, .ascii-btn:active {
    background-color: #ffffff;
    color: #000000;
}

/* Adiciona os colchetes via CSS para ficar limpo no HTML */
.ascii-btn::before { content: "[ "; }
.ascii-btn::after { content: " ]"; }

/* --- INPUT DE TEXTO --- */
.input-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.input-line {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 5px;
}

.prompt-char { 
    margin-right: 8px; 
    font-weight: bold;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    /* Linha debaixo do input para saber onde digitar */
    border-bottom: 1px solid #ffffff; 
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    padding: 2px;
    border-radius: 0;
}

/* Botão de confirmar input (setinha) */
.confirm-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    margin-left: 10px;
    cursor: pointer;
    padding: 2px 8px;
}
.confirm-btn:active {
    background: #fff;
    color: #000;
}

/* --- VERSÃO PC (Ajustes de Layout) --- */
@media (min-width: 1024px) {
    .screen-content { 
        font-size: 16px; 
        padding: 40px; 
        flex-direction: row; 
    }
    
    #azure-terminal {
        width: 70%;
        border-right: 1px solid #fff;
        padding-right: 20px;
    }
    
    #action-bar {
        width: 30%;
        border-top: none;
        padding-left: 20px;
        padding-top: 0;
        justify-content: flex-end;
    }
    
    .ascii-art { font-size: 12px; line-height: 12px; }
}