/* Temel Sıfırlama */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

body { 
    font-family: 'Quicksand', sans-serif; 
    background-color: #f4f7f6; 
    color: #333;
}

/* Başlık Bölümü */
header {
    background: linear-gradient(135deg, #6e8efb, #a7a7ff);
    color: white; 
    padding: 60px 20px; 
    text-align: center;
    border-bottom-left-radius: 60px; 
    border-bottom-right-radius: 60px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

h1 { font-family: 'Fredoka One', cursive; font-size: 2.5rem; }

/* Grid Düzeni */
.container { 
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 20px; 
}

.game-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px;
}

/* Kart ve Hizalama Ayarları */
.card {
    text-decoration: none; 
    color: inherit; 
    background: white; 
    padding: 30px;
    border-radius: 35px; 
    text-align: center; 
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); 
    border-top: 8px solid #ccc;
    
    /* İÇERİĞİ HİZALAMA */
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    min-height: 400px; /* Kartların boyunu eşitler */
}

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

.icon { font-size: 55px; margin-bottom: 20px; }

h2 { 
    font-family: 'Fredoka One', cursive; 
    font-size: 1.5rem;
    margin-bottom: 15px; 
}

.card p {
    font-size: 1rem;
    color: #666;
    flex-grow: 1; /* Yazı ne kadar kısa olursa olsun butonu aşağı iter */
}

/* Buton Tasarımı */
.btn { 
    display: inline-block; 
    margin-top: 20px;
    padding: 12px 40px; 
    background: #333; 
    color: #fff; 
    border-radius: 25px; 
    font-weight: bold;
    align-self: center;
}

/* Kart Renkleri */
.purple { border-color: #9b59b6; }
.orange { border-color: #e67e22; }
.blue { border-color: #3498db; }
.pink { border-color: #ff78ae; }

/* Joystick (Mobil) */
#mobile-controls {
    display: none; 
    position: fixed; 
    bottom: 30px; 
    width: 100%;
    justify-content: space-between; 
    padding: 0 40px; 
    pointer-events: none;
}

@media (max-width: 1024px) { #mobile-controls { display: flex; } }

.joy-btn, .action-btn {
    pointer-events: auto; 
    width: 75px; height: 75px;
    background: rgba(255, 255, 255, 0.9); 
    border: 3px solid #555;
    border-radius: 50%; font-size: 28px;
    display: flex; align-items: center; justify-content: center;
}

.joystick-container { display: flex; flex-direction: column; align-items: center; }
.mid-btns { display: flex; gap: 45px; }
.action-container { display: flex; align-items: flex-end; gap: 20px; }
.action-btn { background: #ff78ae; color: white; border-color: #d1508a; }

footer { text-align: center; padding: 40px; color: #aaa; font-size: 0.9rem; }