/* ============================================
   LANDING PAGE STYLES
   ============================================ */

.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1D3557 0%, #2D4564 100%);
    position: relative;
    overflow: hidden;
    transition: opacity 0.5s;
}

.landing-page.hidden {
    display: none;
}

.landing-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="2" fill="rgba(255,202,58,0.1)"/></svg>');
    opacity: 0.5;
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
}

.hero-logo {
    font-size: 6rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.5rem, 5vw, 3rem);
    color: #FFCA3A;
    margin-bottom: 20px;
    text-shadow: 4px 4px 0 #1D3557;
    line-height: 1.4;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: #F5F5F5;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-connect {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    padding: 20px 40px;
    background: linear-gradient(135deg, #FFCA3A, #FFA500);
    border: 4px solid #1D3557;
    border-radius: 12px;
    color: #1D3557;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 0 #8AC926, 0 12px 20px rgba(0,0,0,0.3);
    position: relative;
    top: 0;
}

.btn-connect:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 0 #8AC926, 0 16px 30px rgba(0,0,0,0.4);
}

.btn-connect:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 #8AC926, 0 8px 15px rgba(0,0,0,0.3);
}

.btn-secondary {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    padding: 16px 32px;
    background: transparent;
    border: 4px solid #1982C4;
    border-radius: 12px;
    color: #1982C4;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #1982C4;
    color: white;
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #FFCA3A;
    text-align: center;
    margin-bottom: 60px;
    text-shadow: 2px 2px 0 #1D3557;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    padding: 30px;
    border-radius: 16px;
    border: 3px solid #8AC926;
    text-align: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: #FFCA3A;
    box-shadow: 0 20px 40px rgba(255,202,58,0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: #FFCA3A;
    margin-bottom: 15px;
}

.feature-desc {
    color: #F5F5F5;
    opacity: 0.8;
    line-height: 1.6;
}

/* Pet Showcase */
.pets-section {
    padding: 80px 20px;
    position: relative;
    z-index: 2;
}

.pets-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.pet-preview {
    background: linear-gradient(145deg, #FFD60A, #FFC300);
    width: 150px;
    height: 150px;
    border-radius: 20px;
    border: 4px solid #1D3557;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.pet-preview:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(255,202,58,0.5);
}

/* Stats Section */
.stats-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(29, 53, 87, 0.3), rgba(45, 69, 100, 0.2));
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 202, 58, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 3px solid rgba(138, 201, 38, 0.3);
    border-radius: 20px;
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 202, 58, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #FFCA3A;
    box-shadow: 0 20px 50px rgba(255, 202, 58, 0.4);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card-players {
    border-color: rgba(25, 130, 196, 0.4);
}

.stat-card-players:hover {
    border-color: #1982C4;
    box-shadow: 0 20px 50px rgba(25, 130, 196, 0.4);
}

.stat-card-nfts {
    border-color: rgba(255, 202, 58, 0.4);
}

.stat-card-nfts:hover {
    border-color: #FFCA3A;
    box-shadow: 0 20px 50px rgba(255, 202, 58, 0.4);
}

.stat-card-tama {
    border-color: rgba(138, 201, 38, 0.4);
}

.stat-card-tama:hover {
    border-color: #8AC926;
    box-shadow: 0 20px 50px rgba(138, 201, 38, 0.4);
}

.stat-card-wallets {
    border-color: rgba(156, 39, 176, 0.4);
}

.stat-card-wallets:hover {
    border-color: #9C27B0;
    box-shadow: 0 20px 50px rgba(156, 39, 176, 0.4);
}

.stat-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

.stat-card:hover .stat-icon {
    animation: bounce 0.6s ease;
}

.stat-content {
    position: relative;
    z-index: 2;
    overflow: hidden;
    max-height: 200px;
}

.stat-number {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.8rem;
    color: #FFCA3A;
    margin-bottom: 8px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    transition: all 0.3s;
}

.stat-card:hover .stat-number {
    color: #FFD60A;
    text-shadow: 0 0 20px rgba(255, 202, 58, 0.6);
}

.stat-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: #F5F5F5;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-subtitle {
    font-size: 0.75rem;
    color: rgba(245, 245, 245, 0.6);
    font-style: italic;
    margin-top: 5px;
}

