/* ============================================
   BİLNET OYUN - Oyun Ortak Stilleri
   Token'lar css/tokens.css (B1): ham renk yazılmaz; geçişler özellik listesiyle yazılır, `all` kullanılmaz.
   ============================================ */

/* Mobile scroll-lock — oyun açıkken sayfa scroll/bounce'u engelle */
@media (hover: none), (pointer: coarse), (max-width: 820px) {
    body.game-active {
        overflow: hidden;
        overscroll-behavior: none;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
    }
}

/* ============================================
   Portrait mobile auto-rotation
   Space Waves, Eğim, Zıpla Topla → landscape canvas
   dikey telefonda 90° döndürülerek tam ekran kullanımı.
   ============================================ */
@media (orientation: portrait) and (max-width: 820px) {
    body[data-active-game="space-waves"] .sw-wrap,
    body[data-active-game="egim"] .eg-wrap,
    body[data-active-game="balon-labirenti"] .bl-wrap,
    body[data-active-game="zipla-topla"] .zt-wrap {
        position: fixed;
        top: calc(50% + 28px); /* toolbar (56px) altı merkez */
        left: 50%;
        margin: 0;
        max-width: none;
        aspect-ratio: unset;
        transform: translate(-50%, -50%) rotate(90deg);
        transform-origin: center center;
        z-index: 40;
        border-radius: 8px;
    }

    /* Space Waves — aspect 800:420 */
    body[data-active-game="space-waves"] .sw-wrap {
        width: min(calc(100vh - 64px), calc(100vw * 800 / 420));
        height: calc(min(calc(100vh - 64px), calc(100vw * 800 / 420)) * 420 / 800);
    }

    /* Eğim — aspect 800:500 */
    body[data-active-game="egim"] .eg-wrap {
        width: min(calc(100vh - 64px), calc(100vw * 800 / 500));
        height: calc(min(calc(100vh - 64px), calc(100vw * 800 / 500)) * 500 / 800);
    }

    /* Balon Labirenti — aspect 800:500 (Eğim ile aynı; HUD katmanı sahneyle döner) */
    body[data-active-game="balon-labirenti"] .bl-wrap {
        width: min(calc(100vh - 64px), calc(100vw * 800 / 500));
        height: calc(min(calc(100vh - 64px), calc(100vw * 800 / 500)) * 500 / 800);
    }

    /* Zıpla Topla — canvas 800:360 + kontrol barı ~90px → ~800:450 */
    body[data-active-game="zipla-topla"] .zt-wrap {
        width: min(calc(100vh - 64px), calc(100vw * 800 / 450));
        height: calc(min(calc(100vh - 64px), calc(100vw * 800 / 450)) * 450 / 800);
    }

    /* Auto-rotate aktifken eski "telefonu çevir" overlay gereksiz */
    body[data-active-game="zipla-topla"] .zt-rotate-hint {
        display: none !important;
    }
}

/* Oyun Container */
.game-container {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: linear-gradient(180deg, var(--mavi-050) 0%, var(--beyaz) 100%);
    animation: fadeIn 0.3s ease both;
}

/* ── Oyun yükleniyor (A9b: oyunun JS/CSS'i ilk açılışta iner; js/app.js renderLoadingHint) ──
   150 ms'den kısa yüklemelerde hiç görünmez (titreme yok). Halka + tek satır metin; alt yazı
   rengi var(--murekkep-orta) (6.3:1). Hareket azaltma: dönüş yavaşlar ama kalır — "bekle" bilgisi
   dekoratif değil, anlamlı geri bildirimdir. */
.game-loading {
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ara-4);
    text-align: center;
    animation: fadeIn 0.25s ease both;
}
.game-loading-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid var(--cizgi);
    border-top-color: var(--mavi-800);
    animation: gameLoadingSpin 0.9s linear infinite;
}
.game-loading-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--murekkep-orta);
}
@keyframes gameLoadingSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .game-loading { animation: none; }
    .game-loading-spinner { animation-duration: 2s; }
}

