/* public/css/style.css - Otimizado para Mobile, Tablet e Desktop */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent;
}

html, body { 
    font-family: 'Press Start 2P', cursive; 
    background: #0a0e1a; 
    color: #ffd700; 
    overflow: hidden; 
    width: 100%;
    height: 100vh;
    height: 100dvh; 
    touch-action: manipulation;
}

/* TELA DE LOGIN & CADASTRO (RESPONSIVA & ROLÁVEL) */
#auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: url('../images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px env(safe-area-inset-bottom, 20px) 15px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.auth-box {
    background: rgba(10, 14, 26, 0.92);
    border: 3px solid #ffd700;
    border-radius: 16px;
    padding: 20px 20px 25px 20px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: auto;
}

.game-logo { 
    font-family: 'Cinzel', serif; 
    font-size: 26px; 
    font-weight: 900; 
    color: #ffd700; 
    margin-bottom: 5px; 
    text-shadow: 0 0 15px rgba(255,215,0,0.6); 
}

.game-tagline { 
    font-size: 8px; 
    color: #8a2be2; 
    margin-bottom: 20px; 
    letter-spacing: 1px; 
    line-height: 1.4;
}

.auth-input {
    width: 100%; 
    padding: 12px; 
    margin-bottom: 12px;
    background: #16213e; 
    border: 2px solid #4169e1; 
    border-radius: 8px;
    color: #fff; 
    font-family: 'Press Start 2P', cursive; 
    font-size: 9px;
    outline: none;
    box-sizing: border-box;
}

.auth-input:focus { 
    border-color: #ffd700; 
    box-shadow: 0 0 10px rgba(255,215,0,0.3);
}

.auth-btn {
    width: 100%; 
    padding: 14px; 
    background: linear-gradient(180deg, #ffd700 0%, #daa520 100%);
    border: none; 
    border-radius: 8px; 
    color: #0a0e1a; 
    font-family: 'Cinzel', serif;
    font-size: 15px; 
    font-weight: 900; 
    cursor: pointer; 
    margin-bottom: 14px;
    box-shadow: 0 4px 0 #8b6914; 
    transition: transform 0.1s;
}

.auth-btn:active { 
    transform: translateY(4px); 
    box-shadow: 0 0 0 #8b6914; 
}

.auth-toggle { 
    font-size: 8px; 
    color: #aaa; 
    cursor: pointer; 
    text-decoration: underline; 
    line-height: 1.5;
    padding: 5px;
}

.auth-toggle:hover { 
    color: #ffd700; 
}

.error-msg { 
    color: #ff6b6b; 
    font-size: 8px; 
    margin-bottom: 12px; 
    min-height: 12px; 
    line-height: 1.4;
}

/* TELAS DO JOGO */
.game-screen { 
    display: none; 
    height: 100vh;
    height: 100dvh; 
    width: 100vw; 
    position: relative; 
    box-sizing: border-box;
    padding-bottom: 70px; /* Espaço seguro para a barra de navegação inferior */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.game-screen.active { 
    display: block; 
}

#screen-map { 
    z-index: 1; 
    padding-bottom: 0;
    overflow: hidden;
}

#map { 
    height: 100%; 
    width: 100%; 
    filter: brightness(0.8) contrast(1.1); 
}

.ui-overlay {
    position: absolute; 
    top: 15px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 1000;
    text-align: center; 
    background: linear-gradient(180deg, rgba(10,14,26,0.95) 0%, rgba(20,30,60,0.9) 100%);
    padding: 12px 18px; 
    border-radius: 12px; 
    border: 2px solid #ffd700;
    box-shadow: 0 0 20px rgba(255,215,0,0.3); 
    width: 90%;
    max-width: 420px;
}

.stats { 
    font-size: 9px; 
    color: #fff; 
    display: flex; 
    gap: 8px; 
    justify-content: center; 
    margin-top: 8px; 
}

.stat-item { 
    flex: 1;
    background: rgba(0,0,0,0.6); 
    padding: 6px 4px; 
    border-radius: 6px; 
    border: 1px solid #4169e1; 
}

.stat-label { 
    color: #8a2be2; 
    display: block; 
    margin-bottom: 2px; 
    font-size: 7px; 
}