.stat-pulse {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: #8AC926;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(138, 201, 38, 0.6);
}

.stats-footer {
    text-align: center;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 2px solid rgba(138, 201, 38, 0.3);
    color: rgba(245, 245, 245, 0.8);
    font-size: 0.85rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #8AC926;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(138, 201, 38, 0.8);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Footer */
.landing-footer {
    padding: 40px 20px;
    text-align: center;
    background: rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.footer-text {
    color: rgba(245,245,245,0.6);
    font-size: 0.9rem;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px #FFCA3A; }
    50% { text-shadow: 0 0 30px #FFCA3A, 0 0 50px #FFCA3A; }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-logo { font-size: 4rem; }
    .hero-buttons { flex-direction: column; }
    .btn-connect, .btn-secondary { width: 100%; }
    .features-grid { grid-template-columns: 1fr; }
    .pets-grid { gap: 15px; }
    .pet-preview { width: 120px; height: 120px; font-size: 3rem; }
    .stats-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .stat-card {
        padding: 20px 15px;
    }
    .stat-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    .stat-number {
        font-size: 2rem;
    }
    .stat-label {
        font-size: 0.6rem;
    }
    .stat-subtitle {
        font-size: 0.65rem;
    }
    .stats-section {
        padding: 60px 15px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-number {
        font-size: 1.8rem;
    }
}

/* ============================================
   ANIMATED PET IN HERO SECTION
   ============================================ */

.animated-pet-container {
    max-width: 400px;
    width: 80%;
    margin: 0 auto 30px;
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animated-pet {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-body {
    font-size: 120px;
    animation: petFloat 3s ease-in-out infinite, petPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(255, 202, 58, 0.4));
    position: relative;
    z-index: 2;
}

.pet-eyes {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    gap: 20px;
    margin-top: -20px;
}

.eye {
    width: 12px;
    height: 12px;
    background: #FFCA3A;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px rgba(255, 202, 58, 0.8);
    animation: eyeBlink 3s ease-in-out infinite;
    position: relative;
}

.eye::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 4px;
    height: 4px;
    background: #1D3557;
    border-radius: 50%;
}

.left-eye {
    animation-delay: 0s;
    margin-right: 15px;
}

.right-eye {
    animation-delay: 0.1s;
}

.pet-sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    font-size: 30px;
    opacity: 0;
    animation: sparkleFloat 4s ease-in-out infinite;
}

.sparkle-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 20%;
    right: 15%;
    animation-delay: 1.3s;
}

.sparkle-3 {
    bottom: 15%;
    left: 50%;
    animation-delay: 2.6s;
}

@keyframes petFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes petPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes eyeBlink {
    0%, 90%, 100% {
        transform: scaleY(1);
        height: 12px;
    }
    95% {
        transform: scaleY(0.1);
        height: 2px;
    }
}

@keyframes sparkleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translateY(-30px) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-60px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-90px) scale(0.5);
    }
}

@media (max-width: 768px) {
    .animated-pet-container {
        height: 150px;
    }
    
    .pet-body {
        font-size: 80px;
    }
    
    .eye {
        width: 8px;
        height: 8px;
    }
    
    .eye::after {
        width: 3px;
        height: 3px;
        top: 1px;
        left: 1px;
    }
    
    .sparkle {
        font-size: 20px;
    }
}

/* ============================================
   MINI CHARTS IN LIVE STATS
   ============================================ */

.stat-chart {
    width: 100% !important;
    height: 60px !important;
    max-height: 60px !important;
    margin-top: 15px;
    opacity: 0.8;
    transition: opacity 0.3s;
    display: block !important;
    overflow: hidden !important;
    position: relative;
}

.stat-chart canvas {
    width: 100% !important;
    height: 60px !important;
    max-height: 60px !important;
    display: block !important;
}

.stat-card:hover .stat-chart {
    opacity: 1;
}

@media (max-width: 768px) {
    .stat-chart {
        height: 50px !important;
        max-height: 50px !important;
        margin-top: 10px;
    }
}

