/**
 * Likya Mini Games - Oyun 8: Sayı Avı Stilleri
 */

.game8-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex: 1;
    min-height: 520px;
}

.g8-hud {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
}

.g8-target-highlight {
    color: var(--neon-cyan);
    font-size: 1.35rem;
}

.g8-instruction-banner {
    width: 100%;
    max-width: 380px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    margin-bottom: 10px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.g8-instruction-banner strong {
    color: var(--neon-cyan);
}

.btn-shuffle-mini {
    background: rgba(0, 210, 255, 0.14);
    border: 1px solid rgba(0, 210, 255, 0.35);
    color: var(--neon-cyan);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.btn-shuffle-mini:hover {
    background: rgba(0, 210, 255, 0.24);
}

.number-board-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 6px;
    width: 100%;
    height: 100%;
    padding: 8px;
    background: rgba(18, 22, 42, 0.55);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.number-tile {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    background: linear-gradient(145deg, #171e3a, #10152a);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--font-mono);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    touch-action: manipulation;
}

.number-tile:hover:not(.found-tap) {
    border-color: var(--neon-blue);
    transform: scale(1.04);
}

.number-tile:active:not(.found-tap) {
    transform: scale(0.93);
}

.number-tile.found-tap {
    background: rgba(0, 245, 196, 0.12);
    border-color: rgba(0, 245, 196, 0.45);
    color: rgba(0, 245, 196, 0.65);
    box-shadow: inset 0 0 10px rgba(0, 245, 196, 0.15);
    animation: numberPop 0.22s ease-out;
}

.number-tile.wrong-tap {
    background: rgba(255, 51, 102, 0.35);
    border-color: var(--neon-red);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(255, 51, 102, 0.55);
    animation: shakeAnim 0.25s ease;
}

@keyframes numberPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.14); background: rgba(0, 245, 196, 0.4); color: #060913; }
    100% { transform: scale(1); }
}
