/* ============================================================
   base.css — Reset, Typography, Input & Button Base
   ============================================================ */

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

body {
    background: #c8dce8; /* Mesma cor da água do mapa */
    color: #2a2a2a; /* Texto escuro para contraste */
    font-family: 'Almendra', serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    touch-action: none; /* Previne zoom por padrão */
    user-select: none; /* Previne seleção de texto */
}

/* Fontes medievais para títulos */
h1, h2, h3, h4, h5, h6,
.auth-title,
.game-title,
.profile-section-title,
.help-title,
.help-section-title,
.shop-title,
.shop-section-title,
#territory-dialog h3,
#action-dialog h3,
#battle-dialog h3 {
    font-family: 'IM Fell English', serif;
}

/* Fonte Almendra para todos os botões e inputs */
button,
input,
textarea,
select,
.action-btn,
.auth-btn,
.auth-input {
    font-family: 'Almendra', serif;
}

/* Estilo dos inputs dentro dos diálogos do jogo */
.auth-input {
    display: block;
    width: 100%;
    padding: 12px 14px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.auth-input:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.auth-input[readonly] {
    color: #888;
    cursor: not-allowed;
    opacity: 0.7;
}

.auth-input option {
    background: #1a1a2e;
    color: #fff;
}

.qty-btn {
    padding: 8px 10px;
    height: 40px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.qty-btn:active {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(0.95);
}

/* Mobile: universal user-select */
@media (max-width: 768px) {
    * {
        -webkit-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}
