/* ==========================================
   MYTHICAL CREATURES - GAME STYLE UI
   ========================================== */

/* CSS Variables - Game Theme */
:root {
    /* Primary Game Colors - Lighter Blue */
    --primary: #64d8ff;
    --primary-dark: #29b6f6;
    --primary-light: #a0e7ff;
    --secondary: #66bb6a;
    --secondary-dark: #388e3c;
    --accent: #ffb74d;
    --accent-dark: #f57c00;
    --success: #4caf50;
    --warning: #ffc107;
    --danger: #f44336;
    --pink: #ec407a;
    --purple: #ab47bc;
    
    /* Game Backgrounds - Lighter Blue */
    --bg-gradient-start: #2a3f8e;
    --bg-gradient-mid: #3a5aab;
    --bg-gradient-end: #4a6fc5;
    --bg-card: rgba(255, 255, 255, 0.12);
    --bg-card-solid: #1e3a5f;
    --bg-card-hover: rgba(255, 255, 255, 0.18);
    --bg-panel: linear-gradient(180deg, #2980d4 0%, #1e6bb8 100%);
    --bg-button: linear-gradient(180deg, #64d8ff 0%, #29b6f6 100%);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #b3e5fc;
    --text-dark: #1a237e;
    --text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    
    /* Borders - Game Style */
    --border-game: 4px solid rgba(255, 255, 255, 0.3);
    --border-button: 4px solid rgba(0, 0, 0, 0.2);
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --border-radius-lg: 30px;
    --border-radius-pill: 50px;
    
    /* Shadows - Softer Style */
    --shadow-button: 0 3px 0 rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 4px 0 rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.15);
    --shadow-inset: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(100, 216, 255, 0.4);
    
    /* Rarity Colors */
    --rarity-comum: #9e9e9e;
    --rarity-raro: #2196f3;
    --rarity-epico: #9c27b0;
    --rarity-lendario: #ff9800;
    
    /* Type Colors */
    --type-terra: #8d6e63;
    --type-agua: #29b6f6;
    --type-floresta: #66bb6a;
    --type-voador: #90caf9;
    --type-fogo: #ff5722;
    --type-gelo: #00bcd4;
    --type-mistico: #ce93d8;
    
    /* Spacing */
    --sidebar-width: 100px;
    --header-height: 80px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================
   CUSTOM SCROLLBAR - GAME STYLE
   ========================================== */

/* WebKit Browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(26, 35, 126, 0.6) 0%, rgba(13, 71, 161, 0.6) 100%);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
    box-shadow: 0 0 10px rgba(100, 216, 255, 0.5);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #1976d2 100%);
}

::-webkit-scrollbar-corner {
    background: rgba(26, 35, 126, 0.6);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(26, 35, 126, 0.6);
}

html, body {
    height: 100%;
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* Background Image Layer */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    filter: blur(1.8px);
    z-index: 0;
    pointer-events: none;
    animation: bgPulse 8s ease-in-out infinite alternate;
}

/* Floating Particles Animation - Layer 1 (Rising) - Distribuídas aleatoriamente */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 200vh;
    z-index: 0;
    pointer-events: none;
    background-image: 
        /* Partículas com glow - posições Y variadas (0-100%) para distribuição aleatória */
        radial-gradient(4px 4px at 5% 15%, rgba(150,200,255,1) 0%, rgba(150,200,255,0.4) 50%, transparent 100%),
        radial-gradient(3px 3px at 12% 42%, rgba(255,255,255,1) 0%, rgba(255,255,255,0.3) 50%, transparent 100%),
        radial-gradient(5px 5px at 18% 78%, rgba(100,180,255,1) 0%, rgba(100,180,255,0.5) 50%, transparent 100%),
        radial-gradient(3px 3px at 23% 5%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.3) 50%, transparent 100%),
        radial-gradient(4px 4px at 8% 67%, rgba(180,220,255,1) 0%, rgba(180,220,255,0.4) 50%, transparent 100%),
        radial-gradient(3px 3px at 33% 29%, rgba(255,255,255,1) 0%, rgba(255,255,255,0.3) 50%, transparent 100%),
        radial-gradient(5px 5px at 41% 91%, rgba(120,190,255,1) 0%, rgba(120,190,255,0.5) 50%, transparent 100%),
        radial-gradient(3px 3px at 47% 53%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.3) 50%, transparent 100%),
        radial-gradient(4px 4px at 52% 8%, rgba(200,230,255,1) 0%, rgba(200,230,255,0.4) 50%, transparent 100%),
        radial-gradient(3px 3px at 59% 36%, rgba(255,255,255,1) 0%, rgba(255,255,255,0.3) 50%, transparent 100%),
        radial-gradient(5px 5px at 64% 72%, rgba(140,200,255,1) 0%, rgba(140,200,255,0.5) 50%, transparent 100%),
        radial-gradient(3px 3px at 71% 19%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.3) 50%, transparent 100%),
        radial-gradient(4px 4px at 76% 84%, rgba(170,210,255,1) 0%, rgba(170,210,255,0.4) 50%, transparent 100%),
        radial-gradient(3px 3px at 82% 47%, rgba(255,255,255,1) 0%, rgba(255,255,255,0.3) 50%, transparent 100%),
        radial-gradient(5px 5px at 89% 11%, rgba(110,185,255,1) 0%, rgba(110,185,255,0.5) 50%, transparent 100%),
        radial-gradient(3px 3px at 94% 62%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.3) 50%, transparent 100%),
        radial-gradient(4px 4px at 3% 95%, rgba(190,225,255,1) 0%, rgba(190,225,255,0.4) 50%, transparent 100%),
        radial-gradient(3px 3px at 16% 24%, rgba(255,255,255,1) 0%, rgba(255,255,255,0.3) 50%, transparent 100%),
        radial-gradient(5px 5px at 27% 58%, rgba(130,195,255,1) 0%, rgba(130,195,255,0.5) 50%, transparent 100%),
        radial-gradient(3px 3px at 36% 3%, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.2) 50%, transparent 100%),
        radial-gradient(4px 4px at 44% 81%, rgba(160,215,255,1) 0%, rgba(160,215,255,0.4) 50%, transparent 100%),
        radial-gradient(3px 3px at 55% 45%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.3) 50%, transparent 100%),
        radial-gradient(5px 5px at 63% 97%, rgba(100,175,255,1) 0%, rgba(100,175,255,0.5) 50%, transparent 100%),
        radial-gradient(3px 3px at 69% 31%, rgba(255,255,255,1) 0%, rgba(255,255,255,0.3) 50%, transparent 100%),
        radial-gradient(4px 4px at 78% 69%, rgba(185,225,255,1) 0%, rgba(185,225,255,0.4) 50%, transparent 100%),
        radial-gradient(3px 3px at 85% 13%, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.2) 50%, transparent 100%),
        radial-gradient(5px 5px at 91% 55%, rgba(125,190,255,1) 0%, rgba(125,190,255,0.5) 50%, transparent 100%),
        radial-gradient(3px 3px at 97% 88%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.3) 50%, transparent 100%),
        radial-gradient(4px 4px at 7% 39%, rgba(175,220,255,1) 0%, rgba(175,220,255,0.4) 50%, transparent 100%),
        radial-gradient(3px 3px at 29% 76%, rgba(255,255,255,1) 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    background-size: 100% 50%;
    animation: riseParticles 15s linear infinite;
    opacity: 0.8;
    filter: blur(0.5px);
}