/* Oyun Toolbar */
.game-toolbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 var(--ara-4);
    background: var(--yuzey-cam);
    backdrop-filter: blur(8px);
    box-shadow: var(--golge-1);
}

.toolbar-btn {
    width: var(--hedef-min);
    height: var(--hedef-min);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: var(--murekkep);
    border-radius: var(--r-giris);
    transition: transform var(--sure-gecis) var(--egri-out), background-color var(--sure-gecis) var(--egri-out);
}

.toolbar-btn svg {
    width: 24px;
    height: 24px;
}

.toolbar-btn:active {
    transform: scale(0.9);
    background: var(--basili-zemin);
}

.toolbar-info {
    flex: 1;
    text-align: center;
}

.toolbar-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--murekkep);
}

.toolbar-level {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 2px;
}

.toolbar-level .level-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yildiz-bos);
    transition: transform var(--sure-gecis) var(--egri-out), background-color var(--sure-gecis) var(--egri-out);
}

.toolbar-level .level-dot.active {
    background: var(--mavi-800);
    transform: scale(1.3);
}

.toolbar-level .level-dot.done {
    background: var(--dogru);
}

.toolbar-stars {
    display: flex;
    gap: 4px;
}

.toolbar-star {
    width: 24px;
    height: 24px;
    fill: var(--yildiz-bos);
    transition: fill 0.4s var(--egri-out), filter 0.4s var(--egri-out);
}

.toolbar-star.earned {
    fill: var(--yildiz);
    filter: drop-shadow(0 1px 4px var(--yildiz-isik));
}

/* Oyun Alanı */
.game-area {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: var(--ara-4);
    overflow-y: auto;
    overflow-x: hidden;
    overflow-anchor: auto;
}

/* ── TAM EKRAN MODU ── */
/* Tam ekranda canvas oyunlarını en-boy oranını koruyarak ekrana sığdır */
.game-container.is-fullscreen .game-area {
    padding: 0;
    justify-content: center;
}
.game-container.is-fullscreen .eg-wrap {
    width: min(100vw, calc((100vh - 56px) * 800 / 500));
    height: min(calc(100vh - 56px), calc(100vw * 500 / 800));
    max-width: none;
    border-radius: 0;
}
.game-container.is-fullscreen .bl-wrap {
    width: min(100vw, calc((100vh - 56px) * 800 / 500));
    height: min(calc(100vh - 56px), calc(100vw * 500 / 800));
    max-width: none;
    border-radius: 0;
}
.game-container.is-fullscreen .sw-wrap {
    width: min(100vw, calc((100vh - 56px) * 800 / 420));
    height: min(calc(100vh - 56px), calc(100vw * 420 / 800));
    max-width: none;
    border-radius: 0;
}
.game-container.is-fullscreen .zt-wrap {
    width: min(100vw, calc((100vh - 56px) * 800 / 360));
    height: min(calc(100vh - 56px), calc(100vw * 360 / 800));
    max-width: none;
    border-radius: 0;
}
.game-container.is-fullscreen .bk-wrap {
    width: min(100vw, calc((100vh - 56px) * 400 / 640));
    height: min(calc(100vh - 56px), calc(100vw * 640 / 400));
    max-width: none;
    border-radius: 0;
}
/* Buton ikon durum göstergesi */
.fs-icon-compress { display: none; }
.game-container.is-fullscreen .fs-icon-compress { display: inline-block; }
.game-container.is-fullscreen .fs-icon-expand { display: none; }

/* Oyun yönergesi */
.game-instruction {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--murekkep);
    text-align: center;
    margin-bottom: var(--ara-5);
    padding: var(--ara-2) var(--ara-5);
    background: var(--yuzey);
    border-radius: var(--r-giris);
    box-shadow: var(--golge-1);
    animation: fadeInUp 0.4s var(--egri-out) both;
}

