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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    text-align: center;
    padding: 80px 0 60px;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
}

.about {
    background: white;
    padding: 60px 40px;
    margin: 40px 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #667eea;
    text-align: center;
}

.about p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

.games {
    padding: 60px 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 40px 0;
}

.games h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #667eea;
    text-align: center;
}

.games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.game-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.game-card.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transition: background 1s ease-in-out, color 1s ease-in-out;
}

.game-card.active:hover {
    background: linear-gradient(135deg, #f9d71c 0%, #daa520 100%);
    color: black;
}

.game-card.coming-soon {
    opacity: 0.6;
}

.game-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.game-card p {
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.play-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover:not(.disabled) {
    background: #5a67d8;
    transform: translateY(-2px);
}

.game-card.active .play-btn {
    background: white;
    color: #667eea;
}

.game-card.active .play-btn:hover {
    background: #f1f1f1;
}

.play-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

footer {
    text-align: center;
    padding: 40px 0;
    color: white;
    opacity: 0.8;
}

.back-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    left: 20px;
    top: 20px;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateX(-2px);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .about, .games {
        padding: 40px 20px;
        margin: 20px 0;
    }
    
    .about h2, .games h2 {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hagrid-character {
        width: min(150px, 25vw);
        max-height: 70vh;
    }
}

.hagrid-character {
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: min(350px, 30vw);
    max-height: 80vh;
    height: auto;
    z-index: 1000;
    pointer-events: none;
    opacity: 1.0;
    transition: opacity 0.3s ease;
    object-fit: contain;
}