@keyframes riseParticles {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Garantir que todo conteúdo fique acima do background */
body > * {
    position: relative;
    z-index: 1;
}

@keyframes bgPulse {
    0% {
        opacity: 0.15;
        transform: scale(1);
    }
    100% {
        opacity: 0.22;
        transform: scale(1.02);
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

a {
    color: var(--accent);
    text-decoration: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
}

input, select {
    font-family: inherit;
}

/* Screens */
.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: flex;
}

/* ==========================================
   LOGIN SCREEN - GAME STYLE
   ========================================== */
#login-screen {
    background: linear-gradient(135deg, #1a237e 0%, #311b92 50%, #4a148c 100%);
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#login-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 30s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

.login-container {
    text-align: center;
    padding: 50px 40px;
    background: linear-gradient(180deg, rgba(33, 150, 243, 0.9) 0%, rgba(13, 71, 161, 0.95) 100%);
    border-radius: var(--border-radius-lg);
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-card), 0 0 60px rgba(33, 150, 243, 0.3);
    max-width: 420px;
    width: 90%;
    position: relative;
    z-index: 1;
}

.logo {
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.3);
    -webkit-text-stroke: 2px rgba(0, 0, 0, 0.1);
}

.logo p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.login-logo {
    max-width: 220px;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.header-logo {
    height: 50px;
    width: auto;
    margin-right: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(180deg, #4caf50 0%, #388e3c 100%);
    border: none;
    border-radius: var(--border-radius-pill);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-button);
    transition: all 0.2s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3), 0 12px 30px rgba(0, 0, 0, 0.4);
}

.google-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.3);
}

.google-btn img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

/* Login Mute Button */
.login-mute-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.login-mute-btn:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%);
    transform: scale(1.1);
}

.login-mute-btn.muted {
    background: linear-gradient(180deg, rgba(100, 100, 100, 0.4) 0%, rgba(80, 80, 80, 0.3) 100%);
}

/* ==========================================
   DASHBOARD LAYOUT - GAME STYLE (TOP NAV)
   ========================================== */
#dashboard-screen {
    display: none;
    flex-direction: column;
    min-height: 100vh;
}

#dashboard-screen.active {
    display: flex;
}