/* Ortak oyun butonları */
.game-option-btn {
    min-width: var(--hedef-min);
    min-height: var(--hedef-min);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--yuzey);
    border: 3px solid var(--cizgi);
    border-radius: var(--r-giris);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--murekkep);
    cursor: pointer;
    transition: transform var(--sure-gecis) var(--egri-out), background-color var(--sure-gecis) var(--egri-out), border-color var(--sure-gecis) var(--egri-out), box-shadow var(--sure-gecis) var(--egri-out);
    box-shadow: var(--golge-1);
    padding: var(--ara-4);
}

.game-option-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--golge-2);
}

.game-option-btn:active {
    transform: scale(0.95);
}

.game-option-btn.correct {
    background: var(--dogru-zemin);
    border-color: var(--dogru);
    animation: successPulse 0.4s ease;
}

.game-option-btn.wrong {
    background: var(--yanlis-zemin);
    border-color: var(--yanlis);
    animation: wiggle 0.4s ease;
}

/* Sayı Butonları */
.number-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--yuzey);
    border: 3px solid var(--cizgi);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--murekkep);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--sure-gecis) var(--egri-out), background-color var(--sure-gecis) var(--egri-out), border-color var(--sure-gecis) var(--egri-out), box-shadow var(--sure-gecis) var(--egri-out), color var(--sure-gecis) var(--egri-out);
    box-shadow: 0 3px 0 var(--cizgi);
}

.number-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--cizgi);
}

.number-btn.correct {
    background: var(--dogru);
    border-color: var(--dogru);
    color: var(--beyaz);
    box-shadow: 0 3px 0 var(--dogru);
    animation: successPulse 0.4s ease;
}

.number-btn.wrong {
    animation: wiggle 0.4s ease;
    border-color: var(--yanlis);
}

/* Hafıza Kartları */
.memory-grid {
    display: grid;
    gap: var(--ara-4);
    perspective: 1000px;
}

.memory-card {
    position: relative;
    aspect-ratio: 1;
    /* --card-size: hafiza-kartlari.js ekrana göre hesaplar (dar ekranda 60 px altına iner) */
    min-width: var(--card-size, 60px);
    min-height: var(--card-size, 60px);
    cursor: pointer;
    transition: transform var(--sure-bas) var(--egri-out);
}

.memory-card:active {
    transform: scale(0.95);
}

.memory-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s var(--egri-out);
    transform-style: preserve-3d;
}

.memory-card.flipped .memory-card-inner {
    transform: rotateY(180deg);
}

.memory-card-front,
.memory-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--r-giris);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--golge-1);
}

.memory-card-front {
    background: linear-gradient(135deg, var(--mavi-800) 0%, var(--mavi-500) 100%);
    font-size: 2rem;
    color: var(--beyaz);
    border: 3px solid var(--beyaz);
}

.memory-card-front::after {
    content: '?';
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.5rem;
    opacity: 0.6;
}

.memory-card-back {
    background: var(--yuzey);
    transform: rotateY(180deg);
    font-size: 2.5rem;
    border: 3px solid var(--cizgi);
}
.memory-card-back img {
    width: 72%;
    height: 72%;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px var(--cizgi-saydam));
}

.memory-card.matched .memory-card-back {
    border-color: var(--dogru);
    background: var(--dogru-zemin);
    animation: glow 2s ease-in-out infinite;
}

.memory-card.matched {
    pointer-events: none;
}

/* Boyama Alanı */
.coloring-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ara-4);
    width: 100%;
}

.coloring-svg {
    flex: 1;
    max-width: 100%;
    max-height: 60vh;
}

.coloring-svg path,
.coloring-svg rect,
.coloring-svg circle,
.coloring-svg ellipse,
.coloring-svg polygon {
    cursor: pointer;
    stroke: var(--murekkep);
    stroke-width: 2;
    transition: fill 0.3s ease;
}

.coloring-svg path:hover,
.coloring-svg rect:hover,
.coloring-svg circle:hover,
.coloring-svg ellipse:hover,
.coloring-svg polygon:hover {
    opacity: 0.85;
}

