/* ==========================================
   matching.css - Kemirik Evreni Eşleştirmece
   Vuruş Eşleştirme & El/Parmak Numaraları Eşleştirme
   ========================================== */

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

body {
    min-height: 100vh;
    background-color: rgba(255, 243, 222, 0.94);
    background-image:
        radial-gradient(#ffc078 1.2px, transparent 1.2px),
        radial-gradient(#ffd8a8 1.2px, rgba(255, 243, 222, 0.94) 1.2px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    font-family: 'Roboto', sans-serif;
    color: #432818;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    overflow-x: hidden;
}

.matching-page-wrapper {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

/* ==========================================
   ÜST BAR & GERİ DÖNÜŞ BUTONU
   ========================================== */
.matching-top-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.back-btn {
    background: #ff6600;
    color: #ffffff;
    text-decoration: none;
    border: none;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.92rem;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.35);
}

.back-btn:hover {
    background: #e65100;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(255, 102, 0, 0.45);
}

.status-badge {
    background: #ffffff;
    color: #ff6600;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #ffcca8;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.12);
    font-size: 0.9rem;
}

/* ==========================================
   1. EŞLEŞTİRME SEÇİM EKRANI
   ========================================== */
.matching-selection-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.4s ease;
}

.selection-header {
    text-align: center;
    margin-bottom: 24px;
}

.selection-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 2.1rem;
    color: #e65100;
    text-shadow: 2px 2px 0px #ffe8cc;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.selection-subtitle {
    font-size: 1.05rem;
    color: #704828;
    font-weight: 500;
    max-width: 520px;
}

.matchings-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .matchings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.matching-item-card {
    background: #ffffff;
    border: 3px solid #ff922b;
    border-radius: 20px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 16px rgba(255, 146, 43, 0.15), 0 3px 0 #e67700;
    position: relative;
    overflow: hidden;
}

.matching-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(255, 146, 43, 0.28), 0 4px 0 #d9480f;
    border-color: #ff6600;
}

.matching-item-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 146, 43, 0.2);
}

.matching-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.matching-icon-badge {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffa94d 0%, #ff922b 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.matching-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.matching-item-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.1rem;
    color: #432818;
}

.matching-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #8c532b;
    font-weight: 500;
}

.matching-badge-tag {
    background: #fff4e6;
    color: #d9480f;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #ffd8a8;
}

.matching-badge-tag.hand-tag {
    background: #e7f5ff;
    color: #1971c2;
    border-color: #a5d8ff;
}

.matching-card-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff4e6;
    color: #ff6600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.matching-item-card:hover .matching-card-arrow {
    background: #ff6600;
    color: #ffffff;
    transform: translateX(4px);
}

/* ==========================================
   2. OYUN EKRANI & KART
   ========================================== */
.matching-play-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.4s ease;
}

.matching-main-container {
    width: 100%;
}

.matching-card {
    background: #ffffff;
    border: 4px solid #ff922b;
    border-radius: 26px;
    padding: 22px 20px;
    box-shadow: 0 16px 36px rgba(255, 146, 43, 0.18), 0 6px 0 #e67700;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}

.matching-card-header {
    text-align: center;
    margin-bottom: 16px;
}

.matching-game-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.55rem;
    color: #d9480f;
    margin-bottom: 6px;
    line-height: 1.25;
}

.matching-instruction-text {
    font-size: 0.95rem;
    color: #704828;
    font-weight: 600;
    background: #fff9db;
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-block;
    border: 1.5px dashed #f59f00;
    line-height: 1.4;
}

/* ==========================================
   3. TAHTA 1: NOTA & AYAK VURUŞLARI EŞLEŞTİRME
   ========================================== */
.matching-board {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
    width: 100%;
}

.board-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fffaf4;
    border: 2px solid #ffd8a8;
    border-radius: 18px;
    padding: 12px 10px;
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px dashed #ffe8cc;
}

.column-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.92rem;
    color: #8c532b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.column-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 8px;
    background: #f1f3f5;
    color: #495057;
}

.column-badge.movable-badge {
    background: #e7f5ff;
    color: #1971c2;
    border: 1px solid #a5d8ff;
    animation: pulseBadge 2s infinite ease-in-out;
}

@keyframes pulseBadge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.slots-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.slot-row-card {
    height: 88px;
    background: #ffffff;
    border: 2px solid #ffcca8;
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 6px 10px;
    gap: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    width: 100%;
    min-width: 0;
}