/* Top Header with Navigation */
.top-header {
    position: sticky;
    top: 0;
    height: auto;
    min-height: 70px;
    background: linear-gradient(180deg, #1565c0 0%, #0d47a1 100%);
    border-bottom: 4px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    flex-wrap: wrap;
    gap: 10px;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Top Navigation Menu */
.top-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 5px;
    padding: 0;
    margin: 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-item.active {
    background: linear-gradient(180deg, #4fc3f7 0%, #0288d1 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.4);
}

.nav-item .icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(150, 200, 255, 0.5);
    transition: all 0.3s ease;
}

.nav-item:hover .icon {
    text-shadow: 0 0 15px rgba(150, 200, 255, 0.8);
    transform: scale(1.1);
}

.nav-item.active .icon {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.nav-item .label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    background: linear-gradient(180deg, #f44336 0%, #c62828 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Header Icon Buttons */
.header-icon-btn,
.logout-btn-small {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    cursor: pointer;
}

.logout-btn-small {
    background: linear-gradient(180deg, #f44336 0%, #c62828 100%);
}

.header-icon-btn {
    background: linear-gradient(180deg, #64b5f6 0%, #1976d2 100%);
}

.header-icon-btn:hover,
.logout-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3);
}

.header-icon-btn.muted {
    background: linear-gradient(180deg, #78909c 0%, #546e7a 100%);
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 80px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider:hover {
    background: rgba(255, 255, 255, 0.3);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(180deg, #64d8ff 0%, #29b6f6 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(100, 216, 255, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(180deg, #64d8ff 0%, #29b6f6 100%);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    height: 6px;
}

/* Main Content - Full Height */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #4fc3f7;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.4);
}

.player-details {
    display: flex;
    flex-direction: column;
}

.player-name {
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.player-score {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.currency-display {
    display: flex;
    gap: 12px;
}

.currency {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.currency .icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

/* Content Area - Fit to Screen */
.content-area {
    padding: 15px 20px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Sections */
.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
}

/* ==========================================
   HOME SECTION - COMPACT GAME STYLE
   ========================================== */
#home-section.section.active {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: auto;
    overflow: visible;
}

.section-header {
    margin-bottom: 0;
}

.expedition-status-card {
    background: linear-gradient(180deg, rgba(33, 150, 243, 0.2) 0%, rgba(13, 71, 161, 0.3) 100%);
    border-radius: var(--border-radius);
    padding: 15px;
    border: 3px solid rgba(79, 195, 247, 0.3);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.expedition-status-card h3 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.1rem;
}

.no-expedition {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.expedition-active {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.expedition-active .location {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.expedition-active .time-remaining {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.expedition-progress {
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    margin-top: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.expedition-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffeb3b 0%, #ffc107 100%);
    border-radius: 3px;
    transition: width 1s linear;
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
}

/* ==========================================
   HOME - NEW LAYOUT
   ========================================== */

/* Home Stats Bar */
.home-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.home-stat {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.home-stat:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.home-stat-icon {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 4px;
}

.home-stat-value {
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    color: #fff;
}

.home-stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Home Actions Grid */
.home-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.home-action-card {
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.home-action-card.expedition {
    background: linear-gradient(180deg, rgba(76, 175, 80, 0.25) 0%, rgba(46, 125, 50, 0.35) 100%);
    border: 2px solid rgba(76, 175, 80, 0.4);
}

.home-action-card.battle {
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.2) 0%, rgba(245, 124, 0, 0.3) 100%);
    border: 2px solid rgba(255, 193, 7, 0.4);
}

.home-action-card:hover {
    transform: translateY(-3px);
}

.action-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.action-card-header .action-icon {
    font-size: 1.5rem;
}

.action-card-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.action-card-content {
    min-height: 50px;
    margin-bottom: 12px;
}

.action-card-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
}

/* Home Secondary Grid */
.home-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.home-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.home-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.home-card-header h4 {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 400;
}

.team-preview-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 60px;
    align-items: center;
}

.items-preview-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 60px;
    align-items: center;
}

.empty-team, .no-items {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-style: italic;
}

/* Team Preview Cards */
.team-preview-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    min-width: 70px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.team-preview-card .creature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    overflow: hidden;
}

.team-preview-card .creature-icon .creature-sprite-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-preview-card .creature-icon .creature-sprite-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.team-preview-card .creature-name {
    font-size: 0.75rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
}

/* Item Preview Cards */
.item-preview-card {
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.15) 100%);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.item-preview-card .item-icon {
    font-size: 1.2rem;
}

.item-preview-card .item-qty {
    font-size: 0.75rem;
    color: #fff;
    font-weight: 500;
}

/* Enhanced Item Preview Card */
.item-preview-card {
    cursor: pointer;
    transition: all 0.2s ease;
    flex-direction: column;
    min-width: 80px;
    text-align: center;
}

.item-preview-card:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.35) 0%, rgba(255, 152, 0, 0.25) 100%);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.item-preview-card.usable {
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.item-preview-card.usable:hover {
    border-color: rgba(76, 175, 80, 0.8);
}

.item-preview-card .item-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.item-preview-card .item-name-preview {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75px;
}

/* Team Preview Card Clickable */
.team-preview-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.team-preview-card:hover {
    transform: translateY(-3px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.12) 100%);
    box-shadow: 0 4px 12px rgba(100, 216, 255, 0.3);
}

/* Battle Rewards Preview */
.battle-rewards-preview {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.battle-rewards-preview span {
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #fff;
}

.no-expedition {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Battle Type Badges */
.battle-type {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.battle-type.ranked {
    color: #ffeb3b;
}

.battle-type.friendly {
    color: #81c784;
}

.no-rewards-notice {
    display: block;
    font-size: 0.75rem;
    color: #ffab91;
    margin-top: 5px;
}

.rewards-notice {
    display: block;
    font-size: 0.75rem;
    color: #a5d6a7;
    margin-top: 5px;
}

/* Battle Result Badges */
.battle-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.battle-type-badge.ranked {
    background: linear-gradient(180deg, #ffc107 0%, #f57c00 100%);
    color: #000;
}

.battle-type-badge.friendly {
    background: linear-gradient(180deg, #81c784 0%, #388e3c 100%);
    color: #fff;
}

.friendly-notice {
    background: rgba(255, 152, 0, 0.2);
    border: 2px solid rgba(255, 152, 0, 0.5);
    border-radius: var(--border-radius-sm);
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.friendly-notice span {
    display: block;
    font-weight: 700;
    color: #ffab91;
    margin-bottom: 5px;
}

.friendly-notice p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Battle Reward Colors */
.battle-reward.positive {
    color: #a5d6a7;
}

.battle-reward.negative {
    color: #ef9a9a;
}

/* Friendly Battle Button */
.btn-friendly {
    background: linear-gradient(180deg, #81c784 0%, #388e3c 100%);
    color: white;
}

.btn-friendly:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
}

.btn-disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

/* ==========================================
   BUTTONS - GAME STYLE
   ========================================== */
.btn {
    padding: 12px 24px;
    border-radius: var(--border-radius-pill);
    font-weight: 400;
    font-size: 0.95rem;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: none;
    letter-spacing: 0.3px;
    text-shadow: none;
    box-shadow: var(--shadow-button);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(180deg, #64d8ff 0%, #29b6f6 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: linear-gradient(180deg, #90a4ae 0%, #607d8b 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.2rem;
}

.btn-buy {
    background: linear-gradient(180deg, #4caf50 0%, #388e3c 100%);
    color: white;
}

.btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 rgba(0, 0, 0, 0.3), 0 15px 30px rgba(0, 0, 0, 0.4);
}

.btn-danger {
    background: linear-gradient(180deg, #f44336 0%, #c62828 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(180deg, #ffb74d 0%, #f57c00 100%);
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ==========================================
   TEAM SECTION - GAME STYLE (5 SLOTS)
   ========================================== */
.team-manager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: calc(100vh - 150px);
}

.team-slots, .available-creatures {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: var(--border-radius);
    padding: 15px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-card);
    overflow-y: auto;
}

.team-slots h3, .available-creatures h3 {
    margin-bottom: 20px;
}

/* Inline Header */
.team-header-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.team-header-inline h3 {
    margin: 0;
    font-size: 1.1rem;
}

/* Instructions text */
.team-instructions {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    max-width: 500px;
}

/* Team Power Display */
.team-power-display {
    display: flex;
    justify-content: center;
    margin: 8px 0 12px 0;
}

.power-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 152, 0, 0.15) 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.power-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.3);
}

.power-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.power-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.power-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.power-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* New Team Grid - 3 slots top, 2 slots bottom */
.team-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 auto 20px;
    max-width: 900px;
    min-height: auto;
}

.team-grid-new .team-slot-new:nth-child(4),
.team-grid-new .team-slot-new:nth-child(5) {
    grid-column: span 1;
}

.team-grid-new .team-slot-new:nth-child(4) {
    margin-left: 25%;
}

.team-grid-new .team-slot-new:nth-child(5) {
    margin-right: 25%;
}

/* Individual Slot */
.team-slot-new {
    background: transparent;
    border-radius: var(--border-radius);
    padding: 0;
    border: none;
    transition: all 0.3s ease;
    position: relative;
}

.team-slot-new:hover {
    transform: translateY(-3px);
}

.team-slot-new.selected {
    transform: scale(1.02);
}

/* Slot Header */
.slot-header {
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    padding: 0 8px;
}

.slot-number {
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Position Toggle Button */
.position-toggle {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.position-toggle.attack {
    background: linear-gradient(180deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.4);
}

.position-toggle.defense {
    background: linear-gradient(180deg, #4fc3f7 0%, #0288d1 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(79, 195, 247, 0.4);
}

.position-toggle:hover {
    transform: scale(1.05);
}

.toggle-icon {
    font-size: 0.9rem;
}

.toggle-text {
    letter-spacing: 0.5px;
}

/* Slot Content */
.team-slot-new .slot-content {
    aspect-ratio: 2/3;
    background: rgba(0, 0, 0, 0.3);
    border: 3px dashed rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 18px;
}

.team-slot-new .slot-content.drag-over {
    border-color: var(--primary);
    background: rgba(100, 216, 255, 0.15);
}

.team-slot-new .slot-content:hover {
    border-style: solid;
    transform: scale(1.02);
}

.team-slot-new .slot-content.filled {
    border: none;
    padding: 0;
    background: transparent;
}

/* Slot Stats */
.team-slot-new .slot-stats {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
    font-weight: 600;
}

.team-slot-new .slot-stats .stat-value {
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Team Stats Summary */
.team-stats-summary {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    margin-top: 15px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 35px;
    border-radius: var(--border-radius);
    min-width: 150px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-3px);
}

.stat-box.attack {
    background: linear-gradient(180deg, rgba(255, 152, 0, 0.25) 0%, rgba(255, 87, 34, 0.15) 100%);
    border: 3px solid rgba(255, 152, 0, 0.5);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
}

.stat-box.defense {
    background: linear-gradient(180deg, rgba(79, 195, 247, 0.25) 0%, rgba(33, 150, 243, 0.15) 100%);
    border: 3px solid rgba(79, 195, 247, 0.5);
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.2);
}

.stat-box .stat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.stat-box .stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-box .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-box.attack .stat-value {
    color: #ffb74d;
    text-shadow: 0 0 10px rgba(255, 183, 77, 0.4);
}

.stat-box.defense .stat-value {
    color: #4fc3f7;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.4);
}

/* Mini Creature in Slot */
.team-slot-new .mini-creature {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.team-slot-new .creature-sprite {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
}

.team-slot-new .creature-sprite-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.team-slot-new .creature-sprite-fallback {
    font-size: 2.5rem;
}

.team-slot-new .creature-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.team-slot-new .creature-stats-mini {
    display: flex;
    gap: 10px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Filter Bar - Estilos definidos junto com collection-filters */

/* Creatures Grid - Available creatures for team */
.creatures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    max-height: calc(100vh - 350px);
    overflow-y: auto;
    padding: 10px 5px;
}

.creatures-grid .creature-card {
    cursor: grab;
    transition: all 0.2s ease;
}

.creatures-grid .creature-card:active {
    cursor: grabbing;
}

.creatures-grid .creature-card.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.creatures-grid.drag-over {
    background: rgba(100, 216, 255, 0.1);
    border: 2px dashed var(--primary);
    border-radius: 12px;
}

.slot-content.dragging {
    opacity: 0.5;
}

.mini-creature[draggable="true"] {
    cursor: grab;
}

.mini-creature[draggable="true"]:active {
    cursor: grabbing;
}

.creatures-grid .creature-card:hover {
    transform: translateY(-5px) scale(1.03);
}

/* Draggable card wrapper */
.creature-card-draggable {
    cursor: grab;
    transition: all 0.2s ease;
}

.creature-card-draggable:active {
    cursor: grabbing;
}

.creature-card-draggable.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.creature-card-draggable .creature-card {
    pointer-events: none;
}

/* Stat value animation */
.stat-box .stat-value {
    transition: transform 0.2s ease;
}

/* ==========================================
   SHOP SECTION
   ========================================== */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.shop-category {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 15px;
    border: 1px solid var(--border-color);
}

.shop-category h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 1rem;
}

.shop-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.shop-item:hover {
    border-color: var(--primary);
}

.item-icon {
    font-size: 1.6rem;
    width: 36px;
    text-align: center;
}

.item-info {
    flex: 1;
}

.item-info h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.item-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.item-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.item-price span {
    font-weight: 600;
    font-size: 0.85rem;
}

/* Inventory */
.inventory-section {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 15px;
    border: 1px solid var(--border-color);
}

.inventory-section h3 {
    margin-bottom: 12px;
    font-size: 1rem;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
}

.inventory-item {
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
    padding: 10px 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.inventory-item .item-icon {
    font-size: 1.5rem;
}

.inventory-item .item-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inventory-item .item-count {
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.inventory-item .btn-use-item {
    margin-top: 3px;
    padding: 3px 8px;
    font-size: 0.65rem;
}

.inventory-item .btn-use-item.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.empty-inventory {
    color: var(--text-secondary);
    text-align: center;
    padding: 12px;
    font-size: 0.85rem;
}

/* ==========================================
   SCOREBOARD SECTION
   ========================================== */
.scoreboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.tab-btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--text-primary);
}

/* Podium */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px 20px 30px;
}

.podium-place {
    text-align: center;
    padding: 20px 15px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 255, 255, 0.15);
    width: 160px;
    transition: all 0.3s ease;
}

.podium-place.first {
    transform: translateY(-30px) scale(1.05);
    border-color: #ffd700;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 180, 0, 0.08) 100%);
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.25),
        0 0 40px rgba(255, 215, 0, 0.15);
}

.podium-place.second {
    border-color: #c0c0c0;
    background: linear-gradient(180deg, rgba(192, 192, 192, 0.12) 0%, rgba(150, 150, 150, 0.06) 100%);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.15);
}

.podium-place.third {
    border-color: #cd7f32;
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.12) 0%, rgba(180, 100, 30, 0.06) 100%);
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.15);
}

.podium-avatar {
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.podium-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.first .podium-avatar {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.second .podium-avatar {
    border-color: #c0c0c0;
}

.third .podium-avatar {
    border-color: #cd7f32;
}

.podium-name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.podium-score {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
}

.podium-stand {
    margin-top: 12px;
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.first .podium-stand { 
    color: #ffd700; 
    font-size: 2.2rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.4);
}
.second .podium-stand { 
    color: #e0e0e0; 
}
.third .podium-stand { 
    color: #cd7f32; 
}

/* Ranking Table */
.ranking-list {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--border-color);
}

#ranking-table {
    width: 100%;
    border-collapse: collapse;
}

#ranking-table th,
#ranking-table td {
    padding: 15px;
    text-align: left;
}

#ranking-table th {
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

#ranking-table tr:hover {
    background: var(--bg-input);
}

#ranking-table td:first-child {
    font-weight: 600;
    color: var(--primary-light);
}