.color-palette {
    display: flex;
    gap: var(--ara-2);
    padding: var(--ara-4);
    background: var(--yuzey);
    border-radius: var(--r-kart);
    box-shadow: var(--golge-2);
    flex-wrap: wrap;
    justify-content: center;
}

.color-swatch {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--beyaz);
    cursor: pointer;
    transition: transform var(--sure-gecis) var(--egri-out), box-shadow var(--sure-gecis) var(--egri-out), border-color var(--sure-gecis) var(--egri-out);
    box-shadow: var(--golge-1);
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch.active {
    border-color: var(--beyaz);
    transform: scale(1.2);
    box-shadow: 0 0 0 3px var(--mavi-800);
}

/* Boyama Galeri */
.boyama-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    padding: 0.5rem;
    max-width: min(480px, 95vw);
    margin: 0 auto;
}
.boyama-gallery-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: var(--yuzey);
    border: 3px solid var(--cizgi);
    border-radius: var(--r-giris);
    cursor: pointer;
    transition: transform var(--sure-gecis) var(--egri-out), box-shadow var(--sure-gecis) var(--egri-out);
    position: relative;
}
.boyama-gallery-card:hover { transform: scale(1.05); box-shadow: var(--golge-2); }
.boyama-gallery-card.completed { border-color: var(--dogru); background: var(--dogru-zemin); }
.boyama-gallery-emoji { font-size: 2rem; }
.boyama-gallery-name { font-size: 0.75rem; font-weight: 700; color: var(--murekkep-orta); }
.boyama-gallery-check { position: absolute; top: 4px; right: 4px; font-size: 0.8rem; }
.boyama-back-btn {
    background: none; border: none; color: var(--mavi-800); font-weight: 700;
    font-size: 0.85rem; cursor: pointer; padding: 0.3rem 0.8rem;
}

/* Sürükle Bırak Öğeleri */
.draggable-item {
    cursor: grab;
    touch-action: none;
    transition: transform var(--sure-gecis) var(--egri-out), box-shadow var(--sure-gecis) var(--egri-out);
    user-select: none;
}

.draggable-item:active {
    cursor: grabbing;
}

.draggable-item.dragging {
    transform: scale(1.1);
    box-shadow: var(--golge-3);
    z-index: 100;
    opacity: 0.9;
}

.drop-zone {
    border: 3px dashed var(--cizgi);
    border-radius: var(--r-giris);
    transition: transform var(--sure-gecis) var(--egri-out), background-color var(--sure-gecis) var(--egri-out), border-color var(--sure-gecis) var(--egri-out);
    background: var(--yuzey-cam-hafif);
}

.drop-zone.highlight {
    border-color: var(--mavi-800);
    background: var(--mavi-050);
    transform: scale(1.05);
}

.drop-zone.filled {
    border-style: solid;
    border-color: var(--dogru);
    background: var(--dogru-zemin);
}

/* Seviye seçici */
.level-selector {
    display: flex;
    gap: var(--ara-4);
    margin-bottom: var(--ara-5);
}

.level-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--yuzey);
    border: 3px solid var(--cizgi);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--murekkep);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--sure-gecis) var(--egri-out), background-color var(--sure-gecis) var(--egri-out), border-color var(--sure-gecis) var(--egri-out), box-shadow var(--sure-gecis) var(--egri-out), color var(--sure-gecis) var(--egri-out);
    box-shadow: 0 3px 0 var(--cizgi);
}

.level-btn.active {
    background: var(--mavi-800);
    color: var(--beyaz);
    border-color: var(--mavi-800);
    box-shadow: 0 3px 0 var(--mavi-800);
}

.level-btn.completed {
    background: var(--dogru);
    color: var(--beyaz);
    border-color: var(--dogru);
    box-shadow: 0 3px 0 var(--dogru);
}

.level-btn:active {
    transform: translateY(2px);
}

/* Harf gösterim */
.letter-display {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    color: var(--mavi-800);   /* açık zeminde 4.8:1 (kategori rengi metin için AA geçmez) */
    animation: pop 0.4s var(--egri-out) both;
    line-height: 1;
    margin-bottom: var(--ara-4);
}