.fixed-column .slot-row-card {
    background: #fff9f2;
    border-color: #ffd8a8;
    cursor: default;
}

.slot-index-badge {
    width: 26px;
    height: 26px;
    background: #ff922b;
    color: #ffffff;
    font-weight: 900;
    font-size: 0.85rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.slot-image-wrapper {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #f1f3f5;
    overflow: hidden;
}

.slot-img {
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
    pointer-events: none;
}

.board-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 24px;
    flex-shrink: 0;
}

.divider-line {
    flex: 1;
    width: 2px;
    background: #ffd8a8;
}

.divider-icon {
    width: 26px;
    height: 26px;
    background: #ffe8cc;
    color: #d9480f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(255, 146, 43, 0.2);
}

.movable-column .slot-row-card {
    cursor: pointer;
    border-color: #74c0fc;
    background: #ffffff;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movable-column .slot-row-card:hover {
    border-color: #339af0;
    box-shadow: 0 6px 14px rgba(51, 154, 240, 0.2), 0 2px 0 #1c7ed6;
    transform: translateY(-2px);
}

.movable-column .slot-row-card.swap-selected {
    border-color: #ff922b !important;
    background: #fff4e6 !important;
    box-shadow: 0 0 0 3px #ffa94d, 0 6px 16px rgba(255, 146, 43, 0.35) !important;
    transform: scale(1.02);
    animation: selectedPulse 1.2s infinite ease-in-out;
}

@keyframes selectedPulse {

    0%,
    100% {
        box-shadow: 0 0 0 3px #ffa94d, 0 6px 16px rgba(255, 146, 43, 0.35);
    }

    50% {
        box-shadow: 0 0 0 4px #ff922b, 0 8px 20px rgba(255, 146, 43, 0.5);
    }
}

.reorder-controls {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
}

.reorder-arrow-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: #e7f5ff;
    color: #1971c2;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.reorder-arrow-btn:hover:not(:disabled) {
    background: #1971c2;
    color: #ffffff;
}

.reorder-arrow-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.drag-grip {
    color: #adb5bd;
    font-size: 0.95rem;
    cursor: grab;
    padding: 0 2px;
    flex-shrink: 0;
}

.drag-grip:active {
    cursor: grabbing;
}

.slot-row-card.match-success {
    border-color: #40c057 !important;
    background: #ebfbee !important;
    box-shadow: 0 0 0 2px #40c057 !important;
}

/* ==========================================
   4. TAHTA 2: EL & PARMAK NUMARALARI EŞLEŞTİRME 🖐️
   ========================================== */
.hand-matching-board {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    animation: fadeIn 0.4s ease;
}

/* Aşama Bannerı */
.hand-stage-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff8f0;
    border: 2px solid #ffd8a8;
    border-radius: 18px;
    padding: 10px 18px;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 4px 12px rgba(255, 146, 43, 0.08);
}

.hand-stage-badge {
    background: linear-gradient(135deg, #ffa94d 0%, #ff7300 100%);
    color: #ffffff;
    font-family: 'Archivo Black', sans-serif;
    font-size: 1rem;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(255, 115, 0, 0.3);
}

.hand-stage-hint {
    font-size: 0.92rem;
    font-weight: 700;
    color: #8c532b;
}

/* Oyun Alanı Grid */
.hand-play-area {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    align-items: center;
    width: 100%;
}

@media (max-width: 680px) {
    .hand-play-area {
        grid-template-columns: 1fr;
    }
}

/* Numara Tepsisi (Rack) */
.hand-rack-wrapper {
    background: #fffdfa;
    border: 2px solid #ffd8a8;
    border-radius: 20px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(255, 146, 43, 0.08);
}

.hand-rack-header {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.95rem;
    color: #d9480f;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px dashed #ffe8cc;
    padding-bottom: 8px;
    width: 100%;
    justify-content: center;
}

.hand-number-rack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
}

@media (max-width: 680px) {
    .hand-number-rack {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* 3D Renkli Yuvarlak Numara Çipleri */
.hand-chip {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.55rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18), 0 6px 12px rgba(0, 0, 0, 0.12);
    position: relative;
}

.hand-chip:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18), 0 10px 18px rgba(0, 0, 0, 0.18);
}