/* Ranking Player Cell */
.ranking-player {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ranking-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    flex-shrink: 0;
}

/* Top Rank Rows */
#ranking-table tr.top-rank {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
}

#ranking-table tr.rank-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15) 0%, transparent 100%);
}

#ranking-table tr.rank-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.12) 0%, transparent 100%);
}

#ranking-table tr.rank-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.12) 0%, transparent 100%);
}

/* ==========================================
   FRIENDS SECTION
   ========================================== */
.add-friend {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.add-friend input {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
}

.add-friend input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.add-friend input:focus {
    outline: none;
    border-color: var(--primary);
}

.friends-list-container, .friend-requests-container, .sent-requests-container {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 15px;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.friends-list-container h3, .friend-requests-container h3, .sent-requests-container h3 {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.friends-list, .sent-requests {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.friend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.friend-item:hover {
    background: var(--bg-card-hover);
}

.friend-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
}

.friend-info {
    flex: 1;
}

.friend-name {
    font-weight: 600;
}

.friend-score {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.friend-status {
    display: block;
    font-size: 0.8rem;
    color: var(--warning);
    margin-top: 2px;
}

.sent-request {
    border-left: 3px solid var(--warning);
}

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

.no-friends, .no-requests {
    color: var(--text-secondary);
    text-align: center;
    padding: 12px;
    font-size: 0.85rem;
}

/* ==========================================
   COLLECTION SECTION
   ========================================== */
.collection-stats {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.collection-stats span {
    display: block;
    margin-bottom: 10px;
}

.collection-progress {
    height: 10px;
    background: var(--bg-input);
    border-radius: 5px;
    overflow: hidden;
}

.collection-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.collection-filters,
.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Filter Select Wrapper - Estilo Game */
.filter-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(30, 60, 114, 0.95) 0%, rgba(20, 40, 80, 0.98) 100%);
    border: 3px solid rgba(100, 180, 255, 0.4);
    border-radius: var(--border-radius-pill);
    padding: 0 8px 0 16px;
    box-shadow: 
        0 4px 0 rgba(0, 0, 0, 0.2),
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    min-width: 180px;
}

.filter-select-wrapper:hover {
    border-color: rgba(100, 216, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 0 rgba(0, 0, 0, 0.2),
        0 10px 25px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(100, 216, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.filter-select-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 
        0 4px 0 rgba(0, 0, 0, 0.2),
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(100, 216, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.filter-select-wrapper .filter-icon {
    font-size: 1.1rem;
    margin-right: 8px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

.filter-select-wrapper select {
    flex: 1;
    padding: 12px 35px 12px 8px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 140px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.filter-select-wrapper select:focus {
    outline: none;
}

.filter-select-wrapper select option {
    background: #1e3a5f;
    color: #fff;
    padding: 12px 16px;
    font-weight: 500;
}

.filter-select-wrapper select option:hover,
.filter-select-wrapper select option:focus,
.filter-select-wrapper select option:checked {
    background: #2980d4;
    color: #fff;
}

/* Fix para dropdown do select em diferentes browsers */
select {
    background-color: #1e3a5f !important;
    color: #fff !important;
}

#filter-type,
#filter-rarity,
#collection-filter-type,
#collection-filter-rarity {
    background-color: transparent;
    color: #fff;
}

#filter-type option,
#filter-rarity option,
#collection-filter-type option,
#collection-filter-rarity option {
    background-color: #1e3a5f;
    color: #fff;
    padding: 10px;
}

/* Seta customizada do select */
.filter-select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    transition: transform 0.2s ease;
}

.filter-select-wrapper:hover::after {
    color: var(--primary-light);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 25px;
    border-radius: var(--border-radius-sm);
    color: white;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow-md);
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

.toast.warning {
    background: var(--warning);
    color: #333;
}

.toast.info {
    background: var(--primary);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */
@media (max-width: 1024px) {
    .team-manager {
        grid-template-columns: 1fr;
    }
    
    .shop-grid {
        grid-template-columns: 1fr;
    }
    
    .home-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .home-secondary-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */
@media (max-width: 768px) {
    /* Header Mobile - Reorganizado */
    .top-header {
        flex-wrap: wrap;
        padding: 8px 10px;
        gap: 8px;
        flex-direction: row;
        align-items: center;
    }
    
    /* Linha 1: Logo, Avatar, Nome, Gems, Coins, Som, Logout */
    .header-left {
        order: 1;
        flex: 0 0 auto;
        gap: 8px;
    }
    
    .header-logo {
        height: 32px;
        margin-right: 8px;
    }
    
    .player-info {
        gap: 6px;
    }
    
    .player-info .avatar {
        width: 28px;
        height: 28px;
    }
    
    .player-info .player-name {
        font-size: 0.75rem;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .header-right {
        order: 2;
        flex: 1;
        justify-content: flex-end;
        gap: 6px;
    }
    
    .currency-display {
        gap: 6px;
    }
    
    .currency {
        padding: 4px 8px;
        font-size: 0.75rem;
        gap: 3px;
    }
    
    .currency .icon {
        font-size: 0.85rem;
    }
    
    /* Volume control - slider escondido por padrão */
    .volume-control {
        position: relative;
    }
    
    .volume-slider {
        position: absolute;
        right: 100%;
        top: 50%;
        transform: translateY(-50%);
        width: 60px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        margin-right: 5px;
    }
    
    .volume-control:hover .volume-slider,
    .volume-control:focus-within .volume-slider {
        opacity: 1;
        pointer-events: auto;
    }
    
    .header-icon-btn,
    .logout-btn-small {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    /* Linha 2: Menu completo horizontal */
    .top-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        padding: 5px 0 0 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 5px;
    }
    
    .nav-menu {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-around;
        width: 100%;
        gap: 2px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0;
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none;
    }
    
    .nav-item {
        flex: 1;
        min-width: 0;
        padding: 6px 4px;
        flex-direction: column;
        align-items: center;
    }
    
    .nav-item .icon {
        font-size: 1.1rem;
    }
    
    .nav-item .label {
        font-size: 0.55rem;
        white-space: nowrap;
    }
    
    /* Content Mobile */
    .main-content {
        margin-left: 0;
        padding-top: 0;
    }
    
    .content-area {
        padding: 10px;
    }
    
    /* Home Stats Bar Mobile */
    .home-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .home-stat {
        padding: 10px 6px;
    }
    
    .home-stat-icon {
        font-size: 1.1rem;
    }
    
    .home-stat-value {
        font-size: 1rem;
    }
    
    .home-stat-label {
        font-size: 0.6rem;
    }
    
    /* Home Actions Mobile */
    .home-actions-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .home-action-card {
        padding: 15px;
    }
    
    .action-card-header h3 {
        font-size: 1rem;
    }
    
    /* Home Secondary Mobile */
    .home-secondary-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Team Grid Mobile */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .team-slot {
        padding: 10px;
    }
    
    /* Collection Grid Mobile */
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Buttons Mobile */
    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Modal Mobile */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 5vh auto;
        padding: 15px;
    }
    
    /* Scoreboard Mobile */
    .podium {
        flex-direction: row;
        align-items: flex-end;
        gap: 8px;
        padding: 15px 10px 20px;
    }
    
    .podium-place.first {
        order: 0;
    }
    
    .podium-place {
        flex: 1;
        min-width: 0;
        max-width: none;
    }
    
    /* Friends Mobile */
    .friend-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .friend-actions {
        width: 100%;
        justify-content: center;
    }
    
    /* Toast Mobile */
    .toast-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    .toast {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    
    /* Team Grid Mobile - 3 columns top, 2 bottom */
    .team-grid-new {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 5px;
    }
    
    .team-grid-new .team-slot-new:nth-child(4) {
        margin-left: 16.66%;
    }
    
    .team-grid-new .team-slot-new:nth-child(5) {
        margin-right: 16.66%;
    }
    
    .power-box {
        padding: 8px 16px;
        gap: 8px;
    }
    
    .power-icon {
        font-size: 1.3rem;
    }
    
    .power-label {
        font-size: 0.65rem;
    }
    
    .power-value {
        font-size: 1.2rem;
    }
    
    .team-slot-new {
        padding: 0;
    }
    
    .team-slot-new .slot-header {
        padding: 0 4px;
        top: -6px;
    }
    
    .team-slot-new .slot-number {
        font-size: 0.65rem;
        width: 16px;
        height: 16px;
    }
    
    .team-slot-new .position-toggle {
        padding: 2px 4px;
        font-size: 0.5rem;
    }
    
    .team-slot-new .toggle-icon {
        font-size: 0.7rem;
    }
    
    .team-slot-new .toggle-text {
        display: none;
    }
    
    .team-slot-new .slot-content {
        aspect-ratio: 2/3;
        border-width: 2px;
        margin-top: 14px;
    }
    
    .team-slot-new .slot-content.filled {
        padding: 0;
    }
    
    .team-slot-new .slot-plus {
        font-size: 1.2rem;
    }
    
    .team-slot-new .creature-sprite-img {
        width: 40px;
        height: 40px;
    }
    
    .team-slot-new .creature-name {
        font-size: 0.55rem;
        line-height: 1.1;
    }
    
    .team-slot-new .creature-stats-mini {
        display: none;
    }
    
    .team-slot-new .slot-stats {
        font-size: 0.65rem;
        margin-top: 3px;
    }
    
    
    /* Scoreboard/Ranking Mobile - Smaller podium */
    .podium {
        gap: 8px;
        padding: 10px;
    }
    
    .podium-place {
        max-width: 150px;
        padding: 12px 10px;
    }
    
    .podium-place.first {
        transform: translateY(-15px) scale(1.02);
    }
    
    .podium-avatar {
        width: 50px;
        height: 50px;
    }
    
    .podium-name {
        font-size: 0.75rem;
    }
    
    .podium-score {
        font-size: 0.7rem;
    }
    
    .podium-stand {
        font-size: 1.5rem;
        margin-top: 8px;
    }
    
    .first .podium-stand {
        font-size: 1.7rem;
    }
    
    /* Ranking List Mobile - Centered */
    .ranking-list {
        padding: 10px;
    }
    
    #ranking-table th,
    #ranking-table td {
        padding: 8px 5px;
        font-size: 0.8rem;
    }
    
    .ranking-player {
        gap: 6px;
    }
    
    .ranking-avatar {
        width: 24px;
        height: 24px;
    }
    
    /* Inventory Grid Mobile - Show item name and use button */
    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
        gap: 6px;
    }
    
    .inventory-item {
        padding: 8px 6px;
        flex-direction: column;
        gap: 3px;
    }
    
    .inventory-item .item-icon {
        font-size: 1.3rem;
    }
    
    .inventory-item .item-count {
        position: static;
        font-size: 0.6rem;
        background: rgba(0,0,0,0.3);
        padding: 2px 6px;
        border-radius: 10px;
    }
    
    /* Shop Mobile - More compact */
    .shop-category {
        padding: 12px;
    }
    
    .shop-category h3 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .shop-items {
        gap: 6px;
    }
    
    .shop-item {
        padding: 8px 10px;
        gap: 8px;
    }
    
    .item-icon {
        font-size: 1.3rem;
        width: 30px;
    }
    
    .item-info h4 {
        font-size: 0.8rem;
    }
    
    .item-info p {
        font-size: 0.7rem;
    }
    
    .item-price {
        gap: 4px;
    }
    
    .item-price span {
        font-size: 0.75rem;
    }
    
    .item-price .btn {
        padding: 5px 12px;
        font-size: 0.7rem;
    }
}

/* ==========================================
   BATTLE SUMMARY STYLES
   ========================================== */
.battle-result.detailed {
    max-width: 700px;
    margin: 0 auto;
    padding: 15px;
}

.battle-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 15px;
}

.battle-title-section {
    flex: 1;
    text-align: left;
}

.battle-title-section h3 {
    font-size: 1.6rem;
    margin: 5px 0 0 0;
}

.battle-result.detailed h3 {
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.battle-result.detailed .result-message {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.battle-result.detailed .battle-rewards {
    display: flex;
    gap: 8px;
    flex-direction: row;
}

.battle-result.detailed .battle-reward {
    padding: 8px 15px;
    flex: 0 1 auto;
}

.battle-result.detailed .reward-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 2px;
}

.battle-result.detailed .reward-value {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Battle Summary Teams Comparison */
.battle-summary-teams {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
}

.summary-team {
    flex: 1;
    text-align: center;
}

.summary-team h4 {
    font-size: 0.85rem;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.summary-team.player-team h4 {
    color: var(--primary-light);
    border-color: rgba(100, 216, 255, 0.3);
}

.summary-team.enemy-team h4 {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
}

.summary-team-stats {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}

.summary-stat {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.summary-stat .stat-icon {
    margin-right: 4px;
}

.summary-positions {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

.pos-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.pos-badge.attack {
    background: rgba(255, 152, 0, 0.2);
    color: #ffb74d;
    border: 1px solid rgba(255, 152, 0, 0.4);
}

.pos-badge.defense {
    background: rgba(79, 195, 247, 0.2);
    color: #4fc3f7;
    border: 1px solid rgba(79, 195, 247, 0.4);
}

.summary-creatures {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-creature {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.7rem;
}

.summary-creature.attack {
    border-left: 3px solid #ff9800;
}

.summary-creature.defense {
    border-left: 3px solid #4fc3f7;
}

.summary-creature .creature-name {
    color: rgba(255, 255, 255, 0.9);
}

.summary-creature .creature-stats {
    color: rgba(255, 255, 255, 0.7);
}

.summary-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    padding: 0 6px;
}

/* Battle Tips */
.battle-tips {
    margin: 8px 0;
    padding: 8px 12px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--border-radius-sm);
    text-align: left;
}

.battle-tips h4 {
    font-size: 0.8rem;
    color: #ffc107;
    margin-bottom: 4px;
}

.battle-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.battle-tips li {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 2px 0;
    padding-left: 12px;
    position: relative;
}

.battle-tips li::before {
    content: "•";
    position: absolute;
    left: 5px;
    color: #ffc107;
}

/* Battle Actions */
.battle-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.battle-actions .btn {
    min-width: 120px;
    padding: 8px 12px;
    font-size: 0.8rem;
}

/* Friendly Notice */
.battle-result.detailed .friendly-notice {
    margin: 8px 0;
    padding: 6px 12px;
    background: rgba(255, 152, 0, 0.15);
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    color: #ffb74d;
}

/* Responsive Battle Summary */
@media (max-width: 600px) {
    .battle-header-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .battle-title-section {
        width: 100%;
    }
    
    .battle-result.detailed .battle-rewards {
        width: 100%;
        justify-content: flex-start;
    }
    
    .battle-summary-teams {
        flex-direction: column;
    }
    
    .summary-vs {
        padding: 10px 0;
    }
    
    .battle-actions {
        flex-direction: column;
    }
    
    .battle-actions .btn {
        width: 100%;
    }
}

/* ==========================================
   RESPONSIVE - SMALL MOBILE
   ========================================== */
@media (max-width: 480px) {
    .top-header {
        padding: 8px;
    }
    
    .nav-btn {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .currency {
        padding: 5px 8px;
        font-size: 0.8rem;
    }
    
    .home-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .home-stat-value {
        font-size: 0.95rem;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .creature-card.mini {
        min-width: 80px;
    }
    
    /* Nav Menu Small Mobile */
    .nav-item {
        padding: 5px 8px;
    }
    
    .nav-item .icon {
        font-size: 1rem;
    }
    
    .nav-item .label {
        font-size: 0.55rem;
    }
    
    /* Team Grid Small Mobile */
    .team-grid-new {
        gap: 4px;
    }
    
    .team-slot-new {
        padding: 0;
    }
    
    .team-slot-new .slot-content {
        aspect-ratio: 2/3;
        margin-top: 12px;
    }
    
    .team-slot-new .creature-sprite-img {
        width: 35px;
        height: 35px;
    }
    
    .team-slot-new .creature-name {
        font-size: 0.5rem;
    }
    
    .team-slot-new .slot-number {
        font-size: 0.6rem;
        width: 14px;
        height: 14px;
    }
    
    /* Ranking Small Mobile */
    .podium-place {
        max-width: 120px;
        padding: 10px 8px;
    }
    
    .podium-avatar {
        width: 40px;
        height: 40px;
    }
    
    .podium-name {
        font-size: 0.65rem;
    }
    
    .podium-score {
        font-size: 0.6rem;
    }
    
    .podium-stand {
        font-size: 1.3rem;
    }
    
    .first .podium-stand {
        font-size: 1.5rem;
    }
    
    /* Inventory Small Mobile */
    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
        gap: 5px;
    }
    
    .inventory-item .item-name {
        font-size: 0.55rem;
    }
    
    .inventory-item {
        padding: 6px 5px;
    }
    
    .inventory-item .item-icon {
        font-size: 1.2rem;
    }
    
    /* Shop Small Mobile */
    .shop-grid {
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .shop-category {
        padding: 10px;
    }
    
    .shop-item {
        padding: 6px 8px;
    }
    
    .item-icon {
        font-size: 1.2rem;
        width: 26px;
    }
    
    .item-info h4 {
        font-size: 0.75rem;
    }
    
    .item-info p {
        font-size: 0.65rem;
    }
}

/* ==========================================
   VERSION BADGE - HIDDEN
   ========================================== */
#version-badge {
    display: none !important;
}

#version-badge #game-version {
    color: var(--primary-light);
}

/* ==========================================
   LORE BUTTON & MODAL
   ========================================== */

/* Login Buttons Container */
.login-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

/* Lore Button on Login Screen */
.lore-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 35px;
    background: linear-gradient(180deg, rgba(139, 90, 43, 0.9) 0%, rgba(101, 67, 33, 0.95) 100%);
    border: 3px solid rgba(218, 165, 32, 0.6);
    border-radius: var(--border-radius-pill);
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(218, 165, 32, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: lore-btn-glow 3s ease-in-out infinite;
}

.lore-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.9);
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.lore-btn .lore-icon {
    font-size: 1.3rem;
}

@keyframes lore-btn-glow {
    0%, 100% {
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(218, 165, 32, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.4),
            0 0 35px rgba(255, 215, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* Lore Modal */
.lore-modal {
    background: radial-gradient(ellipse at center, rgba(10, 25, 50, 0.98) 0%, rgba(5, 10, 20, 0.99) 100%);
    overflow: hidden;
}

/* Floating Particles for Lore Modal */
.lore-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    z-index: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(3px 3px at 5% 15%, rgba(150,200,255,0.8) 0%, rgba(150,200,255,0.3) 50%, transparent 100%),
        radial-gradient(2px 2px at 12% 42%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.2) 50%, transparent 100%),
        radial-gradient(4px 4px at 18% 78%, rgba(100,180,255,0.8) 0%, rgba(100,180,255,0.4) 50%, transparent 100%),
        radial-gradient(2px 2px at 23% 5%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.2) 50%, transparent 100%),
        radial-gradient(3px 3px at 8% 67%, rgba(180,220,255,0.8) 0%, rgba(180,220,255,0.3) 50%, transparent 100%),
        radial-gradient(2px 2px at 33% 29%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.2) 50%, transparent 100%),
        radial-gradient(4px 4px at 41% 91%, rgba(120,190,255,0.8) 0%, rgba(120,190,255,0.4) 50%, transparent 100%),
        radial-gradient(2px 2px at 47% 53%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.2) 50%, transparent 100%),
        radial-gradient(3px 3px at 52% 8%, rgba(200,230,255,0.8) 0%, rgba(200,230,255,0.3) 50%, transparent 100%),
        radial-gradient(2px 2px at 59% 36%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.2) 50%, transparent 100%),
        radial-gradient(4px 4px at 64% 72%, rgba(140,200,255,0.8) 0%, rgba(140,200,255,0.4) 50%, transparent 100%),
        radial-gradient(2px 2px at 71% 19%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.2) 50%, transparent 100%),
        radial-gradient(3px 3px at 76% 84%, rgba(170,210,255,0.8) 0%, rgba(170,210,255,0.3) 50%, transparent 100%),
        radial-gradient(2px 2px at 82% 47%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.2) 50%, transparent 100%),
        radial-gradient(4px 4px at 89% 11%, rgba(110,185,255,0.8) 0%, rgba(110,185,255,0.4) 50%, transparent 100%),
        radial-gradient(2px 2px at 94% 62%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.2) 50%, transparent 100%),
        radial-gradient(3px 3px at 3% 95%, rgba(190,225,255,0.8) 0%, rgba(190,225,255,0.3) 50%, transparent 100%),
        radial-gradient(2px 2px at 16% 24%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.2) 50%, transparent 100%),
        radial-gradient(4px 4px at 27% 58%, rgba(130,195,255,0.8) 0%, rgba(130,195,255,0.4) 50%, transparent 100%),
        radial-gradient(2px 2px at 36% 3%, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.15) 50%, transparent 100%),
        radial-gradient(3px 3px at 44% 81%, rgba(160,215,255,0.8) 0%, rgba(160,215,255,0.3) 50%, transparent 100%),
        radial-gradient(2px 2px at 55% 45%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.2) 50%, transparent 100%),
        radial-gradient(4px 4px at 63% 97%, rgba(100,175,255,0.8) 0%, rgba(100,175,255,0.4) 50%, transparent 100%),
        radial-gradient(2px 2px at 69% 31%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.2) 50%, transparent 100%),
        radial-gradient(3px 3px at 78% 69%, rgba(185,225,255,0.8) 0%, rgba(185,225,255,0.3) 50%, transparent 100%);
    background-size: 100% 50%;
    animation: loreParticlesRise 18s linear infinite;
    opacity: 0.7;
}