.stat-value { 
    color: #ffd700; 
    font-size: 10px; 
}

.player-sprite {
    width: 64px; 
    height: 64px;
    background-repeat: no-repeat; 
    image-rendering: pixelated;
    filter: drop-shadow(0 0 8px rgba(255,215,0,0.6));
}

/* 🌀 MARCADORES E PORTAIS DE MISTÉRIO DO LEAFLET (OSM) */
.map-mob-marker {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes pulse {
    0% {
        transform: scale(0.85);
        filter: drop-shadow(0 0 4px #8a2be2);
    }
    100% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 14px #bf55ec);
    }
}

/* ⚔️ NOTIFICAÇÃO DE ENCONTRO DE MONSTRO */
#monster-alert-modal {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    z-index: 9999;
    width: 92%;
    max-width: 500px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#monster-alert-modal.active {
    transform: translateX(-50%) translateY(0);
}

.monster-alert-card {
    background: #0f172a;
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    font-family: 'Press Start 2P', cursive, sans-serif;
    color: #fff;
}

.monster-alert-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.monster-icon {
    font-size: 32px;
}

.monster-info h3 {
    font-size: 11px;
    color: #ffd700;
    margin: 0 0 4px 0;
    text-transform: uppercase;
}

.monster-info p {
    font-size: 9px;
    color: #94a3b8;
    margin: 0;
}

.timer-bar-container {
    width: 100%;
    height: 6px;
    background: #334155;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

#alert-timer-bar {
    width: 100%;
    height: 100%;
    background: #ef4444;
    transition: width 0.1s linear;
}

.monster-alert-actions {
    display: flex;
    gap: 10px;
}

.btn-flee, .btn-fight {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    cursor: pointer;
    border: none;
}

.btn-flee {
    background: #334155;
    color: #cbd5e1;
    border: 1px solid #64748b;
}

.btn-fight {
    background: #dc2626;
    color: #fff;
    border: 1px solid #f87171;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

/* 🏟️ ARENA DE BATALHA */
#combat-arena-modal {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    width: 95vw;
    max-width: 650px;
    max-height: 92dvh;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow-y: auto;
}

#combat-arena-modal.active {
    display: flex;
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.combat-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.arena-card {
    width: 100%;
    height: 260px;
    border: 3px solid #ffd700;
    border-radius: 16px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    background-size: cover;
    background-position: center bottom;
    position: relative;
    overflow: hidden;
}

.bg-daycity     { background-image: url('../images/daycity.png'); }
.bg-nightcity   { background-image: url('../images/nightcity.png'); }
.bg-daypark     { background-image: url('../images/daypark.png'); }
.bg-nightpark   { background-image: url('../images/nightpark.png'); }
.bg-dayforest   { background-image: url('../images/dayforest.png'); }
.bg-nightforest { background-image: url('../images/nightforest.png'); }
.bg-daybeach    { background-image: url('../images/daybeach.png'); }
.bg-nightbeach  { background-image: url('../images/nightbeach.png'); }

.arena-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 14, 26, 0.85);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    z-index: 5;
}