/* Renk Çeşitleri (Görsel Referans ile Birebir Uyumlu Renkler & Beyaz Rakamlar) */
.hand-chip.chip-1 {
    background: #f6c915;
    color: #ffffff;
    border: 2.5px solid #222222;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.hand-chip.chip-2 {
    background: #75c043;
    color: #ffffff;
    border: 2.5px solid #222222;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hand-chip.chip-3 {
    background: #1680e8;
    color: #ffffff;
    border: 2.5px solid #222222;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hand-chip.chip-4 {
    background: #e52e2d;
    color: #ffffff;
    border: 2.5px solid #222222;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hand-chip.chip-5 {
    background: #7c2be8;
    color: #ffffff;
    border: 2.5px solid #222222;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Seçili (Tap-to-Place) Durumu */
.hand-chip.selected {
    transform: translateY(-4px) scale(1.18);
    box-shadow: 0 0 0 5px #ff922b, 0 10px 24px rgba(255, 146, 43, 0.5) !important;
    animation: chipPulse 1.2s infinite ease-in-out;
}

@keyframes chipPulse {

    0%,
    100% {
        box-shadow: 0 0 0 5px #ff922b, 0 10px 24px rgba(255, 146, 43, 0.5);
    }

    50% {
        box-shadow: 0 0 0 7px #e65100, 0 12px 28px rgba(255, 102, 0, 0.65);
    }
}

/* Yerleştirilmiş (Havuzda Soluk) Durum */
.hand-chip.used {
    opacity: 0.22;
    pointer-events: none;
    transform: scale(0.85);
    filter: grayscale(0.5);
    box-shadow: none;
}

.rack-hint-text {
    font-size: 0.78rem;
    color: #8c532b;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

/* El Görsel Alanı */
.hand-visual-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hand-canvas-box {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    background: #ffffff;
    border: 2px solid #ffd8a8;
    box-shadow: 0 10px 26px rgba(255, 146, 43, 0.12);
    overflow: hidden;
}

.hand-stage-img {
    margin-top: 40px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Sol El için Aynalama */
.hand-stage-img.left-hand {
    transform: scaleX(-1);
}

/* Parmak Ucu Hedef Yuvaları (Dropzones) */
.fingertip-dropzone {
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    border: 2.5px dashed rgba(255, 146, 43, 0.65);
    background: rgba(255, 243, 222, 0.7);
    backdrop-filter: blur(2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.fingertip-dropzone:hover,
.fingertip-dropzone.drag-over {
    transform: translate(-50%, -50%) scale(1.14);
    border-color: #ff6600;
    background: rgba(255, 232, 204, 0.95);
    box-shadow: 0 0 16px rgba(255, 102, 0, 0.45);
}

.zone-number-hint {
    display: none !important;
}

/* Yuva Dolduğunda */
.fingertip-dropzone.filled {
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.fingertip-dropzone.filled:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.fingertip-dropzone.filled .hand-chip {
    width: 100%;
    height: 100%;
    animation: snapIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Doğru Eşleşen Parmak */
.fingertip-dropzone.correct-match .hand-chip {
    box-shadow: 0 0 0 4px #40c057, 0 8px 18px rgba(64, 192, 87, 0.55) !important;
    animation: correctPulse 0.6s ease-in-out;
}

@keyframes correctPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Yanlış Numarada Titreme ve Hata Glow */
.fingertip-dropzone.wrong-match .hand-chip {
    box-shadow: 0 0 0 4px #fa5252, 0 8px 18px rgba(250, 82, 82, 0.55) !important;
}

.chip-shake {
    animation: shakeError 0.5s ease-in-out !important;
}

@keyframes shakeError {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    20% {
        transform: translate(calc(-50% - 8px), -50%) rotate(-6deg);
    }

    40% {
        transform: translate(calc(-50% + 8px), -50%) rotate(6deg);
    }

    60% {
        transform: translate(calc(-50% - 6px), -50%) rotate(-4deg);
    }

    80% {
        transform: translate(calc(-50% + 6px), -50%) rotate(4deg);
    }
}

@keyframes snapIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    70% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================
   5. GERİ BİLDİRİM VE ALT BUTONLAR
   ========================================== */
.matching-feedback {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 14px;
    padding: 6px 12px;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s ease;
}

.matching-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

.matching-feedback.feedback-success {
    background: #ebfbee;
    color: #2b8a3e;
    border: 2px solid #8ce99a;
}

.matching-feedback.feedback-warn {
    background: #fff5f5;
    color: #c92a2a;
    border: 2px solid #ffa8a8;
}

.matching-actions-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
}

.btn-action {
    border: none;
    border-radius: 14px;
    padding: 12px 24px;
    font-family: 'Archivo Black', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-shuffle {
    background: #fff4e6;
    color: #d9480f;
    border: 2px solid #ffd8a8;
    box-shadow: 0 3px 0 #fcc419;
}

.btn-shuffle:hover {
    background: #ffe8cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 0 #fab005;
}

.btn-check {
    background: linear-gradient(135deg, #ff922b 0%, #ff6600 100%);
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(255, 102, 0, 0.35), 0 3px 0 #c92a2a;
}

.btn-check:hover {
    background: linear-gradient(135deg, #ff8114 0%, #e65100 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(255, 102, 0, 0.45), 0 3px 0 #a61e4d;
}

.btn-action:active {
    transform: translateY(2px);
    box-shadow: none !important;
}

/* ==========================================
   6. SONUÇ / TEBRİKLER EKRANI
   ========================================== */
.matching-result-card {
    background: #ffffff;
    border: 4px solid #40c057;
    border-radius: 26px;
    padding: 34px 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(64, 192, 87, 0.22), 0 6px 0 #2b8a3e;
    animation: scaleIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
}

.result-icon-box {
    width: 76px;
    height: 76px;
    background: #ebfbee;
    color: #40c057;
    border-radius: 50%;
    margin: 0 auto 14px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 6px 18px rgba(64, 192, 87, 0.22);
}

.result-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.9rem;
    color: #2b8a3e;
    margin-bottom: 6px;
}

.result-subtitle {
    font-size: 1rem;
    color: #495057;
    font-weight: 500;
    margin-bottom: 18px;
    line-height: 1.4;
}

.stars-celebration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
}

.heart-star {
    font-size: 2rem;
    color: #ff6b81;
    animation: pulseHeart 1.4s infinite ease-in-out;
}

.heart-star:nth-child(3) {
    animation-delay: 0.3s;
}

.star-center {
    font-size: 2.8rem;
    color: #ffd43b;
    filter: drop-shadow(0 4px 8px rgba(250, 176, 5, 0.4));
    animation: starSpin 3s infinite linear;
}

@keyframes pulseHeart {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.22);
    }
}

@keyframes starSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(15deg) scale(1.1);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

.result-stats-box {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    justify-content: space-around;
    margin-bottom: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat-label {
    font-size: 0.82rem;
    color: #868e96;
    font-weight: 600;
}

.stat-val {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.15rem;
    color: #212529;
}

.stat-val.correct-badge {
    color: #2b8a3e;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-retry,
.btn-home {
    border: none;
    border-radius: 14px;
    padding: 12px 20px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-retry {
    background: #ff922b;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(255, 146, 43, 0.35);
}

.btn-retry:hover {
    background: #f76707;
    transform: translateY(-2px);
}

.btn-home {
    background: #e9ecef;
    color: #495057;
}

.btn-home:hover {
    background: #dee2e6;
    transform: translateY(-2px);
}

/* ==========================================
   7. KALP VE PATATES KIZARTMASI KONFETİ KANVASI
   ========================================== */
.heart-fry-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* ==========================================
   8. RESPONSIVE MOBİL OPTİMİZASYONU
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    body {
        padding: 12px 10px;
    }

    .matching-card {
        padding: 18px 14px;
        border-radius: 22px;
    }

    .matching-board {
        gap: 8px;
    }

    .board-column {
        padding: 10px 8px;
    }

    .slot-row-card {
        height: 82px;
        padding: 6px 8px;
        gap: 6px;
    }

    .slot-img {
        max-height: 64px;
    }
}

@media (max-width: 540px) {
    body {
        padding: 8px 6px;
    }

    .matching-top-bar {
        margin-bottom: 12px;
    }

    .back-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .status-badge {
        padding: 7px 12px;
        font-size: 0.82rem;
    }

    .selection-header {
        margin-bottom: 18px;
    }

    .selection-title {
        font-size: 1.65rem;
    }

    .selection-subtitle {
        font-size: 0.9rem;
    }

    .matching-card {
        padding: 14px 8px;
        border-radius: 20px;
        border-width: 3px;
        box-shadow: 0 10px 24px rgba(255, 146, 43, 0.14), 0 4px 0 #e67700;
    }

    .matching-card-header {
        margin-bottom: 12px;
    }

    .matching-game-title {
        font-size: 1.25rem;
        margin-bottom: 4px;
    }

    .matching-instruction-text {
        font-size: 0.82rem;
        padding: 6px 10px;
        border-radius: 10px;
    }

    .matching-board {
        gap: 6px;
        margin-bottom: 12px;
    }

    .board-divider {
        width: 10px;
        gap: 0;
    }

    .divider-icon {
        display: none;
    }

    .divider-line {
        width: 1.5px;
        border-right: 1.5px dashed #ffd8a8;
        background: transparent;
    }

    .board-column {
        padding: 6px 4px;
        border-radius: 14px;
        border-width: 1.5px;
    }

    .column-header {
        margin-bottom: 6px;
        padding-bottom: 4px;
    }

    .column-title {
        font-size: 0.76rem;
        gap: 3px;
    }

    .column-badge {
        display: none;
    }

    .slots-container {
        gap: 7px;
    }

    .slot-row-card {
        height: 74px;
        padding: 4px 5px;
        gap: 4px;
        border-radius: 11px;
        border-width: 1.5px;
    }

    .slot-index-badge {
        width: 22px;
        height: 22px;
        font-size: 0.72rem;
        border-radius: 6px;
    }

    .slot-image-wrapper {
        padding: 2px;
        border-radius: 7px;
    }

    .slot-img {
        max-height: 56px;
    }

    .reorder-controls {
        gap: 2px;
    }

    .reorder-arrow-btn {
        width: 22px;
        height: 23px;
        font-size: 0.65rem;
        border-radius: 5px;
    }

    .drag-grip {
        display: none;
    }

    /* El Eşleştirme Mobil */
    .hand-stage-banner {
        padding: 8px 12px;
    }

    .hand-stage-badge {
        font-size: 0.85rem;
        padding: 4px 12px;
    }

    .hand-stage-hint {
        font-size: 0.8rem;
    }

    .hand-canvas-box {
        max-width: 310px;
    }

    .hand-chip {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .fingertip-dropzone {
        width: 46px;
        height: 46px;
    }

    .zone-number-hint {
        font-size: 0.95rem;
    }

    /* Geri Bildirim */
    .matching-feedback {
        font-size: 0.88rem;
        min-height: 32px;
        margin-bottom: 10px;
        padding: 4px 8px;
    }

    .matching-actions-footer {
        gap: 8px;
    }

    .btn-action {
        flex: 1 1 calc(50% - 6px);
        min-width: 130px;
        padding: 10px 12px;
        font-size: 0.86rem;
        border-radius: 12px;
        gap: 5px;
    }

    .matching-result-card {
        padding: 22px 14px;
        border-radius: 20px;
    }

    .result-icon-box {
        width: 62px;
        height: 62px;
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .result-title {
        font-size: 1.55rem;
    }

    .result-subtitle {
        font-size: 0.88rem;
        margin-bottom: 14px;
    }

    .stars-celebration {
        gap: 10px;
        margin-bottom: 16px;
    }

    .heart-star {
        font-size: 1.6rem;
    }

    .star-center {
        font-size: 2.2rem;
    }

    .result-stats-box {
        padding: 10px 12px;
        margin-bottom: 18px;
    }

    .stat-val {
        font-size: 1rem;
    }

    .btn-retry,
    .btn-home {
        width: 100%;
        justify-content: center;
        padding: 11px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 370px) {
    .hand-canvas-box {
        max-width: 270px;
    }

    .hand-chip {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .fingertip-dropzone {
        width: 42px;
        height: 42px;
    }

    .slot-row-card {
        height: 68px;
        padding: 3px 4px;
        gap: 3px;
    }

    .slot-img {
        max-height: 50px;
    }

    .reorder-arrow-btn {
        width: 20px;
        height: 21px;
        font-size: 0.6rem;
    }

    .slot-index-badge {
        width: 20px;
        height: 20px;
        font-size: 0.68rem;
    }

    .column-title {
        font-size: 0.7rem;
    }

    .btn-action {
        font-size: 0.8rem;
        padding: 9px 8px;
    }
}