@keyframes loreParticlesRise {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.lore-modal .lore-content {
    max-width: 850px;
    width: 95%;
    max-height: 98vh;
    height: auto;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(15, 30, 60, 0.95) 0%, rgba(10, 20, 40, 0.98) 100%);
    border: 2px solid rgba(100, 180, 255, 0.3);
    border-radius: 20px;
    padding: 25px 30px;
    position: relative;
    z-index: 1;
    box-shadow: 
        0 0 60px rgba(100, 180, 255, 0.2),
        0 0 100px rgba(100, 180, 255, 0.1),
        inset 0 0 100px rgba(100, 180, 255, 0.05);
    animation: lore-modal-appear 0.8s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes lore-modal-appear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lore-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.lore-close:hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Lore Header */
.lore-header {
    text-align: center;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.lore-title {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 8px;
    background: linear-gradient(180deg, #ffd700 0%, #ff9500 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    animation: lore-title-glow 4s ease-in-out infinite;
}

@keyframes lore-title-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.8));
    }
}

.lore-subtitle {
    font-size: 1.1rem;
    color: rgba(100, 200, 255, 0.8);
    letter-spacing: 5px;
    margin-top: 5px;
    text-transform: uppercase;
    animation: lore-subtitle-fade 3s ease-in-out infinite;
}

