/* ========================================================================== */
/* OYUN 9: LİKYA MUTANT (Dinamik Mutasyon Refleks Oyunu)                      */
/* ========================================================================== */

.mutant-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

/* Üst Mutasyon Kontrolleri */
.mutant-rules-bar {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
}

.rule-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 5px;
}

.rule-chip:hover {
    border-color: rgba(0, 229, 255, 0.4);
    color: var(--text-primary);
}

.rule-chip.active {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

.rule-chip#g9-rule-overdrive.active {
    background: rgba(255, 183, 3, 0.18);
    border-color: var(--neon-yellow);
    color: var(--neon-yellow);
    box-shadow: 0 0 12px rgba(255, 183, 3, 0.3);
}

.rule-chip#g9-rule-precision.active {
    background: rgba(255, 0, 127, 0.18);
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 0 0 12px rgba(255, 0, 127, 0.3);
}

/* 4x4 Izgara */
.mutant-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(13, 19, 38, 0.6);
    border: 1px solid var(--border-neon);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0, 229, 255, 0.05);
    position: relative;
    touch-action: manipulation;
}

.mutant-cell {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: background 0.15s ease, border-color 0.15s ease;
    padding: 0;
}

.mutant-cell:active {
    background: rgba(255, 255, 255, 0.08);
}

/* Aktif Hedef Hücre */
.mutant-cell.is-target {
    background: radial-gradient(circle, rgba(0, 230, 118, 0.3) 0%, rgba(0, 230, 118, 0.05) 75%);
    border-color: var(--neon-green);
    box-shadow: 0 0 16px rgba(0, 230, 118, 0.45);
    animation: targetPulse 0.8s ease-in-out infinite alternate;
}

@keyframes targetPulse {
    from {
        transform: scale(0.96);
        box-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
    }
    to {
        transform: scale(1.02);
        box-shadow: 0 0 22px rgba(0, 230, 118, 0.6);
    }
}

.target-emblem {
    width: 60%;
    height: 60%;
    color: var(--neon-green);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.emblem-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 6px var(--neon-green));
}

/* Keskin Nişancı Mutasyonu: Hedef daha küçük */
.mutant-cell.is-precision .target-emblem {
    width: 38%;
    height: 38%;
    color: var(--neon-pink);
    filter: drop-shadow(0 0 8px var(--neon-pink));
}

.mutant-cell.is-precision.is-target {
    border-color: var(--neon-pink);
    box-shadow: 0 0 16px rgba(255, 0, 127, 0.45);
}

/* Başarım Rozetleri */
.mutant-achievements-row {
    font-size: 0.85rem;
    color: var(--neon-cyan);
    font-weight: 700;
    margin-top: 6px;
}