/* Renk hedef gösterimi */
.color-target {
    width: 100px;
    height: 100px;
    border-radius: var(--r-kart);
    border: var(--kontur);
    box-shadow: var(--golge-2);
    margin-bottom: var(--ara-4);
    animation: pop 0.3s var(--egri-out) both;
}

/* Sıralama slotları */
.sorting-slots {
    display: flex;
    gap: var(--ara-4);
    padding: var(--ara-4);
    background: var(--yuzey-cam-hafif);
    border-radius: var(--r-kart);
}

.sorting-slot {
    min-width: 80px;
    min-height: 80px;
    border: 3px dashed var(--cizgi);
    border-radius: var(--r-giris);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--yuzey-cam-hafif);
    transition: background-color var(--sure-gecis) var(--egri-out), border-color var(--sure-gecis) var(--egri-out);
}

.sorting-slot.highlight {
    border-color: var(--mavi-800);
    background: var(--mavi-050);
}

/* Şekil SVG stilleri */
.shape-piece {
    cursor: grab;
    touch-action: none;
    transition: filter 0.2s ease;
}

.shape-piece:hover {
    filter: brightness(1.1);
}

.shape-outline {
    fill: none;
    stroke: var(--murekkep-orta);
    stroke-width: 3;
    stroke-dasharray: 10 5;
    transition: stroke 0.3s var(--egri-out), stroke-width 0.3s var(--egri-out), fill 0.3s var(--egri-out);
}

.shape-outline.highlight {
    stroke: var(--mavi-800);
    stroke-width: 4;
}

.shape-outline.filled {
    stroke: var(--dogru);
    stroke-dasharray: none;
    fill: var(--dogru-zemin);
}

/* ============================================
   Matematik Oyunu
   ============================================ */