@keyframes lore-subtitle-fade {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Lore Body */
.lore-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 0;
}

.lore-section {
    position: relative;
    padding: 15px 20px 15px 55px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(100, 180, 255, 0.15);
    overflow: hidden;
    animation: lore-section-fade-in 1s ease-out forwards;
    opacity: 0;
}

.lore-section:nth-child(1) { animation-delay: 0.3s; }
.lore-section:nth-child(2) { animation-delay: 0.6s; }
.lore-section:nth-child(3) { animation-delay: 0.9s; }

@keyframes lore-section-fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glowing Orbs */
.lore-glow-orb {
    position: absolute;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 200, 255, 0.6) 0%, rgba(100, 200, 255, 0) 70%);
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    animation: orb-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

.lore-glow-orb.forest {
    background: radial-gradient(circle, rgba(100, 255, 150, 0.6) 0%, rgba(100, 255, 150, 0) 70%);
}

.lore-glow-orb.destiny {
    background: radial-gradient(circle, rgba(255, 215, 100, 0.6) 0%, rgba(255, 215, 100, 0) 70%);
}

@keyframes orb-pulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-50%) scale(1.3);
        opacity: 1;
    }
}

/* Lore Text */
.lore-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    text-align: justify;
    padding-left: 0;
}

.lore-text .highlight {
    color: #64d8ff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(100, 216, 255, 0.5);
}