.hud-hero, .hud-monster { flex: 1; }
.hud-vs { font-size: 9px; color: #ef4444; margin: 0 8px; font-weight: bold; }
.hud-name { font-size: 7px; color: #ffd700; display: block; margin-bottom: 4px; text-transform: uppercase; }

.hp-bar-bg {
    width: 100%;
    height: 8px;
    background: #334155;
    border-radius: 4px;
    overflow: hidden;
}

.hp-bar-fill {
    height: 100%;
    background: #22c55e;
    transition: width 0.3s ease;
}

.hp-bar-fill.monster-hp { background: #ef4444; }

.arena-stage {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 20px 10px 20px;
    flex: 1;
    z-index: 10;
}

.hero-battle-sprite, .monster-battle-sprite {
    width: 54px;
    height: 54px;
    image-rendering: pixelated;
    transform: scale(1.5);
    transform-origin: bottom center;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.9));
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.arena-gesture-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(10, 14, 26, 0.95);
    padding: 8px 12px;
    border-radius: 12px;
    border: 2px solid #ffd700;
    box-shadow: 0 8px 20px rgba(0,0,0,0.8);
}

.gesture-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, #1e1b4b 0%, #311042 100%);
    border: 1px solid #a855f7;
    border-radius: 6px;
    padding: 8px 12px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.skill-icon { font-size: 20px; }
.skill-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.skill-name {
    font-size: 8px;
    color: #ffd700;
    margin-bottom: 3px;
}

.gesture-instruction {
    font-size: 7px;
    color: #a855f7;
    letter-spacing: 0.5px;
    animation: blink 1.5s infinite;
}

.arena-utility-actions {
    display: flex;
    gap: 8px;
}

.arena-utility-actions .btn-action {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    cursor: pointer;
    border: 1px solid #4169e1;
    background: #16213e;
    color: #fff;
    transition: transform 0.1s;
}

.btn-action:active { transform: scale(0.95); }
.btn-action:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-item { border-color: #2ecc71; color: #86efac; }
.btn-flee-battle { border-color: #64748b; color: #cbd5e1; }

/* TELA DO HERÓI E SLOTS DE EQUIPAMENTO */
#screen-hero {
    background: linear-gradient(180deg, #0a0e1a 0%, #1a1a2e 100%);
    z-index: 10; 
    padding: 20px 15px 90px 15px; 
    text-align: center;
}

.hero-avatar-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto;
    position: relative;
    max-width: 380px;
    gap: 8px;
}

.equipment-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
}

.equip-slot {
    width: 38px;
    height: 38px;
    background: rgba(16, 24, 48, 0.9);
    border: 2px solid #4169e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.8);
    transition: all 0.2s ease-in-out;
    position: relative;
    user-select: none;
}

.equip-slot:hover, .equip-slot:active {
    transform: scale(1.08);
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.equip-slot .slot-placeholder {
    opacity: 0.35;
    filter: grayscale(80%);
}

.equip-slot.equipped {
    border-color: #ffd700;
    background: rgba(22, 33, 62, 0.95);
}

.equip-slot.equipped .slot-placeholder {
    opacity: 1;
    filter: none;
}

.equip-slot.rarity-basic    { border-color: #9ca3af; box-shadow: 0 0 6px rgba(156, 163, 175, 0.4); }
.equip-slot.rarity-uncommon { border-color: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.5); }
.equip-slot.rarity-rare     { border-color: #3b82f6; box-shadow: 0 0 10px rgba(59, 130, 246, 0.6); }
.equip-slot.rarity-epic     { border-color: #a855f7; box-shadow: 0 0 12px rgba(168, 85, 247, 0.8); }

.avatar-arrow-btn {
    background: none;
    border: none;
    color: #ffd700;
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
    padding: 5px;
}

.hero-avatar-circle {
    width: 100px;
    height: 100px;
    background: rgba(0,0,0,0.5);
    border: 3px solid #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.hero-backpack-circle {
    width: 46px;
    height: 46px;
    background: rgba(22, 33, 62, 0.9);
    border: 3px solid #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
}

.hero-backpack-circle:hover, .hero-backpack-circle:active {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    background: rgba(30, 45, 80, 0.95);
}

/* MODAL DE INVENTÁRIO */
#inventory-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0,0,0,0.85);
    z-index: 6000;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', cursive;
    backdrop-filter: blur(6px);
}

#inventory-modal.active { display: flex; }

.inventory-card {
    background: #0a0e1a;
    border: 3px solid #ffd700;
    padding: 16px;
    border-radius: 16px;
    width: 92%;
    max-width: 380px;
    max-height: 85dvh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 0 30px rgba(255,215,0,0.4);
}

.inventory-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 10px;
}

.inventory-header h2 { color: #ffd700; font-size: 10px; letter-spacing: 1px; }

.gold-display-box {
    background: rgba(0,0,0,0.6);
    border: 1px solid #ffd700;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 9px;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.inventory-slot {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #16213e;
    border: 2px solid #4169e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    position: relative;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.8);
    transition: border-color 0.2s;
}

.inventory-slot.has-item { border-color: #ffd700; cursor: pointer; }

.inventory-slot .item-count {
    position: absolute;
    bottom: 2px;
    right: 3px;
    font-size: 6px;
    color: #fff;
    background: rgba(0,0,0,0.7);
    padding: 1px 3px;
    border-radius: 3px;
}

.inventory-close-btn {
    width: 100%;
    background: #ff4757;
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    box-shadow: 0 4px 0 #b32b37;
}

.inventory-close-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #b32b37; }

.hero-avatar .player-sprite { transform: scale(1.3); }
.hero-name { font-family: 'Cinzel', serif; font-size: 22px; color: #ffd700; margin-bottom: 4px; word-break: break-word; }
.hero-class { font-size: 9px; color: #8a2be2; margin-bottom: 15px; }

.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px; 
    max-width: 420px; 
    margin: 0 auto; 
}

.stat-box { 
    background: rgba(22, 33, 62, 0.8); 
    border: 2px solid #4169e1; 
    border-radius: 10px; 
    padding: 10px; 
    text-align: center; 
}

.stat-box .label { font-size: 7px; color: #aaa; margin-bottom: 4px; line-height: 1.3; }
.stat-box .value { font-size: 12px; color: #ffd700; }

/* 📜 TELA DE QUESTS */
#screen-quests {
    background: linear-gradient(180deg, #0a0e1a 0%, #161224 100%);
    z-index: 10;
    padding: 20px 15px 90px 15px;
    text-align: center;
}

@keyframes questGlow {
    0% { box-shadow: 0 0 5px rgba(46, 204, 113, 0.3); }
    50% { box-shadow: 0 0 15px rgba(46, 204, 113, 0.8); }
    100% { box-shadow: 0 0 5px rgba(46, 204, 113, 0.3); }
}

.quest-card-done { animation: questGlow 2s infinite ease-in-out; }

/* BARRA DE NAVEGAÇÃO INFERIOR RESPONSIVA */
.bottom-nav {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100vw;
    background: rgba(10, 14, 26, 0.96); 
    border-top: 2px solid #ffd700;
    display: flex; 
    justify-content: space-around; 
    padding: 6px 0 env(safe-area-inset-bottom, 6px) 0;
    z-index: 2000; 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-item {
    flex: 1;
    display: flex; 
    flex-direction: column; 
    align-items: center;
    color: #8a2be2; 
    font-size: 7px; 
    cursor: pointer; 
    transition: color 0.2s;
    background: none; 
    border: none; 
    font-family: 'Press Start 2P', cursive;
    padding: 2px 0;
}

.nav-item.active { color: #ffd700; }

/* 🎨 ESTILOS DOS ÍCONES PIXEL ART */
.nav-pixel-icon {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
    margin-bottom: 3px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.nav-item.active .nav-pixel-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px #ffd700);
}

.pixel-icon {
    width: 28px;
    height: 28px;
    image-rendering: pixelated;
}

.spell-btn-icon {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
}

.social-tab-icon {
    width: 18px;
    height: 18px;
    image-rendering: pixelated;
    margin-right: 4px;
}

.logout-btn {
    position: absolute; 
    top: 15px; 
    right: 15px; 
    z-index: 1000;
    background: #ff6b6b; 
    border: 2px solid #fff; 
    color: #fff;
    padding: 6px 10px; 
    font-family: 'Press Start 2P', cursive; 
    font-size: 7px;
    border-radius: 5px; 
    cursor: pointer;
}

/* REMOVER BANDEIRA DO LEAFLET */
.leaflet-control-attribution img,
.leaflet-control-attribution svg,
.leaflet-control-attribution .leaflet-attribution-flag {
    display: none !important; 
    visibility: hidden !important; 
    width: 0 !important; 
    height: 0 !important;
}

.leaflet-control-attribution {
    font-family: 'Press Start 2P', cursive !important; 
    font-size: 7px !important;
    color: #8a2be2 !important; 
    background: rgba(10, 14, 26, 0.8) !important;
    padding: 4px 6px !important; 
    border-radius: 4px; 
    line-height: 1.4 !important;
}

.leaflet-control-attribution a { color: #ffd700 !important; text-decoration: none !important; }

/* TELA DE RECOMPENSAS DIÁRIAS */
#screen-rewards {
    background: linear-gradient(180deg, #0a0e1a 0%, #1a1a2e 100%);
    z-index: 10; 
    padding: 20px 15px 90px 15px;
}

.rewards-header { text-align: center; margin-bottom: 20px; }

.rewards-title {
    font-family: 'Cinzel', serif; 
    font-size: 26px; 
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255,215,0,0.6); 
    margin-bottom: 8px;
}

.rewards-subtitle { font-size: 8px; color: #8a2be2; line-height: 1.4; }

.rewards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px; 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 10px 0;
}

.reward-day {
    background: rgba(22, 33, 62, 0.8); 
    border: 2px solid #4169e1;
    border-radius: 12px; 
    padding: 12px; 
    text-align: center;
    position: relative; 
    transition: all 0.3s; 
    cursor: default;
    min-height: 160px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
}

.reward-day.available {
    border-color: #ffd700; 
    box-shadow: 0 0 20px rgba(255,215,0,0.4);
    cursor: pointer; 
    animation: pulse 2s infinite; 
    transform: scale(1.03);
}

.reward-day.claimed { opacity: 0.7; border-color: #2ecc71; background: rgba(46, 204, 113, 0.1); }
.reward-day.locked { opacity: 0.4; filter: grayscale(80%); border-color: #555; }

/* 👥 ESTILOS DA TABERNA SOCIAL */
#screen-social {
    padding: 20px 15px 90px 15px;
    font-family: 'Press Start 2P', cursive;
}

.social-tabs-nav {
    display: flex;
    justify-content: space-around;
    background: rgba(22, 33, 62, 0.9);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 15px;
}

.social-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #8a2be2;
    font-family: 'Press Start 2P', cursive;
    font-size: 7px;
    padding: 8px 4px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-tab-btn.active {
    background: #ffd700;
    color: #0a0e1a;
    font-weight: bold;
}

.social-sub-tab { display: none; }
.social-sub-tab.active { display: block; }

.social-card {
    background: rgba(16, 24, 48, 0.9);
    border: 2px solid #4169e1;
    border-radius: 10px;
    padding: 12px;
    text-align: left;
}

.rank-filter-btn {
    background: #16213e;
    border: 1px solid #4169e1;
    color: #aaa;
    font-family: 'Press Start 2P', cursive;
    font-size: 7px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
}

.rank-filter-btn.active {
    border-color: #ffd700;
    color: #ffd700;
    background: #223055;
}

.rank-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #334155;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 7px;
}

.rank-item.top-3 {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.friend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 7px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-dot.online { background: #2ecc71; box-shadow: 0 0 6px #2ecc71; }
.status-dot.offline { background: #7f8c8d; }

/* 🛍️ ESTILOS DA LOJA DO REINO (STORE UI) */
#screen-shop {
    padding: 20px 15px 90px 15px;
    font-family: 'Press Start 2P', cursive;
}

.store-container {
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}

.store-outfits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.store-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s ease;
}

.store-card:hover {
    border-color: #ffd700;
}

/* ANIMAÇÕES */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.player-marker img { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
.player-marker { background: transparent !important; border: none !important; }
#screen-customization { display: none; }
#screen-customization.active { display: flex !important; }
.leaflet-marker-icon { z-index: 9999 !important; position: absolute !important; }
#options-modal { pointer-events: none; }
#options-modal[style*="flex"] { pointer-events: auto; }

/* 📱 & 📑 MEDIA QUERIES PARA TABLETS E TELAS MAIORES */
@media screen and (min-width: 600px) {
    .auth-box {
        padding: 30px;
        max-width: 440px;
    }
    .game-logo {
        font-size: 32px;
    }
    .game-tagline {
        font-size: 9px;
    }
    .auth-input {
        font-size: 10px;
        padding: 14px;
    }
    .auth-btn {
        font-size: 16px;
        padding: 16px;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 600px;
    }
    .hero-avatar-wrapper {
        max-width: 480px;
        gap: 15px;
    }
    .equip-slot {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .hero-avatar-circle {
        width: 130px;
        height: 130px;
    }
    .nav-item {
        font-size: 8px;
    }
    .nav-pixel-icon {
        width: 28px;
        height: 28px;
    }
}

@media screen and (min-width: 900px) {
    .game-screen {
        max-width: 768px;
        margin: 0 auto;
        border-left: 2px solid rgba(255, 215, 0, 0.2);
        border-right: 2px solid rgba(255, 215, 0, 0.2);
    }
    .bottom-nav {
        max-width: 768px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 12px 12px 0 0;
    }
}