.mat-game {
    max-width: 500px; margin: 0 auto; padding: 1rem;
    text-align: center;
}
.mat-progress {
    font-size: 0.85rem; font-weight: 700; color: var(--murekkep-orta); margin-bottom: 1rem;
}
.mat-question {
    display: flex; align-items: center; justify-content: center;
    gap: 0.6rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.mat-num {
    font-family: var(--font-display); font-size: 3rem; font-weight: 700;
    color: var(--murekkep); min-width: 60px; text-align: center;
    background: var(--yuzey); border-radius: var(--r-giris); padding: 8px 16px;
    box-shadow: var(--golge-1);
}
.mat-op, .mat-eq {
    font-size: 2.5rem; font-weight: 700; color: var(--mavi-800);
}
.mat-unknown {
    background: var(--gunes); color: var(--murekkep);
    animation: pulse 1.5s ease-in-out infinite;
}
.mat-revealed { background: var(--dogru) !important; color: var(--beyaz) !important; animation: none; }
.mat-choices {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
    max-width: 320px; margin: 0 auto;
}
.mat-choice {
    font-family: var(--font-display); font-size: 2rem; font-weight: 700;
    color: var(--beyaz); border: none; border-radius: var(--r-kart); padding: 1rem;
    cursor: pointer; transition: transform var(--sure-gecis) var(--egri-out), box-shadow var(--sure-gecis) var(--egri-out), opacity var(--sure-gecis) var(--egri-out); box-shadow: var(--golge-2);
}
.mat-choice:hover:not(:disabled) { transform: scale(1.08); }
.mat-choice:disabled { opacity: 0.7; cursor: default; }
.mat-correct { box-shadow: 0 0 0 4px var(--dogru), 0 4px 16px var(--dogru-isik) !important; }
.mat-wrong { box-shadow: 0 0 0 4px var(--yanlis) !important; animation: shake 0.4s; }

/* ============================================
   Hece Birleştirme Oyunu
   ============================================ */
.hece-game {
    max-width: 500px; margin: 0 auto; padding: 1rem; text-align: center;
}
.hece-progress { font-size: 0.85rem; font-weight: 700; color: var(--murekkep-orta); margin-bottom: 0.5rem; }
.hece-target { margin-bottom: 1.5rem; }
.hece-emoji { font-size: 3.5rem; display: block; margin-bottom: 0.3rem; }
.hece-emoji-img { width: 80px; height: 80px; object-fit: contain; display: block; margin: 0 auto 0.3rem; border-radius: 12px; }
.hece-reveal-img { width: 40px; height: 40px; object-fit: contain; vertical-align: middle; margin-right: 8px; }
.hece-hint { font-size: 0.9rem; color: var(--murekkep-orta); font-weight: 700; }

.hece-answer-area {
    display: flex; justify-content: center; gap: 8px;
    margin-bottom: 1.5rem; min-height: 60px; flex-wrap: wrap;
}
.hece-slot {
    min-width: 70px; height: 50px; border: 3px dashed var(--cizgi); border-radius: var(--r-giris);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
    color: var(--murekkep); background: var(--yuzey); transition: background-color 0.3s var(--egri-out), border-color 0.3s var(--egri-out);
}
.hece-slot.hece-filled {
    border-color: var(--kat-harf); background: var(--mavi-050); border-style: solid;
}

.hece-syllables {
    display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 1rem;
}
.hece-btn {
    font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
    padding: 12px 22px; border-radius: var(--r-giris); border: 3px solid var(--kat-harf);
    background: var(--yuzey); color: var(--murekkep); cursor: pointer;
    transition: transform var(--sure-gecis) var(--egri-out), background-color var(--sure-gecis) var(--egri-out), color var(--sure-gecis) var(--egri-out), opacity var(--sure-gecis) var(--egri-out); box-shadow: var(--golge-1);
}
/* Kategori rengi dolgu üstünde metin mürekkep kalır (5:1; beyaz 2.4:1 geçmez) */
.hece-btn:hover:not(:disabled) { background: var(--kat-harf); color: var(--murekkep); transform: scale(1.05); }
.hece-btn.hece-used { opacity: 0.3; transform: scale(0.9); }
.hece-btn.hece-selected { background: var(--kat-harf); color: var(--murekkep); }

.hece-reset-btn {
    font-size: 0.85rem; padding: 6px 16px; border-radius: var(--r-hap);
    border: 2px solid var(--cizgi); background: var(--yuzey); color: var(--murekkep-orta); cursor: pointer;
    margin-top: 0.5rem; min-height: 44px;
}
.hece-reset-btn:hover { border-color: var(--murekkep-orta); color: var(--murekkep); }

.hece-success { animation: bounceIn 0.5s; }
.hece-wrong { animation: shake 0.4s; }
.drop-zone.shake-wrong { animation: shake 0.4s; border-color: var(--yanlis) !important; }
.hece-word-reveal {
    font-family: var(--font-display); font-size: 2rem; font-weight: 700;
    color: var(--dogru); padding: 1rem; animation: bounceIn 0.5s;
}

/* ============================================
   Jigsaw Bulmaca Oyunu
   ============================================ */
.jig-game {
    max-width: 500px; margin: 0 auto; padding: 1rem; text-align: center;
}
.jig-progress { font-size: 0.85rem; font-weight: 700; color: var(--murekkep-orta); margin-bottom: 1rem; }
.jig-board {
    display: inline-grid; gap: 4px; margin: 0 auto 1rem;
    background: var(--basili-zemin); border-radius: var(--r-giris); padding: 8px;
}
.jig-cell {
    background: var(--yuzey-cam-hafif); border: 2px dashed var(--cizgi); border-radius: var(--r-giris);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background-color var(--sure-gecis) var(--egri-out), border-color var(--sure-gecis) var(--egri-out);
}
.jig-cell:hover:not(.jig-placed) { background: var(--yuzey); border-color: var(--mavi-800); }
.jig-cell.jig-placed {
    background: var(--yuzey); border: 2px solid var(--dogru); cursor: default;
}
.jig-cell.jig-pop { animation: bounceIn 0.4s; }
.jig-cell.jig-wrong { animation: shake 0.4s; border-color: var(--yanlis) !important; }
.jig-hint { font-size: 0.85rem; color: var(--murekkep-orta); margin-bottom: 0.8rem; }
.jig-ref-label { font-size: 0.8rem; font-weight: 700; color: var(--murekkep-orta); margin-bottom: 4px; }
.jig-ref { display: grid; gap: 2px; padding: 4px; margin: 0 auto 0.8rem; background: var(--yuzey-cam); border: 2px dashed var(--cizgi); border-radius: var(--r-giris); width: max-content; }
.jig-ref-cell { display: flex; align-items: center; justify-content: center; line-height: 1; }
.jig-pieces {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.jig-piece {
    width: 56px; height: 56px; border-radius: var(--r-giris); border: 3px solid var(--kat-bulmaca);
    background: var(--yuzey); cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: transform var(--sure-gecis) var(--egri-out), box-shadow var(--sure-gecis) var(--egri-out), background-color var(--sure-gecis) var(--egri-out), border-color var(--sure-gecis) var(--egri-out); box-shadow: var(--golge-1);
}
.jig-piece:hover { transform: scale(1.1); box-shadow: var(--golge-2); }
.jig-piece.jig-selected {
    background: var(--mavi-050); border-color: var(--mavi-800);
    box-shadow: 0 0 0 3px var(--odak-isik), var(--golge-2);
    transform: scale(1.1);
}

/* ============================================
   Desen Tamamlama Oyunu
   ============================================ */
.desen-game {
    max-width: 500px; margin: 0 auto; padding: 1rem; text-align: center;
}
.desen-progress { font-size: 0.85rem; font-weight: 700; color: var(--murekkep-orta); margin-bottom: 0.5rem; }
.desen-instruction {
    font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
    color: var(--murekkep); margin-bottom: 1.2rem;
}
.desen-sequence {
    display: flex; justify-content: center; align-items: center;
    gap: 6px; flex-wrap: wrap; margin-bottom: 2rem;
    background: var(--yuzey); border-radius: var(--r-kart); padding: 16px;
    box-shadow: var(--golge-1);
}
.desen-item {
    font-size: 2.2rem; min-width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s var(--egri-out), background-color 0.3s var(--egri-out);
}
.desen-unknown {
    background: var(--gunes); border-radius: var(--r-giris);
    animation: pulse 1.5s ease-in-out infinite; font-size: 1.5rem;
}
.desen-revealed {
    animation: bounceIn 0.5s; background: var(--dogru); border-radius: var(--r-giris); color: var(--beyaz);
}
.desen-choices {
    display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.desen-choice {
    font-size: 2.5rem; width: 72px; height: 72px; border-radius: var(--r-giris);
    border: 3px solid var(--cizgi); background: var(--yuzey); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform var(--sure-gecis) var(--egri-out), border-color var(--sure-gecis) var(--egri-out), box-shadow var(--sure-gecis) var(--egri-out); box-shadow: var(--golge-1);
}
.desen-choice:hover:not(:disabled) { transform: scale(1.1); border-color: var(--mavi-800); }
.desen-choice:disabled { cursor: default; }
.desen-correct { border-color: var(--dogru) !important; box-shadow: 0 0 0 3px var(--dogru-isik) !important; }
.desen-wrong { border-color: var(--yanlis) !important; animation: shake 0.4s; }

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 420px) {
    .mat-num { font-size: 2.2rem; padding: 6px 12px; min-width: 46px; }
    .mat-choice { font-size: 1.5rem; padding: 0.7rem; }
    .hece-btn { font-size: 1rem; padding: 10px 16px; }
    .hece-slot { min-width: 55px; height: 42px; font-size: 1.1rem; }
    .desen-item { font-size: 1.6rem; min-width: 36px; height: 36px; }
    .desen-choice { font-size: 1.8rem; width: 58px; height: 58px; }
    .jig-piece { width: 46px; height: 46px; }
}