.lore-text .highlight.forest {
    color: #64ff96;
    text-shadow: 0 0 10px rgba(100, 255, 150, 0.5);
}

.lore-text .highlight.ocean {
    color: #64b4ff;
    text-shadow: 0 0 10px rgba(100, 180, 255, 0.5);
}

.lore-text .highlight.canyon {
    color: #ffb464;
    text-shadow: 0 0 10px rgba(255, 180, 100, 0.5);
}

.lore-text .highlight.cave {
    color: #c864ff;
    text-shadow: 0 0 10px rgba(200, 100, 255, 0.5);
}

.lore-text .highlight.destiny {
    color: #ffd764;
    text-shadow: 0 0 10px rgba(255, 215, 100, 0.5);
}

/* Lore Footer */
.lore-footer {
    text-align: center;
    margin-top: 15px;
    flex-shrink: 0;
    animation: lore-section-fade-in 1s ease-out forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

.lore-enter-btn {
    padding: 12px 40px;
    font-size: 1rem;
    letter-spacing: 2px;
    background: linear-gradient(180deg, rgba(100, 200, 255, 0.9) 0%, rgba(60, 140, 200, 0.95) 100%);
    border: 2px solid rgba(150, 220, 255, 0.6);
    box-shadow: 
        0 4px 20px rgba(100, 200, 255, 0.4),
        0 0 40px rgba(100, 200, 255, 0.2);
    animation: enter-btn-pulse 2s ease-in-out infinite;
}

.lore-enter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 6px 30px rgba(100, 200, 255, 0.6),
        0 0 60px rgba(100, 200, 255, 0.3);
}

@keyframes enter-btn-pulse {
    0%, 100% {
        box-shadow: 
            0 4px 20px rgba(100, 200, 255, 0.4),
            0 0 40px rgba(100, 200, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 4px 25px rgba(100, 200, 255, 0.6),
            0 0 50px rgba(100, 200, 255, 0.3);
    }
}

/* Lore Modal Responsive */
@media (max-width: 600px) {
    .lore-modal .lore-content {
        padding: 25px 20px;
    }
    
    .lore-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .lore-subtitle {
        font-size: 1rem;
    }
    
    .lore-text {
        font-size: 0.95rem;
        padding-left: 20px;
    }
    
    .lore-glow-orb {
        width: 50px;
        height: 50px;
        left: -10px;
    }
}
