        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
            min-height: 100vh;
            color: white;
            padding: 20px;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            -webkit-touch-callout: none;
            -webkit-tap-highlight-color: transparent;
        }

        .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 0 10px;
        }

        /* Top Toolbar - Fixed sağ üst köşe */
        .top-toolbar {
            position: fixed;
            top: 16px;
            right: 16px;
            z-index: 1000;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 10px;
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(30, 41, 59, 0.5));
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-radius: 9999px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
        }

        .toolbar-btn {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.2));
            border: 1px solid rgba(139, 92, 246, 0.3);
            color: white;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 17px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
            position: relative;
            overflow: hidden;
        }

        .toolbar-btn::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent 70%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .toolbar-btn:hover {
            transform: scale(1.12);
            box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
            border-color: rgba(139, 92, 246, 0.5);
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.35));
        }

        .toolbar-btn:hover::before {
            opacity: 1;
        }

        .toolbar-btn:active {
            transform: scale(0.95);
        }

        /* Settings butonu özel hover - dönme */
        #settingsBtnDesktop:hover {
            transform: scale(1.12) rotate(90deg);
        }

        /* Mobil Responsive */
        @media (max-width: 768px) {
            body {
                padding: 10px;
                font-size: 14px;
            }

            .top-toolbar {
                display: none;
            }

            /* Hamburger butonu mobilde görünsün */
            .mobile-hamburger.mobile-only {
                display: flex !important;
            }

            .container {
                padding: 0 5px;
            }

            .header h1 {
                font-size: 1.8rem;
                margin-bottom: 5px;
            }

            .header p {
                font-size: 1rem;
            }

            .game-mode {
                grid-template-columns: 1fr;
                gap: 15px;
                margin-bottom: 20px;
            }

            .mode-card {
                padding: 20px;
            }

            .mode-card h3 {
                font-size: 1.2rem;
            }

            .difficulty {
                grid-template-columns: 1fr 1fr;
                gap: 10px;
                margin-bottom: 20px;
            }

            .diff-card {
                padding: 15px;
            }

            .start-btn {
                font-size: 16px;
                padding: 15px 30px;
                margin: 15px auto;
            }

            .game-area {
                padding: 20px;
                margin-top: 20px;
            }

            .question h3 {
                font-size: 1.2rem;
                margin-bottom: 10px;
            }

            .question p {
                font-size: 1rem;
            }

            .words-area,
            .answer-area {
                min-height: 80px;
                padding: 15px;
            }

            .word {
                font-size: 14px;
                padding: 8px 12px;
                margin: 3px;
            }

            .modal-content {
                margin: 10px;
                max-height: 90vh;
                overflow-y: auto;
            }

            .settings-section {
                margin-bottom: 20px;
            }

            .settings-section h3 {
                font-size: 1.1rem;
                margin-bottom: 10px;
            }

            .theme-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .theme-option {
                padding: 10px;
            }

            .theme-name {
                font-size: 12px;
            }

            .language-options {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .language-option {
                padding: 10px;
            }

            .mobile-menu {
                display: block;
            }

            .desktop-only {
                display: none;
            }
        }

        /* Mobil Menü */
        .mobile-menu {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            padding: 20px;
            overflow-y: auto;
        }

        .mobile-menu.active {
            display: block;
        }

        .mobile-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .mobile-menu-title {
            font-size: 1.5rem;
            color: white;
        }

        .mobile-menu-close {
            background: none;
            border: none;
            color: white;
            font-size: 2rem;
            cursor: pointer;
            padding: 0;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .mobile-menu-section {
            margin-bottom: 30px;
        }

        .mobile-menu-section h4 {
            color: #f59e0b;
            margin-bottom: 15px;
            font-size: 1.1rem;
        }

        .mobile-menu-btn {
            display: block;
            width: 100%;
            background: linear-gradient(45deg, #3b82f6, #1d4ed8);
            color: white;
            border: none;
            padding: 15px 20px;
            margin-bottom: 10px;
            border-radius: 10px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: left;
        }

        .mobile-menu-btn:hover {
            background: linear-gradient(45deg, #1d4ed8, #1e40af);
            transform: translateY(-2px);
        }

        .mobile-menu-btn:active {
            transform: translateY(0);
        }

        /* Touch Gestures */
        .touch-gestures {
            margin-top: 20px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
        }

        .gesture-item {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            color: white;
        }

        .gesture-icon {
            font-size: 1.5rem;
            margin-right: 15px;
            width: 30px;
            text-align: center;
        }

        .gesture-text {
            flex: 1;
        }

        .gesture-title {
            font-weight: bold;
            margin-bottom: 5px;
        }

        .gesture-desc {
            font-size: 0.9rem;
            opacity: 0.8;
        }

        @media (max-width: 480px) {
            body {
                padding: 5px;
                font-size: 12px;
            }

            .header h1 {
                font-size: 1.5rem;
            }

            .mode-card h3 {
                font-size: 1rem;
            }

            .word {
                font-size: 12px;
                padding: 6px 10px;
                margin: 2px;
            }

            .theme-grid {
                grid-template-columns: 1fr;
            }

            .language-options {
                grid-template-columns: 1fr;
            }
        }

        .header {
            text-align: center;
            margin-bottom: 30px;
        }

        .header h1 {
            font-size: 3rem;
            margin-bottom: 10px;
            background: linear-gradient(45deg, #ff6b6b, #ee5a24);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .game-mode {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .mode-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 30px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        .mode-card:hover {
            transform: translateY(-5px);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .mode-card.selected {
            border-color: #ff6b6b;
            background: rgba(255, 107, 107, 0.2);
        }

        .mode-card h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
        }

        .mode-card p {
            opacity: 0.8;
            margin-bottom: 20px;
        }

        .difficulty {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 30px;
        }

        .diff-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        .diff-card:hover {
            transform: translateY(-3px);
        }

        .diff-card.selected {
            border-color: #4ade80;
            background: rgba(74, 222, 128, 0.2);
        }

        .start-btn {
            background: linear-gradient(45deg, #ff6b6b, #ee5a24);
            color: white;
            border: none;
            padding: 20px 40px;
            font-size: 1.5rem;
            font-weight: bold;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
            margin: 20px auto;
            display: block;
        }

        .start-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
        }

        .start-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .game-area {
            display: none;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 30px;
            margin-top: 30px;
        }

        .question {
            text-align: center;
            margin-bottom: 30px;
            position: relative;
        }

        .question h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
        }

        .question p {
            font-size: 1.2rem;
            opacity: 0.9;
        }

        .words-area {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 20px;
            min-height: 100px;
            border: 2px dashed rgba(255, 255, 255, 0.3);
            border-radius: 15px;
            padding: 20px;
        }

        .word {
            background: rgba(255, 255, 255, 0.2);
            padding: 10px 15px;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            user-select: none;
            margin: 5px;
            display: inline-block;
        }

        .word:hover {
            transform: scale(1.05);
        }

        .word.dragging {
            opacity: 0.5;
            transform: rotate(5deg);
        }

        /* Renk kodları - Kolay mod için */
        .word.subject {
            background: linear-gradient(45deg, #3b82f6, #1d4ed8);
        }

        .word.verb {
            background: linear-gradient(45deg, #10b981, #047857);
        }

        .word.time {
            background: linear-gradient(45deg, #f59e0b, #d97706);
        }

        .word.place {
            background: linear-gradient(45deg, #ec4899, #be185d);
        }

        .word.object {
            background: linear-gradient(45deg, #06b6d4, #0891b2);
        }

        .word.preposition {
            background: linear-gradient(45deg, #0ea5e9, #0284c7);
        }

        .word.article {
            background: linear-gradient(45deg, #6b7280, #4b5563);
        }

        .word.adverb {
            background: linear-gradient(45deg, #f97316, #ea580c);
        }

        .word.adjective {
            background: linear-gradient(45deg, #84cc16, #65a30d);
        }

        .word.possessive {
            background: linear-gradient(45deg, #38bdf8, #9333ea);
        }

        .word.greeting {
            background: linear-gradient(45deg, #fbbf24, #f59e0b);
        }

        .word.noun {
            background: linear-gradient(45deg, #0ea5e9, #0284c7);
        }

        .word.proper_noun {
            background: linear-gradient(45deg, #ec4899, #be185d);
        }

        .word.language {
            background: linear-gradient(45deg, #06b6d4, #0891b2);
        }

        .word.conjunction {
            background: linear-gradient(45deg, #10b981, #047857);
        }

        .word.W-frage {
            background: linear-gradient(45deg, #f59e0b, #d97706);
        }

        .word.demonstrative_pronoun {
            background: linear-gradient(45deg, #0ea5e9, #0284c7);
        }

        .word.profession {
            background: linear-gradient(45deg, #06b6d4, #0891b2);
        }

        .word.separable_verb_part {
            background: linear-gradient(45deg, #10b981, #047857);
        }

        .word.number {
            background: linear-gradient(45deg, #f59e0b, #d97706);
        }

        .word.ordinal_number {
            background: linear-gradient(45deg, #f59e0b, #d97706);
        }

        .word.month {
            background: linear-gradient(45deg, #f59e0b, #d97706);
        }

        .word.modal_verb {
            background: linear-gradient(45deg, #10b981, #047857);
            position: relative !important;
            width: auto !important;
            height: auto !important;
            top: auto !important;
            left: auto !important;
            z-index: auto !important;
        }

        /* Modal verb sınıfı için özel düzeltme */
        .word.modal.verb {
            position: relative !important;
            width: auto !important;
            height: auto !important;
            top: auto !important;
            left: auto !important;
            right: auto !important;
            bottom: auto !important;
            z-index: auto !important;
            display: inline-block !important;
            margin: 5px !important;
            padding: 8px 12px !important;
            border-radius: 8px !important;
            background: linear-gradient(45deg, #10b981, #047857) !important;
            color: white !important;
            font-weight: bold !important;
            cursor: pointer !important;
            transition: all 0.3s ease !important;
        }

        .word.auxiliary_verb {
            background: linear-gradient(45deg, #10b981, #047857);
            position: relative !important;
            width: auto !important;
            height: auto !important;
        }

        .word.past_participle_verb {
            background: linear-gradient(45deg, #10b981, #047857);
            position: relative !important;
            width: auto !important;
            height: auto !important;
        }

        .word.separable_verb {
            background: linear-gradient(45deg, #10b981, #047857);
            position: relative !important;
            width: auto !important;
            height: auto !important;
        }

        .word.relative_pronoun {
            background: linear-gradient(45deg, #0ea5e9, #0284c7);
        }

        .word.reflexive_pronoun {
            background: linear-gradient(45deg, #0ea5e9, #0284c7);
        }

        .word.pronoun {
            background: linear-gradient(45deg, #0ea5e9, #0284c7);
        }

        .word.infinitive_with_zu {
            background: linear-gradient(45deg, #10b981, #047857);
        }

        .word.infinitive_particle {
            background: linear-gradient(45deg, #10b981, #047857);
        }

        .word.auxiliary_verb_Plusquamperfekt {
            background: linear-gradient(45deg, #10b981, #047857);
        }

        .word.verb_Konjunktiv_II {
            background: linear-gradient(45deg, #10b981, #047857);
        }

        .word.auxiliary_verb_Konjunktiv_II {
            background: linear-gradient(45deg, #10b981, #047857);
        }

        .word.auxiliary_verb_Passiv {
            background: linear-gradient(45deg, #10b981, #047857);
        }

        .word.relative_pronoun_Genitiv {
            background: linear-gradient(45deg, #0ea5e9, #0284c7);
        }

        .word.past_participle {
            background: linear-gradient(45deg, #10b981, #047857);
        }

        .word.verb_Präteritum {
            background: linear-gradient(45deg, #10b981, #047857);
        }

        .word.auxiliary_verb_Futur_I_Passiv {
            background: linear-gradient(45deg, #10b981, #047857);
        }

        .word-pool {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 20px;
            min-height: 100px;
            border: 2px dashed rgba(255, 255, 255, 0.3);
            border-radius: 15px;
            padding: 20px;
            background: rgba(0, 0, 0, 0.1);
        }

        .answer-area {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 20px;
            min-height: 100px;
            border: 2px solid rgba(255, 255, 255, 0.5);
            border-radius: 15px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.05);
        }

        .error-indicator {
            color: #ef4444;
            font-size: 1.5rem;
            text-align: center;
            margin-top: 10px;
            display: none;
        }

        .error-indicator.show {
            display: block;
            animation: shake 0.5s ease-in-out;
        }

        @keyframes shake {

            0%,
            100% {
                transform: translateX(0);
            }

            25% {
                transform: translateX(-5px);
            }

            75% {
                transform: translateX(5px);
            }
        }

        /* İpucu Butonu ve Alanı */
        .hint-btn {
            background: linear-gradient(45deg, #f59e0b, #d97706);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            margin-top: 10px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
        }

        .hint-btn:hover {
            background: linear-gradient(45deg, #d97706, #b45309);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
        }

        .hint-area {
            position: absolute;
            z-index: 1000;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            width: 95%;
            max-width: 450px;
            background: linear-gradient(135deg, #1e293b, #334155);
            border: 2px solid #f59e0b;
            border-radius: 12px;
            padding: 20px;
            margin-top: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
            animation: slideDown 0.3s ease-out;
            pointer-events: auto;
        }

        .hint-area::before {
            content: '';
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            border-left: 12px solid transparent;
            border-right: 12px solid transparent;
            border-bottom: 12px solid #f59e0b;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hint-content h4 {
            color: #f59e0b;
            margin: 0 0 10px 0;
            font-size: 16px;
        }

        .hint-content p {
            color: #e2e8f0;
            line-height: 1.6;
            margin: 0 0 15px 0;
            font-size: 14px;
        }

        .color-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 10px;
        }

        .color-item {
            background: rgba(255, 255, 255, 0.1);
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: bold;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        /* Başarı Sistemi Stilleri */
        .achievement-btn {
            background: linear-gradient(45deg, #fbbf24, #f59e0b);
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            margin-left: 15px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
        }

        .achievement-btn:hover {
            background: linear-gradient(45deg, #f59e0b, #d97706);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
        }

        .stats-btn {
            background: linear-gradient(45deg, #3b82f6, #1d4ed8);
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            margin-left: 10px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
        }

        .stats-btn:hover {
            background: linear-gradient(45deg, #1d4ed8, #1e40af);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
        }

        .learning-btn {
            background: linear-gradient(45deg, #10b981, #059669);
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            margin-left: 10px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
        }

        .learning-btn:hover {
            background: linear-gradient(45deg, #059669, #047857);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
        }

        .stats-modal {
            max-width: 900px;
            max-height: 90vh;
            overflow-y: auto;
        }

        .stats-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        }

        .tab-btn {
            background: transparent;
            color: #94a3b8;
            border: none;
            padding: 12px 20px;
            border-radius: 8px 8px 0 0;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
            border-bottom: 2px solid transparent;
        }

        .tab-btn.active {
            color: #3b82f6;
            background: rgba(59, 130, 246, 0.1);
            border-bottom-color: #3b82f6;
        }

        .tab-btn:hover {
            color: #e2e8f0;
            background: rgba(255, 255, 255, 0.05);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .stats-actions {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .strength-item,
        .improvement-item,
        .recommendation-item {
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 14px;
        }

        .strength-item:last-child,
        .improvement-item:last-child,
        .recommendation-item:last-child {
            border-bottom: none;
        }

        .strength-item {
            color: #10b981;
        }

        .improvement-item {
            color: #f59e0b;
        }

        .recommendation-item {
            color: #3b82f6;
        }

        /* Ses Sistemi Stilleri */
        .audio-settings {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .volume-controls {
            background: rgba(255, 255, 255, 0.05);
            padding: 15px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .volume-controls label {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }

        .volume-controls input[type="range"] {
            flex: 1;
            height: 6px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
            outline: none;
            -webkit-appearance: none;
        }

        .volume-controls input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            background: #3b82f6;
            border-radius: 50%;
            cursor: pointer;
        }

        .volume-controls input[type="range"]::-moz-range-thumb {
            width: 18px;
            height: 18px;
            background: #3b82f6;
            border-radius: 50%;
            cursor: pointer;
            border: none;
        }

        .music-selection select {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            padding: 8px 12px;
            font-size: 14px;
        }

        .music-selection select option {
            background: #1e293b;
            color: white;
        }

        .music-player {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: linear-gradient(135deg, #1e293b, #334155);
            border-radius: 12px;
            padding: 15px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            z-index: 100;
            display: none;
        }

        .music-player.show {
            display: block;
            animation: slideInUp 0.3s ease-out;
        }

        .music-player.compact-player {
            right: auto !important;
            left: 20px !important;
            bottom: 20px !important;
            padding: 10px 15px !important;
            background: rgba(15, 23, 42, 0.85) !important;
            backdrop-filter: blur(8px) !important;
            border-radius: 50px !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            z-index: 9999 !important;
        }

        .music-player.compact-player .music-btn {
            width: 36px !important;
            height: 36px !important;
            font-size: 14px !important;
        }

        .music-player.compact-player .music-title {
            font-size: 12px !important;
            margin-bottom: 0px !important;
        }

        .music-player.compact-player .music-volume input[type="range"] {
            width: 50px !important;
            height: 4px !important;
        }

        @keyframes slideInUp {
            from {
                transform: translateY(100%);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .music-controls {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .music-btn {
            background: #3b82f6;
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .music-btn:hover {
            background: #1d4ed8;
            transform: scale(1.1);
        }

        .music-info {
            flex: 1;
            color: #e2e8f0;
            font-size: 12px;
        }

        .music-title {
            font-weight: bold;
            margin-bottom: 2px;
        }

        .music-volume {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .music-volume input[type="range"] {
            width: 60px;
            height: 4px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
            outline: none;
            -webkit-appearance: none;
        }

        .music-volume input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 12px;
            height: 12px;
            background: #3b82f6;
            border-radius: 50%;
            cursor: pointer;
        }

        /* Tema Sistemi Stilleri */
        .theme-selection {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .theme-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 15px;
        }

        .theme-option {
            cursor: pointer;
            transition: all 0.3s ease;
            border-radius: 12px;
            overflow: hidden;
            border: 2px solid transparent;
        }

        .theme-option:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .theme-option.active {
            border-color: #3b82f6;
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
        }

        .theme-preview {
            padding: 15px;
            text-align: center;
            border-radius: 10px;
            position: relative;
            overflow: hidden;
        }

        .theme-colors {
            display: flex;
            justify-content: center;
            gap: 5px;
            margin-bottom: 10px;
        }

        .color-swatch {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .theme-name {
            font-size: 12px;
            font-weight: bold;
            color: inherit;
        }

        /* Tema Renkleri */
        .dark-theme {
            background: linear-gradient(135deg, #1e293b, #334155);
            color: #e2e8f0;
        }

        .light-theme {
            background: linear-gradient(135deg, #f8fafc, #e2e8f0);
            color: #1e293b;
        }

        .ocean-theme {
            background: linear-gradient(135deg, #0f172a, #1e3a8a);
            color: #e0f2fe;
        }

        .sunset-theme {
            background: linear-gradient(135deg, #1c1917, #dc2626);
            color: #fef3c7;
        }

        .forest-theme {
            background: linear-gradient(135deg, #14532d, #22c55e);
            color: #f0fdf4;
        }

        .purple-theme {
            background: linear-gradient(135deg, #581c87, #38bdf8);
            color: #faf5ff;
        }

        .theme-customization {
            background: rgba(255, 255, 255, 0.05);
            padding: 20px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .theme-customization h4 {
            color: #fbbf24;
            margin: 0 0 15px 0;
            font-size: 16px;
        }

        .custom-colors {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-bottom: 15px;
        }

        .custom-colors label {
            display: flex;
            flex-direction: column;
            gap: 5px;
            color: #e2e8f0;
            font-size: 14px;
        }

        .custom-colors input[type="color"] {
            width: 100%;
            height: 40px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
        }

        /* CSS Değişkenleri */
        :root {
            --primary-color: #3b82f6;
            --secondary-color: #10b981;
            --background-color: #1e293b;
            --text-color: #e2e8f0;
            --accent-color: #fbbf24;
            --success-color: #10b981;
            --error-color: #ef4444;
            --warning-color: #f59e0b;
        }

        /* Tema Uygulama */
        body.theme-dark {
            --primary-color: #3b82f6;
            --secondary-color: #10b981;
            --background-color: #1e293b;
            --text-color: #e2e8f0;
            --accent-color: #fbbf24;
        }

        body.theme-light {
            --primary-color: #3b82f6;
            --secondary-color: #10b981;
            --background-color: #f8fafc;
            --text-color: #1e293b;
            --accent-color: #f59e0b;
        }

        body.theme-ocean {
            --primary-color: #06b6d4;
            --secondary-color: #10b981;
            --background-color: #0f172a;
            --text-color: #e0f2fe;
            --accent-color: #06b6d4;
        }

        body.theme-sunset {
            --primary-color: #f59e0b;
            --secondary-color: #ef4444;
            --background-color: #1c1917;
            --text-color: #fef3c7;
            --accent-color: #f59e0b;
        }

        body.theme-forest {
            --primary-color: #22c55e;
            --secondary-color: #84cc16;
            --background-color: #14532d;
            --text-color: #f0fdf4;
            --accent-color: #22c55e;
        }

        body.theme-purple {
            --primary-color: #38bdf8;
            --secondary-color: #ec4899;
            --background-color: #581c87;
            --text-color: #faf5ff;
            --accent-color: #38bdf8;
        }

        /* Akıllı Öğrenme Sistemi Stilleri */
        .smart-learning-settings {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .learning-mode h4,
        .difficulty-adjustment h4,
        .learning-goals h4,
        .weak-areas h4 {
            color: #fbbf24;
            margin: 0 0 15px 0;
            font-size: 16px;
        }

        .mode-options {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .stats-modal,
        .social-modal,
        .achievement-modal {
            max-width: 900px;
            max-height: 90vh;
            overflow-y: auto;
        }

        .social-modal .modal-content {
            background: var(--bg-glass);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .stats-tabs,
        .social-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        }

        .tab-btn {
            background: transparent;
            color: var(--text-secondary);
            border: none;
            padding: var(--space-md) var(--space-lg);
            border-radius: var(--radius-md) var(--radius-md) 0 0;
            cursor: pointer;
            font-weight: 500;
            font-size: var(--font-size-sm);
            transition: all var(--transition-base);
            border-bottom: 2px solid transparent;
        }

        .tab-btn.active {
            color: var(--color-primary);
            background: rgba(59, 130, 246, 0.1);
            border-bottom-color: var(--color-primary);
        }

        .tab-btn:hover {
            color: var(--text-primary);
            background: var(--bg-glass);
        }

        .tab-content {
            display: none;
            animation: fadeIn 0.4s ease-out;
        }

        .tab-content.active {
            display: block;
        }

        /* Premium Profile Design (Social) */
        .profile-header {
            display: flex;
            align-items: center;
            gap: var(--space-xl);
            padding: var(--space-xl);
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
            border-radius: var(--radius-lg);
            border: 1px solid rgba(255, 255, 255, 0.05);
            margin-bottom: var(--space-xl);
        }

        .profile-avatar {
            position: relative;
            width: 120px;
            height: 120px;
            flex-shrink: 0;
        }

        .profile-avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--color-primary);
            box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
            transition: transform 0.3s ease;
        }

        .profile-avatar:hover img {
            transform: scale(1.05) rotate(2deg);
        }

        .change-avatar-btn {
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--bg-glass);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 12px;
            cursor: pointer;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            white-space: nowrap;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .change-avatar-btn:hover {
            background: var(--color-primary);
            transform: translateX(-50%) translateY(-2px);
        }

        .profile-info h3 {
            font-size: 28px;
            font-weight: 800;
            margin: 0 0 10px 0;
            background: linear-gradient(135deg, #fff, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .profile-info p {
            font-size: 16px;
            color: var(--text-secondary);
            margin: 5px 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .profile-info p::before {
            content: "•";
            color: var(--color-primary);
        }

        /* Glassmorphism Profile Stats */
        .profile-stats .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: var(--space-lg);
            margin-bottom: var(--space-xl);
        }

        .profile-stats .stat-item {
            background: rgba(15, 23, 42, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.05);
            padding: var(--space-lg);
            border-radius: var(--radius-lg);
            text-align: center;
            transition: all 0.3s ease;
        }

        .profile-stats .stat-item:hover {
            transform: translateY(-4px);
            background: rgba(30, 41, 59, 0.6);
            border-color: rgba(59, 130, 246, 0.3);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .profile-stats .stat-label {
            display: block;
            color: var(--text-secondary);
            font-size: 14px;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .profile-stats .stat-value {
            display: block;
            color: white;
            font-size: 32px;
            font-weight: bold;
            font-family: 'Inter', sans-serif;
            text-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
        }

        /* Recent Achievements Badge Area */
        .profile-achievements .recent-achievements {
            display: flex;
            flex-wrap: wrap;
            gap: var(--space-md);
            background: rgba(0, 0, 0, 0.2);
            padding: var(--space-lg);
            border-radius: var(--radius-lg);
        }

        .achievement-badge {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
            border: 1px solid rgba(245, 158, 11, 0.2);
            padding: 10px 20px;
            border-radius: 30px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #fcd34d;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .achievement-badge:hover {
            background: rgba(245, 158, 11, 0.15);
            transform: scale(1.05);
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .mode-options label {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            border: 2px solid transparent;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .mode-options label:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(59, 130, 246, 0.3);
        }

        .mode-options label:has(input:checked) {
            background: rgba(59, 130, 246, 0.1);
            border-color: #3b82f6;
        }

        .mode-options input[type="radio"] {
            margin: 0;
            width: 18px;
            height: 18px;
            accent-color: #3b82f6;
        }

        .mode-label {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .mode-label strong {
            color: #e2e8f0;
            font-size: 14px;
        }

        .mode-label small {
            color: #94a3b8;
            font-size: 12px;
        }

        .adjustment-options {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .adjustment-options label {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .adjustment-options label:hover {
            background: rgba(255, 255, 255, 0.08);
        }

        .adjustment-options input[type="checkbox"] {
            width: 16px;
            height: 16px;
            accent-color: #3b82f6;
        }

        .goal-settings {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        .goal-settings label {
            display: flex;
            flex-direction: column;
            gap: 8px;
            color: #e2e8f0;
            font-size: 14px;
        }

        .goal-settings input[type="number"] {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            padding: 8px 12px;
            font-size: 14px;
        }

        .goal-settings input[type="number"]:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
        }

        .weak-areas-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 15px;
        }

        .weak-area-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 12px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            border-left: 4px solid #ef4444;
        }

        .area-name {
            min-width: 120px;
            color: #e2e8f0;
            font-weight: 500;
            font-size: 14px;
        }

        .weak-area-item .progress-bar {
            flex: 1;
            height: 8px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            overflow: hidden;
        }

        .weak-area-item .progress-fill {
            height: 100%;
            background: linear-gradient(45deg, #ef4444, #f87171);
            transition: width 0.3s ease;
        }

        .weak-area-item .accuracy {
            min-width: 40px;
            text-align: right;
            color: #ef4444;
            font-weight: bold;
            font-size: 14px;
        }

        .learning-progress {
            position: fixed;
            top: 50%;
            right: 20px;
            transform: translateY(-50%);
            background: linear-gradient(135deg, #1e293b, #334155);
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            z-index: 100;
            min-width: 200px;
            display: none;
        }

        .learning-progress.show {
            display: block;
            animation: slideInRight 0.3s ease-out;
        }

        .progress-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .progress-title {
            color: #fbbf24;
            font-weight: bold;
            font-size: 14px;
        }

        .close-progress {
            background: none;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            font-size: 18px;
            padding: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .progress-item {
            margin-bottom: 12px;
        }

        .progress-item:last-child {
            margin-bottom: 0;
        }

        .progress-label {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 5px;
            font-size: 12px;
            color: #e2e8f0;
        }

        .progress-value {
            color: #3b82f6;
            font-weight: bold;
        }

        .difficulty-indicator {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(45deg, #3b82f6, #1d4ed8);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
            z-index: 100;
            display: none;
            animation: fadeInDown 0.3s ease-out;
        }

        .difficulty-indicator.show {
            display: block;
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }

        /* Çoklu Dil Desteği Stilleri */
        .language-settings {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .interface-language h4,
        .pronunciation-settings h4,
        .translation-settings h4 {
            color: #fbbf24;
            margin: 0 0 15px 0;
            font-size: 16px;
        }

        .language-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 15px;
        }

        .language-options label {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            border: 2px solid transparent;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .language-options label:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(59, 130, 246, 0.3);
        }

        .language-options label:has(input:checked) {
            background: rgba(59, 130, 246, 0.1);
            border-color: #3b82f6;
        }

        .language-options input[type="radio"] {
            margin: 0;
            width: 18px;
            height: 18px;
            accent-color: #3b82f6;
        }

        .language-flag {
            font-size: 24px;
        }

        .language-name {
            color: #e2e8f0;
            font-weight: 500;
            font-size: 14px;
        }

        .pronunciation-options,
        .translation-options {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .pronunciation-options label,
        .translation-options label {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .pronunciation-options label:hover,
        .translation-options label:hover {
            background: rgba(255, 255, 255, 0.08);
        }

        .pronunciation-options input[type="checkbox"],
        .translation-options input[type="checkbox"] {
            width: 16px;
            height: 16px;
            accent-color: #3b82f6;
        }

        .voice-settings {
            background: rgba(255, 255, 255, 0.05);
            padding: 15px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: 15px;
        }

        .voice-settings label {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
            color: #e2e8f0;
            font-size: 14px;
        }

        .voice-settings input[type="range"] {
            flex: 1;
            height: 6px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
            outline: none;
            -webkit-appearance: none;
        }

        .voice-settings input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            background: #3b82f6;
            border-radius: 50%;
            cursor: pointer;
        }

        .pronunciation-button {
            background: linear-gradient(45deg, #10b981, #059669);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            margin-left: 10px;
            transition: all 0.3s ease;
        }

        .pronunciation-button:hover {
            background: linear-gradient(45deg, #059669, #047857);
            transform: translateY(-1px);
        }

        .word-tooltip {
            position: absolute;
            background: linear-gradient(135deg, #1e293b, #334155);
            color: white;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 12px;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            max-width: 200px;
            word-wrap: break-word;
        }

        .word-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #1e293b transparent transparent transparent;
        }

        /* Sosyal Özellikler Stilleri */
        .social-btn {
            background: linear-gradient(45deg, #0ea5e9, #0284c7);
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            margin-left: 10px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
        }

        .social-btn:hover {
            background: linear-gradient(45deg, #0284c7, #6d28d9);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
        }

        .social-modal {
            max-width: 1000px;
            max-height: 90vh;
            overflow-y: auto;
        }

        .social-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        }

        .social-tabs .tab-btn {
            background: transparent;
            color: #94a3b8;
            border: none;
            padding: 12px 20px;
            border-radius: 8px 8px 0 0;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
            border-bottom: 2px solid transparent;
        }

        .social-tabs .tab-btn.active {
            color: #0ea5e9;
            background: rgba(139, 92, 246, 0.1);
            border-bottom-color: #0ea5e9;
        }

        .social-tabs .tab-btn:hover {
            color: #e2e8f0;
            background: rgba(255, 255, 255, 0.05);
        }

        .friends-section,
        .leaderboard-section,
        .challenges-section,
        .profile-section {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .add-friend,
        .friends-list,
        .friend-requests,
        .leaderboard-filters,
        .my-rank,
        .create-challenge,
        .active-challenges,
        .challenge-history,
        .profile-header,
        .profile-stats,
        .profile-achievements {
            background: rgba(255, 255, 255, 0.05);
            padding: 20px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .add-friend h3,
        .friends-list h3,
        .friend-requests h3,
        .leaderboard-filters h3,
        .my-rank h3,
        .create-challenge h3,
        .active-challenges h3,
        .challenge-history h3,
        .profile-stats h3,
        .profile-achievements h3 {
            color: #fbbf24;
            margin: 0 0 15px 0;
            font-size: 18px;
        }

        .add-friend-form {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .friend-input,
        .challenge-input,
        .challenge-select {
            flex: 1;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            padding: 10px 12px;
            font-size: 14px;
        }

        .friend-input:focus,
        .challenge-input:focus,
        .challenge-select:focus {
            outline: none;
            border-color: #0ea5e9;
            box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
        }

        .friends-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: var(--space-lg);
        }

        .friend-card {
            background: rgba(15, 23, 42, 0.4);
            backdrop-filter: blur(10px);
            border-radius: var(--radius-lg);
            padding: var(--space-lg);
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .friend-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #3b82f6, #0ea5e9);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .friend-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            background: rgba(30, 41, 59, 0.6);
            border-color: rgba(59, 130, 246, 0.3);
        }

        .friend-card:hover::before {
            opacity: 1;
        }

        .friend-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            margin: 0 auto 15px;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(14, 165, 233, 0.2));
            border: 2px solid rgba(59, 130, 246, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: white;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .friend-name {
            color: white;
            font-weight: 600;
            font-size: 16px;
            margin-bottom: 5px;
        }

        .friend-status {
            color: #10b981;
            font-size: 13px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }

        .friend-actions {
            display: flex;
            gap: 8px;
            justify-content: center;
        }

        .friend-btn {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-secondary);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 8px 12px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .friend-btn:hover {
            background: rgba(59, 130, 246, 0.2);
            color: white;
            border-color: rgba(59, 130, 246, 0.5);
            transform: translateY(-2px);
        }

        .friend-btn.remove {
            background: rgba(239, 68, 68, 0.1);
            border-color: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }

        .friend-btn.remove:hover {
            background: rgba(239, 68, 68, 0.2);
            color: #f87171;
            border-color: rgba(239, 68, 68, 0.4);
        }

        .leaderboard-list {
            max-height: 400px;
            overflow-y: auto;
            padding-right: 10px;
        }

        .leaderboard-item {
            display: flex;
            align-items: center;
            gap: var(--space-md);
            padding: var(--space-md) var(--space-lg);
            background: rgba(15, 23, 42, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: var(--radius-md);
            margin-bottom: var(--space-sm);
            transition: all 0.3s ease;
        }

        .leaderboard-item:hover {
            background: rgba(30, 41, 59, 0.6);
            border-color: rgba(59, 130, 246, 0.3);
            transform: translateX(4px);
        }

        .leaderboard-item.top-3 {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
            border-color: rgba(245, 158, 11, 0.3);
            color: white;
        }

        .rank-number {
            font-weight: bold;
            font-size: 20px;
            min-width: 40px;
            text-align: center;
            color: var(--text-secondary);
        }

        .leaderboard-item.top-3 .rank-number {
            color: #fbbf24;
            text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
        }

        .rank-avatar {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(14, 165, 233, 0.2));
            border: 2px solid rgba(59, 130, 246, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: white;
        }

        .leaderboard-item.top-3 .rank-avatar {
            border-color: rgba(245, 158, 11, 0.5);
        }

        .rank-info {
            flex: 1;
        }

        .rank-name {
            font-weight: 600;
            color: white;
            font-size: 16px;
            margin-bottom: 2px;
        }

        .rank-score {
            color: var(--color-primary);
            font-size: 14px;
            font-weight: 500;
        }

        .challenge-form {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr auto;
            gap: var(--space-md);
            align-items: center;
        }

        .challenges-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: var(--space-lg);
        }

        .challenge-card {
            background: rgba(15, 23, 42, 0.4);
            backdrop-filter: blur(10px);
            border-radius: var(--radius-lg);
            padding: var(--space-lg);
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .challenge-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            background: rgba(30, 41, 59, 0.6);
            border-color: rgba(59, 130, 246, 0.3);
        }

        .challenge-title {
            color: white;
            font-weight: 600;
            font-size: 18px;
            margin-bottom: 8px;
        }

        .challenge-type {
            display: inline-block;
            background: rgba(59, 130, 246, 0.1);
            color: #38bdf8;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            margin-bottom: 15px;
            border: 1px solid rgba(59, 130, 246, 0.2);
        }

        .challenge-progress {
            background: rgba(255, 255, 255, 0.05);
            height: 8px;
            border-radius: 4px;
            margin-bottom: 12px;
            overflow: hidden;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
        }

        .challenge-progress-fill {
            background: linear-gradient(90deg, #3b82f6, #0ea5e9);
            height: 100%;
            border-radius: 4px;
            transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .challenge-actions {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            margin-top: 15px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding-top: 15px;
        }

        .profile-header {
            display: flex;
            gap: 20px;
            align-items: center;
        }

        .profile-avatar {
            position: relative;
        }

        .profile-avatar img {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            border: 3px solid #0ea5e9;
        }

        .change-avatar-btn {
            position: absolute;
            bottom: 0;
            right: 0;
            background: #0ea5e9;
            color: white;
            border: none;
            padding: 5px 8px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
        }

        .profile-info h3 {
            color: #e2e8f0;
            margin: 0 0 5px 0;
        }

        .profile-info p {
            color: #94a3b8;
            margin: 0 0 5px 0;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        .stat-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 6px;
        }

        .stat-label {
            color: #e2e8f0;
        }

        .stat-value {
            color: #0ea5e9;
            font-weight: bold;
        }

        .recent-achievements {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .achievement-badge {
            background: linear-gradient(45deg, #fbbf24, #f59e0b);
            color: #1f2937;
            padding: 8px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* Mobil Optimizasyon Stilleri */
        .mobile-btn {
            background: linear-gradient(45deg, #f59e0b, #d97706);
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            margin-left: 10px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
        }

        .mobile-btn:hover {
            background: linear-gradient(45deg, #d97706, #b45309);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
        }

        .mobile-menu {
            position: fixed;
            top: 0;
            right: -400px;
            width: 400px;
            height: 100vh;
            background: linear-gradient(135deg, #1e293b, #334155);
            z-index: 1000;
            transition: right 0.3s ease;
            overflow-y: auto;
        }

        .mobile-menu.show {
            right: 0;
        }

        .mobile-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .mobile-menu-header h3 {
            color: #fbbf24;
            margin: 0;
        }

        .mobile-close {
            background: none;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            font-size: 24px;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .mobile-menu-content {
            padding: 20px;
        }

        .mobile-menu-section {
            margin-bottom: 30px;
        }

        .mobile-menu-section h4 {
            color: #e2e8f0;
            margin: 0 0 15px 0;
            font-size: 16px;
        }

        .mobile-menu-btn {
            display: block;
            width: 100%;
            background: rgba(255, 255, 255, 0.05);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 12px 16px;
            margin-bottom: 8px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
            text-align: left;
        }

        .mobile-menu-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .offline-indicator {
            position: fixed;
            top: 20px;
            left: 20px;
            background: linear-gradient(45deg, #6b7280, #4b5563);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
            z-index: 100;
            display: none;
            animation: pulse 2s infinite;
        }

        .offline-indicator.show {
            display: block;
        }

        .touch-guide {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .touch-guide.show {
            display: flex;
        }

        .touch-guide-content {
            background: linear-gradient(135deg, #1e293b, #334155);
            border-radius: 20px;
            padding: 30px;
            max-width: 400px;
            width: 90%;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .touch-guide-content h3 {
            color: #fbbf24;
            margin: 0 0 20px 0;
        }

        .gesture-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-bottom: 20px;
        }

        .gesture-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
        }

        .gesture-icon {
            font-size: 24px;
            min-width: 40px;
        }

        .gesture-desc {
            color: #e2e8f0;
            font-size: 14px;
        }

        /* Mobil Responsive */
        @media (max-width: 768px) {
            .score {
                flex-wrap: wrap;
                gap: 10px;
            }

            .score button {
                margin-left: 0;
                margin-right: 5px;
            }

            .word-pool,
            .answer-area {
                grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
                gap: 8px;
            }

            .word {
                padding: 8px 12px;
                font-size: 14px;
            }

            .modal-content {
                margin: 10px;
                max-width: calc(100vw - 20px);
                max-height: calc(100vh - 20px);
            }

            .settings-section {
                margin-bottom: 20px;
            }

            .language-options {
                grid-template-columns: repeat(2, 1fr);
            }

            .friends-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }

            .challenges-grid {
                grid-template-columns: 1fr;
            }

            .challenge-form {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .header h1 {
                font-size: 24px;
            }

            .header p {
                font-size: 14px;
            }

            .mode-card {
                padding: 15px;
            }

            .mode-card h3 {
                font-size: 16px;
            }

            .word-pool,
            .answer-area {
                grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
                gap: 6px;
            }

            .word {
                padding: 6px 10px;
                font-size: 12px;
            }

            .mobile-menu {
                width: 100vw;
                right: -100vw;
            }
        }

        /* Dokunmatik Optimizasyonları */
        .word.touch-optimized {
            min-height: 44px;
            min-width: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .word.touch-optimized:active {
            transform: scale(0.95);
        }

        .btn.touch-optimized {
            min-height: 44px;
            min-width: 44px;
            padding: 12px 20px;
        }

        .btn.touch-optimized:active {
            transform: scale(0.95);
        }

        /* Tam Ekran Modu */
        .fullscreen-mode {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 9999;
            background: var(--background-color);
        }

        .fullscreen-mode .header {
            padding: 10px 20px;
        }

        .fullscreen-mode .score {
            padding: 10px 20px;
        }

        .fullscreen-mode .game-area {
            padding: 20px;
            height: calc(100vh - 120px);
            overflow-y: auto;
        }

        /* Mini Oyunlar Stilleri */
        .mini-games-btn {
            background: linear-gradient(45deg, #ef4444, #dc2626);
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            margin-left: 10px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
        }

        .mini-games-btn:hover {
            background: linear-gradient(45deg, #dc2626, #b91c1c);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
        }

        .mini-games-modal {
            max-width: 1000px;
            max-height: 90vh;
            overflow-y: auto;
        }

        .mini-games-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        }

        .mini-games-tabs .tab-btn {
            background: transparent;
            color: #94a3b8;
            border: none;
            padding: 12px 20px;
            border-radius: 8px 8px 0 0;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
            border-bottom: 2px solid transparent;
        }

        .mini-games-tabs .tab-btn.active {
            color: #ef4444;
            background: rgba(239, 68, 68, 0.1);
            border-bottom-color: #ef4444;
        }

        .mini-games-tabs .tab-btn:hover {
            color: #e2e8f0;
            background: rgba(255, 255, 255, 0.05);
        }

        .wordsearch-section,
        .daily-challenge-section,
        .memory-game-section,
        .speed-test-section {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .wordsearch-header,
        .daily-challenge-header,
        .memory-game-header,
        .speed-test-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .wordsearch-header h3,
        .daily-challenge-header h3,
        .memory-game-header h3,
        .speed-test-header h3 {
            color: #fbbf24;
            margin: 0;
        }

        .wordsearch-info,
        .daily-info,
        .memory-info,
        .speed-info {
            display: flex;
            gap: 20px;
            color: #e2e8f0;
            font-size: 14px;
        }

        .wordsearch-grid {
            display: grid;
            grid-template-columns: repeat(15, 1fr);
            gap: 2px;
            background: rgba(255, 255, 255, 0.1);
            padding: 20px;
            border-radius: 10px;
            margin: 20px 0;
        }

        .wordsearch-cell {
            width: 30px;
            height: 30px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: bold;
            color: #e2e8f0;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .wordsearch-cell:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .wordsearch-cell.selected {
            background: #3b82f6;
            color: white;
        }

        .wordsearch-cell.found {
            background: #10b981;
            color: white;
        }

        .wordsearch-cell.wrong {
            background: #ef4444;
            color: white;
            animation: shake 0.5s ease-in-out;
        }

        @keyframes shake {

            0%,
            100% {
                transform: translateX(0);
            }

            25% {
                transform: translateX(-5px);
            }

            75% {
                transform: translateX(5px);
            }
        }

        .wordsearch-words {
            background: rgba(255, 255, 255, 0.05);
            padding: 15px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .wordsearch-words h4 {
            color: #fbbf24;
            margin: 0 0 15px 0;
        }

        .words-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .word-item {
            background: rgba(255, 255, 255, 0.1);
            padding: 8px 12px;
            border-radius: 6px;
            color: #e2e8f0;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .word-item.found {
            background: #10b981;
            color: white;
            text-decoration: line-through;
        }

        .wordsearch-controls,
        .memory-controls,
        .speed-controls {
            display: flex;
            gap: 10px;
            justify-content: center;
        }

        .daily-challenge-card {
            background: linear-gradient(135deg, #1e293b, #334155);
            border-radius: 15px;
            padding: 25px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .challenge-title {
            color: #fbbf24;
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .challenge-description {
            color: #e2e8f0;
            font-size: 16px;
            margin-bottom: 20px;
        }

        .challenge-progress {
            margin: 20px 0;
        }

        .challenge-reward {
            color: #10b981;
            font-size: 18px;
            font-weight: bold;
            margin: 15px 0;
        }

        .daily-history {
            background: rgba(255, 255, 255, 0.05);
            padding: 15px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .daily-history h4 {
            color: #fbbf24;
            margin: 0 0 15px 0;
        }

        .history-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 6px;
            margin-bottom: 8px;
        }

        .history-date {
            color: #94a3b8;
            font-size: 14px;
        }

        .history-status {
            color: #10b981;
            font-weight: bold;
        }

        .memory-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            max-width: 400px;
            margin: 0 auto;
        }

        .memory-card {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #1e293b, #334155);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid rgba(255, 255, 255, 0.1);
            font-size: 24px;
            color: #e2e8f0;
        }

        .memory-card:hover {
            transform: scale(1.05);
        }

        .memory-card.flipped {
            background: #3b82f6;
            color: white;
        }

        .memory-card.matched {
            background: #10b981;
            color: white;
        }

        .speed-test-area {
            background: rgba(255, 255, 255, 0.05);
            padding: 30px;
            border-radius: 15px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .speed-question h4 {
            color: #fbbf24;
            margin: 0 0 15px 0;
            font-size: 20px;
        }

        .speed-question p {
            color: #e2e8f0;
            font-size: 16px;
            margin-bottom: 20px;
        }

        .speed-options {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin: 20px 0;
        }

        .speed-option {
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            padding: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            color: #e2e8f0;
            font-size: 14px;
        }

        .speed-option:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: #3b82f6;
        }

        .speed-option.selected {
            background: #3b82f6;
            color: white;
            border-color: #1d4ed8;
        }

        .speed-timer {
            margin: 20px 0;
        }

        .timer-circle {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(45deg, #ef4444, #dc2626);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            font-size: 24px;
            font-weight: bold;
            color: white;
            box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
        }

        .timer-circle.warning {
            background: linear-gradient(45deg, #f59e0b, #d97706);
            animation: pulse 1s infinite;
        }

        .timer-circle.danger {
            background: linear-gradient(45deg, #ef4444, #dc2626);
            animation: pulse 0.5s infinite;
        }

        .achievement-modal {
            max-width: 800px;
            max-height: 90vh;
            overflow-y: auto;
        }

        .achievement-stats {
            margin-bottom: 30px;
        }

        .stat-card {
            background: linear-gradient(135deg, #1e293b, #334155);
            border-radius: 12px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .stat-card h3 {
            color: #fbbf24;
            margin: 0 0 15px 0;
            font-size: 18px;
        }

        .stat-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .stat-item:last-child {
            border-bottom: none;
        }

        .stat-item span:first-child {
            color: #e2e8f0;
            font-weight: 500;
        }

        .stat-item span:last-child {
            color: #fbbf24;
            font-weight: bold;
            font-size: 16px;
        }

        .achievements-grid h3 {
            color: #fbbf24;
            margin: 0 0 20px 0;
            font-size: 18px;
        }

        .achievements-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 30px;
        }

        .achievement-item {
            background: linear-gradient(135deg, #1e293b, #334155);
            border-radius: 12px;
            padding: 15px;
            text-align: center;
            border: 2px solid transparent;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .achievement-item.unlocked {
            border-color: #fbbf24;
            box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
        }

        .achievement-item.locked {
            opacity: 0.5;
            filter: grayscale(100%);
        }

        .achievement-item:hover {
            transform: translateY(-2px);
        }

        .achievement-icon {
            font-size: 32px;
            margin-bottom: 10px;
            display: block;
        }

        .achievement-title {
            color: #fbbf24;
            font-weight: bold;
            font-size: 14px;
            margin-bottom: 5px;
        }

        .achievement-desc {
            color: #94a3b8;
            font-size: 12px;
            line-height: 1.4;
        }

        .achievement-progress {
            background: rgba(255, 255, 255, 0.1);
            height: 4px;
            border-radius: 2px;
            margin-top: 8px;
            overflow: hidden;
        }

        .achievement-progress-fill {
            background: linear-gradient(45deg, #fbbf24, #f59e0b);
            height: 100%;
            transition: width 0.3s ease;
        }

        .level-progress h3 {
            color: #fbbf24;
            margin: 0 0 20px 0;
            font-size: 18px;
        }

        .progress-bars {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .progress-item {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .progress-item span:first-child {
            color: #e2e8f0;
            font-weight: 500;
            min-width: 80px;
        }

        .progress-item span:last-child {
            color: #fbbf24;
            font-weight: bold;
            min-width: 40px;
            text-align: right;
        }

        .progress-bar {
            flex: 1;
            background: rgba(255, 255, 255, 0.1);
            height: 20px;
            border-radius: 10px;
            overflow: hidden;
            position: relative;
        }

        .progress-fill {
            background: linear-gradient(45deg, #10b981, #059669);
            height: 100%;
            transition: width 0.5s ease;
            border-radius: 10px;
        }

        .achievement-notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: linear-gradient(45deg, #fbbf24, #f59e0b);
            color: white;
            padding: 15px 20px;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
            z-index: 1000;
            animation: slideInRight 0.5s ease-out;
            max-width: 300px;
        }

        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        /* Mini Oyunlar Stilleri */
        .mini-games-modal {
            max-width: 1000px;
            max-height: 90vh;
            overflow-y: auto;
        }

        .mini-games-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        }

        .mini-games-tabs .tab-btn {
            background: transparent;
            color: #94a3b8;
            border: none;
            padding: 12px 20px;
            border-radius: 8px 8px 0 0;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            border-bottom: 2px solid transparent;
        }

        .mini-games-tabs .tab-btn:hover {
            background: rgba(255, 255, 255, 0.05);
            color: #e2e8f0;
        }

        .mini-games-tabs .tab-btn.active {
            background: rgba(59, 130, 246, 0.1);
            color: #3b82f6;
            border-bottom-color: #3b82f6;
        }

        .mini-games-content .tab-content {
            display: none;
        }

        .mini-games-content .tab-content.active {
            display: block;
        }

        /* Kelime Bulmaca */
        .wordsearch-container {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .wordsearch-grid {
            display: grid;
            grid-template-columns: repeat(15, 1fr);
            gap: 2px;
            background: rgba(255, 255, 255, 0.1);
            padding: 10px;
            border-radius: 8px;
            max-width: 400px;
        }

        .wordsearch-cell {
            width: 20px;
            height: 20px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s ease;
            color: #e2e8f0;
        }

        .wordsearch-cell:hover {
            background: rgba(59, 130, 246, 0.3);
            transform: scale(1.1);
        }

        .wordsearch-cell.selected {
            background: #3b82f6;
            color: white;
        }

        .wordsearch-cell.found {
            background: #10b981;
            color: white;
        }

        .wordsearch-cell.wrong {
            background: #ef4444;
            color: white;
            animation: shake 0.5s ease-in-out;
        }

        .wordsearch-info {
            flex: 1;
            min-width: 200px;
        }

        .wordsearch-stats {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
        }

        .wordsearch-stat {
            text-align: center;
        }

        .wordsearch-stat-value {
            font-size: 24px;
            font-weight: bold;
            color: #3b82f6;
        }

        .wordsearch-stat-label {
            font-size: 12px;
            color: #94a3b8;
            margin-top: 5px;
        }

        .words-list {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            padding: 15px;
            max-height: 200px;
            overflow-y: auto;
        }

        .word-item {
            padding: 8px 12px;
            margin: 5px 0;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .word-item.found {
            background: #10b981;
            color: white;
            text-decoration: line-through;
        }

        /* Günlük Challenge */
        .daily-challenge-card {
            background: linear-gradient(135deg, #1e293b, #334155);
            border-radius: 12px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            margin-bottom: 20px;
        }

        .daily-challenge-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .daily-challenge-title {
            font-size: 18px;
            font-weight: bold;
            color: #fbbf24;
        }

        .daily-challenge-reward {
            background: linear-gradient(45deg, #fbbf24, #f59e0b);
            color: white;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
        }

        .daily-challenge-desc {
            color: #e2e8f0;
            margin-bottom: 15px;
            line-height: 1.5;
        }

        .daily-challenge-progress {
            margin-bottom: 15px;
        }

        .daily-challenge-progress-bar {
            background: rgba(255, 255, 255, 0.1);
            height: 8px;
            border-radius: 4px;
            overflow: hidden;
            margin-bottom: 8px;
        }

        .daily-challenge-progress-fill {
            background: linear-gradient(45deg, #10b981, #059669);
            height: 100%;
            transition: width 0.3s ease;
        }

        .daily-challenge-progress-text {
            text-align: center;
            font-size: 12px;
            color: #94a3b8;
        }

        .daily-challenge-actions {
            display: flex;
            gap: 10px;
        }

        /* Hafıza Oyunu */
        .memory-game-container {
            text-align: center;
        }

        .memory-game-stats {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 20px;
        }

        .memory-game-stat {
            text-align: center;
        }

        .memory-game-stat-value {
            font-size: 20px;
            font-weight: bold;
            color: #3b82f6;
        }

        .memory-game-stat-label {
            font-size: 12px;
            color: #94a3b8;
            margin-top: 5px;
        }

        .memory-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            max-width: 300px;
            margin: 0 auto 20px;
        }

        .memory-card {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #1e293b, #334155);
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            cursor: pointer;
            transition: all 0.3s ease;
            user-select: none;
        }

        .memory-card:hover {
            transform: scale(1.05);
            border-color: #3b82f6;
        }

        .memory-card.flipped {
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            color: white;
        }

        .memory-card.matched {
            background: linear-gradient(135deg, #10b981, #047857);
            color: white;
            transform: scale(0.95);
        }

        .memory-game-actions {
            display: flex;
            justify-content: center;
            gap: 10px;
        }

        /* Hız Testi */
        .speed-test-container {
            text-align: center;
        }

        .speed-test-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .speed-test-timer {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .timer-circle {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(45deg, #3b82f6, #1d4ed8);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: bold;
            color: white;
            transition: all 0.3s ease;
        }

        .timer-circle.warning {
            background: linear-gradient(45deg, #f59e0b, #d97706);
        }

        .timer-circle.danger {
            background: linear-gradient(45deg, #ef4444, #dc2626);
            animation: pulse 1s infinite;
        }

        .speed-test-question {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .speed-test-question-text {
            font-size: 18px;
            font-weight: 500;
            color: #e2e8f0;
            margin-bottom: 20px;
        }

        .speed-options {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        .speed-option {
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            padding: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
            color: #e2e8f0;
        }

        .speed-option:hover {
            background: rgba(59, 130, 246, 0.2);
            border-color: #3b82f6;
            transform: translateY(-2px);
        }

        .speed-test-actions {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 20px;
        }

        /* Gelişmiş Ayarlar Stilleri */
        .advanced-settings-modal {
            max-width: 900px;
            max-height: 90vh;
            overflow-y: auto;
        }

        .advanced-settings-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        }

        .advanced-settings-tabs .tab-btn {
            background: transparent;
            color: #94a3b8;
            border: none;
            padding: 12px 20px;
            border-radius: 8px 8px 0 0;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            border-bottom: 2px solid transparent;
        }

        .advanced-settings-tabs .tab-btn:hover {
            background: rgba(255, 255, 255, 0.05);
            color: #e2e8f0;
        }

        .advanced-settings-tabs .tab-btn.active {
            background: rgba(59, 130, 246, 0.1);
            color: #3b82f6;
            border-bottom-color: #3b82f6;
        }

        .advanced-settings-content .tab-content {
            display: none;
        }

        .advanced-settings-content .tab-content.active {
            display: block;
        }

        .setting-item {
            margin-bottom: 20px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .setting-item label {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 500;
            color: #e2e8f0;
            cursor: pointer;
        }

        .setting-item input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: #3b82f6;
        }

        .setting-item input[type="range"] {
            width: 100%;
            margin: 10px 0;
            accent-color: #3b82f6;
        }

        .setting-desc {
            font-size: 12px;
            color: #94a3b8;
            margin-top: 5px;
            margin-left: 28px;
        }

        .shortcuts-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 10px;
            margin-top: 15px;
        }

        .shortcut-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .shortcut-key {
            background: linear-gradient(45deg, #3b82f6, #1d4ed8);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-family: monospace;
            font-size: 12px;
            font-weight: bold;
        }

        .shortcut-desc {
            color: #e2e8f0;
            font-size: 14px;
        }

        .performance-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin: 20px 0;
        }

        .perf-stat {
            text-align: center;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .perf-stat span:first-child {
            display: block;
            color: #94a3b8;
            font-size: 12px;
            margin-bottom: 5px;
        }

        .perf-stat span:last-child {
            display: block;
            color: #3b82f6;
            font-size: 18px;
            font-weight: bold;
        }

        .data-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 15px;
        }

        .system-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }

        .info-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .info-item span:first-child {
            color: #94a3b8;
            font-size: 14px;
        }

        .info-item span:last-child {
            color: #e2e8f0;
            font-weight: 500;
        }

        .btn-danger {
            background: linear-gradient(45deg, #ef4444, #dc2626);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .btn-danger:hover {
            background: linear-gradient(45deg, #dc2626, #b91c1c);
            transform: translateY(-2px);
        }

        @keyframes pulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }
        }

        /* Modal Styles */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        /* Modal sınıfının word elementlerine uygulanmaması için */
        .word.modal {
            position: relative !important;
            width: auto !important;
            height: auto !important;
            top: auto !important;
            left: auto !important;
            right: auto !important;
            bottom: auto !important;
            z-index: auto !important;
            display: inline-block !important;
            background: rgba(0, 0, 0, 0.8) !important;
        }

        .modal-content {
            background: linear-gradient(135deg, #1e293b, #334155);
            border-radius: 20px;
            padding: 0;
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 30px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .modal-header h2 {
            margin: 0;
            color: white;
        }

        .modal-close {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            padding: 5px;
        }

        .modal-body {
            padding: 30px;
        }

        .settings-section {
            margin-bottom: 30px;
        }

        .settings-section h3 {
            color: white;
            margin-bottom: 15px;
            font-size: 1.2rem;
        }

        .level-buttons,
        .mode-buttons,
        .difficulty-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .level-btn,
        .mode-btn,
        .diff-btn {
            padding: 10px 20px;
            border: 2px solid rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .level-btn.active,
        .mode-btn.active,
        .diff-btn.active {
            background: linear-gradient(45deg, #3b82f6, #1d4ed8);
            border-color: #3b82f6;
        }

        .level-btn:hover,
        .mode-btn:hover,
        .diff-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .time-settings,
        .visual-settings {
            color: white;
        }

        .time-settings label,
        .visual-settings label {
            display: block;
            margin-bottom: 10px;
            cursor: pointer;
        }

        .time-settings input[type="checkbox"],
        .visual-settings input[type="checkbox"] {
            margin-right: 10px;
        }

        .time-settings input[type="number"] {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            margin-left: 10px;
        }

        .modal-footer {
            display: flex;
            justify-content: space-between;
            padding: 20px 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .controls {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 30px;
        }

        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        .btn-primary {
            background: linear-gradient(45deg, #4ade80, #22c55e);
            color: white;
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.2);
            color: white;
        }

        .btn:hover {
            transform: translateY(-2px);
        }

        .feedback {
            text-align: center;
            margin-top: 20px;
            padding: 20px;
            border-radius: 15px;
            font-size: 1.2rem;
            font-weight: bold;
        }

        .feedback.correct {
            background: rgba(74, 222, 128, 0.2);
            color: #4ade80;
        }

        .feedback.wrong {
            background: rgba(248, 113, 113, 0.2);
            color: #f87171;
        }

        .score {
            position: fixed;
            top: 20px;
            left: 20px;
            background: rgba(0, 0, 0, 0.5);
            padding: 15px;
            border-radius: 15px;
            font-weight: bold;
        }

        @media (max-width: 768px) {
            .header h1 {
                font-size: 2rem;
            }

            .game-mode {
                grid-template-columns: 1fr;
            }

            .difficulty {
                grid-template-columns: 1fr 1fr;
            }
        }

        /* RTL Support for Arabic */
        [dir="rtl"] {
            text-align: right;
        }

        [dir="rtl"] .header {
            text-align: right;
        }

        [dir="rtl"] .card {
            text-align: right;
        }

        [dir="rtl"] .word-pool,
        [dir="rtl"] .answer-area {
            text-align: right;
        }

        [dir="rtl"] .word {
            text-align: center;
        }

        [dir="rtl"] .language-options {
            text-align: right;
        }

        [dir="rtl"] .language-options label {
            text-align: right;
        }

        [dir="rtl"] .language-name {
            margin-right: 8px;
            margin-left: 0;
        }

        [dir="rtl"] .language-flag {
            margin-left: 8px;
            margin-right: 0;
        }

        [dir="rtl"] .settings-section {
            text-align: right;
        }

        [dir="rtl"] .modal-content {
            text-align: right;
        }

        [dir="rtl"] .achievement-item {
            text-align: right;
        }

        [dir="rtl"] .stat-item {
            text-align: right;
        }

        /* ========================================
           KELIME AÇIKLAMA POPUP SİSTEMİ
           ======================================== */
        .word-explanation-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
            border: 2px solid rgba(59, 130, 246, 0.5);
            border-radius: 20px;
            padding: 0;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            z-index: 10000;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 100px rgba(59, 130, 246, 0.2);
            animation: popupSlideIn 0.3s ease-out;
        }

        @keyframes popupSlideIn {
            from {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.8);
            }

            to {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1);
            }
        }

        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            z-index: 9999;
            animation: fadeIn 0.2s ease-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .popup-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 25px;
            background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 18px 18px 0 0;
        }

        .popup-word-title {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .popup-word {
            font-size: 1.8rem;
            font-weight: bold;
            color: white;
        }

        .popup-type-badge {
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            color: white;
        }

        .popup-close {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            font-size: 1.5rem;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .popup-close:hover {
            background: rgba(239, 68, 68, 0.3);
            transform: rotate(90deg);
        }

        .popup-body {
            padding: 25px;
        }

        .popup-section {
            margin-bottom: 20px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .popup-section-title {
            font-size: 0.9rem;
            color: #94a3b8;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .popup-section-content {
            color: #e2e8f0;
            font-size: 1rem;
            line-height: 1.6;
        }

        .grammar-rule-box {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
            border: 1px solid rgba(59, 130, 246, 0.3);
            border-radius: 10px;
            padding: 15px;
            margin-top: 10px;
        }

        .grammar-rule-box code {
            background: rgba(0, 0, 0, 0.3);
            padding: 3px 8px;
            border-radius: 4px;
            font-family: 'Consolas', monospace;
            color: #fbbf24;
        }

        .examples-list {
            list-style: none;
            padding: 0;
            margin: 10px 0 0 0;
        }

        .examples-list li {
            padding: 10px 15px;
            background: rgba(16, 185, 129, 0.1);
            border-left: 3px solid #10b981;
            margin-bottom: 8px;
            border-radius: 0 8px 8px 0;
            font-style: italic;
        }

        .examples-list li strong {
            color: #10b981;
            font-style: normal;
        }

        .conjugation-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
        }

        .conjugation-table th,
        .conjugation-table td {
            padding: 10px;
            text-align: left;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .conjugation-table th {
            color: #94a3b8;
            font-weight: 600;
            background: rgba(0, 0, 0, 0.2);
        }

        .conjugation-table td {
            color: #e2e8f0;
        }

        .conjugation-table tr:hover td {
            background: rgba(59, 130, 246, 0.1);
        }

        .popup-tip {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 15px;
            background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
            border: 1px solid rgba(251, 191, 36, 0.3);
            border-radius: 10px;
            margin-top: 15px;
        }

        .popup-tip-icon {
            font-size: 1.5rem;
        }

        .popup-tip-text {
            color: #fbbf24;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .popup-speak-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(45deg, #3b82f6, #1d4ed8);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 25px;
            cursor: pointer;
            font-size: 0.95rem;
            font-weight: 600;
            transition: all 0.3s ease;
            margin-top: 15px;
        }

        .popup-speak-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
        }

        /* Word clickable indicator */
        .word.clickable-word {
            cursor: help;
            position: relative;
        }

        .word.clickable-word::after {
            content: '❓';
            font-size: 0.6rem;
            position: absolute;
            top: -5px;
            right: -5px;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .word.clickable-word:hover::after {
            opacity: 0.7;
        }

        /* ========================================
           XP VE SEVİYE SİSTEMİ
           ======================================== */
        .xp-container {
            position: fixed;
            top: 20px;
            left: 20px;
            background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 15px 20px;
            min-width: 200px;
            z-index: 100;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        }

        .xp-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
        }

        .level-badge {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .level-icon {
            font-size: 1.8rem;
            animation: levelPulse 2s ease-in-out infinite;
        }

        @keyframes levelPulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.1);
            }
        }

        .level-info {
            display: flex;
            flex-direction: column;
        }

        .level-name {
            font-size: 0.75rem;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .level-number {
            font-size: 1.2rem;
            font-weight: bold;
            color: white;
        }

        .xp-display {
            font-size: 0.9rem;
            color: #fbbf24;
            font-weight: 600;
        }

        .xp-bar-container {
            width: 100%;
            height: 10px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 5px;
            overflow: hidden;
            margin-bottom: 8px;
        }

        .xp-bar {
            height: 100%;
            background: linear-gradient(90deg, #10b981, #3b82f6, #0ea5e9);
            background-size: 200% 100%;
            border-radius: 5px;
            transition: width 0.5s ease;
            animation: xpBarShimmer 2s linear infinite;
        }

        @keyframes xpBarShimmer {
            0% {
                background-position: 200% 0;
            }

            100% {
                background-position: -200% 0;
            }
        }

        .xp-text {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: #94a3b8;
        }

        .xp-current {
            color: #10b981;
            font-weight: 600;
        }

        .xp-next {
            color: #64748b;
        }

        /* XP Kazanım Animasyonu */
        .xp-gain-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
            padding: 20px 40px;
            border-radius: 20px;
            font-size: 1.5rem;
            font-weight: bold;
            z-index: 10001;
            animation: xpGainAnim 1.5s ease-out forwards;
            box-shadow: 0 10px 40px rgba(16, 185, 129, 0.5);
        }

        @keyframes xpGainAnim {
            0% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.5);
            }

            20% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1.2);
            }

            40% {
                transform: translate(-50%, -50%) scale(1);
            }

            100% {
                opacity: 0;
                transform: translate(-50%, -100%) scale(1);
            }
        }

        /* Floating XP Text */
        .xp-float {
            position: fixed;
            font-size: 1.2rem;
            font-weight: bold;
            color: #10b981;
            z-index: 10000;
            pointer-events: none;
            animation: xpFloat 1s ease-out forwards;
            text-shadow: 0 2px 10px rgba(16, 185, 129, 0.5);
        }

        @keyframes xpFloat {
            0% {
                opacity: 1;
                transform: translateY(0);
            }

            100% {
                opacity: 0;
                transform: translateY(-50px);
            }
        }

        /* Level Up Modal */
        .level-up-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10002;
            background: rgba(0, 0, 0, 0.8);
            animation: fadeIn 0.3s ease-out;
        }

        .level-up-content {
            background: linear-gradient(135deg, #1e293b, #0f172a);
            border: 2px solid #fbbf24;
            border-radius: 25px;
            padding: 40px;
            text-align: center;
            animation: levelUpBounce 0.5s ease-out;
            box-shadow: 0 0 100px rgba(251, 191, 36, 0.3);
        }

        @keyframes levelUpBounce {
            0% {
                transform: scale(0);
            }

            50% {
                transform: scale(1.1);
            }

            100% {
                transform: scale(1);
            }
        }

        .level-up-icon {
            font-size: 5rem;
            margin-bottom: 20px;
            animation: levelUpSpin 1s ease-out;
        }

        @keyframes levelUpSpin {
            0% {
                transform: rotate(-360deg) scale(0);
            }

            100% {
                transform: rotate(0) scale(1);
            }
        }

        .level-up-title {
            font-size: 2rem;
            color: #fbbf24;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 3px;
        }

        .level-up-level {
            font-size: 3rem;
            font-weight: bold;
            color: white;
            margin-bottom: 15px;
        }

        .level-up-name {
            font-size: 1.2rem;
            color: #94a3b8;
            margin-bottom: 25px;
        }

        .level-up-close {
            background: linear-gradient(45deg, #fbbf24, #f59e0b);
            color: #1e293b;
            border: none;
            padding: 12px 40px;
            border-radius: 25px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .level-up-close:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
        }

        /* Streak Display */
        .streak-container {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .streak-icon {
            font-size: 1.3rem;
        }

        .streak-count {
            font-size: 1.1rem;
            font-weight: bold;
            color: #f97316;
        }

        .streak-label {
            font-size: 0.8rem;
            color: #94a3b8;
        }

        /* Mobile responsiveness for XP container */
        @media (max-width: 768px) {
            .xp-container {
                top: auto;
                bottom: 10px;
                left: 10px;
                right: 10px;
                min-width: auto;
                padding: 10px 15px;
            }

            .word-explanation-popup {
                max-width: 95%;
                max-height: 85vh;
            }

            .popup-word {
                font-size: 1.4rem;
            }
        }

        /* ========================================
           KELİME YARDIM BUTONU SİSTEMİ
           ======================================== */
        .word-container {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            margin: 5px;
        }

        .word-help-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            background: linear-gradient(135deg, #f59e0b, #d97706);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            font-size: 12px;
            color: white;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
            flex-shrink: 0;
        }

        .word-help-btn:hover {
            transform: scale(1.15);
            box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5);
        }

        .word-help-btn:active {
            transform: scale(0.95);
        }

        .word-help-btn.active {
            background: linear-gradient(135deg, #10b981, #059669);
            animation: helpBtnPulse 1.5s ease-in-out infinite;
        }

        @keyframes helpBtnPulse {

            0%,
            100% {
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
            }

            50% {
                box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
            }
        }

        /* Açıklama modu aktifken kelimeler */
        .explanation-mode .word {
            cursor: help;
            outline: 2px dashed rgba(245, 158, 11, 0.5);
            outline-offset: 2px;
        }

        .explanation-mode .word:hover {
            outline-color: #f59e0b;
            background: rgba(245, 158, 11, 0.2) !important;
        }

        /* Global açıklama modu butonu */
        .global-explanation-toggle {
            position: fixed;
            bottom: 20px;
            right: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            background: linear-gradient(135deg, #1e293b, #334155);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 50px;
            padding: 12px 20px;
            color: white;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s ease;
            z-index: 1000;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        }

        .global-explanation-toggle:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
            border-color: #f59e0b;
        }

        .global-explanation-toggle.active {
            background: linear-gradient(135deg, #f59e0b, #d97706);
            border-color: #fbbf24;
        }

        .explanation-icon {
            font-size: 1.3rem;
        }

        .explanation-label {
            font-size: 0.85rem;
        }

        @media (max-width: 768px) {
            .global-explanation-toggle {
                bottom: 80px;
                right: 10px;
                padding: 10px 16px;
            }

            .word-help-btn {
                width: 18px;
                height: 18px;
                font-size: 10px;
            }
        }

        /* ========================================
           XP VE SEVİYE İSTATİSTİK KARTI SİSTEMİ
           ======================================== */
        .xp-stat-card {
            grid-column: span 2;
            /* Kartın genişliğini ayarla */
            background: linear-gradient(135deg, #1e293b, #0f172a) !important;
            border: 2px solid #fbbf24 !important;
        }

        .xp-progress-mini {
            width: 100%;
            height: 12px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            overflow: hidden;
            margin-top: 15px;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .xp-progress-fill-mini {
            height: 100%;
            background: linear-gradient(90deg, #10b981, #34d399);
            border-radius: 6px;
            transition: width 1s ease-out;
        }

        @media (max-width: 768px) {
            .xp-stat-card {
                grid-column: span 1;
            }
        }

        /* ========================================
           MODERN ARAYÜZ VE MOBİL İYİLEŞTİRMELER
           ======================================== */

        /* Oyun Alanı Modernizasyonu */
        #gameArea {
            position: relative !important;
            /* Buton için referans */
            background: rgba(30, 41, 59, 0.7);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            padding: 24px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            margin-top: 20px;
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Gramer Yardım Butonu Konumlandırması */
        .global-explanation-toggle {
            position: absolute !important;
            bottom: 20px !important;
            right: 20px !important;
            z-index: 101;
            /* Hint area üzerinde olsun */
            background: linear-gradient(135deg, #f59e0b, #d97706);
            border: 2px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
        }

        /* XP Container Kart İçi (Absolute) Konumlandırma */
        .xp-container {
            position: absolute !important;
            top: 20px !important;
            left: 20px !important;
            z-index: 90;
            /* Mobilde override edilecek */
        }

        /* Minimalist Mobil Görünüm */
        @media (max-width: 768px) {
            body {
                padding: 10px 5px;
            }

            .container {
                max-width: 100%;
                padding: 0;
            }

            /* Oyun Alanı Mobil */
            #gameArea {
                padding: 15px 10px;
                border-radius: 16px;
                margin-top: 10px;
                background: rgba(30, 41, 59, 0.85);
                padding-bottom: 110px !important;
                /* Buton ve XP Bar için geniş yer aç */
            }

            /* Gramer Butonu Mobil */
            .global-explanation-toggle {
                bottom: 15px !important;
                right: 15px !important;
                padding: 0 !important;
                width: 44px;
                height: 44px;
                border-radius: 50% !important;
                justify-content: center;
                display: flex;
                align-items: center;
            }

            .global-explanation-toggle .explanation-label {
                display: none !important;
            }

            .global-explanation-toggle .explanation-icon {
                margin: 0 !important;
                font-size: 1.4rem !important;
            }

            /* Ana Butonları İkonlaştır (Texti gizle, after ile ikon koy) */
            /* Kontrol Et Butonu */
            #checkBtn {
                font-size: 0 !important;
                padding: 0 !important;
                width: 54px;
                height: 54px;
                border-radius: 14px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
            }

            #checkBtn:after {
                content: "✅";
                font-size: 1.8rem;
                display: block;
            }

            /* Sonraki Soru Butonu */
            #nextBtn {
                font-size: 0 !important;
                padding: 0 !important;
                width: 54px;
                height: 54px;
                border-radius: 14px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
            }

            #nextBtn:after {
                content: "➡️";
                font-size: 1.8rem;
                display: block;
            }

            /* Ana Menü Butonu (Oyun içi) - .controls içindeki 2. secondary buton */
            .controls .btn-secondary {
                font-size: 0 !important;
                padding: 0 !important;
                width: 54px;
                height: 54px;
                border-radius: 14px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
            }

            .controls .btn-secondary:after {
                content: "🏠";
                /* Ev ikonu */
                font-size: 1.8rem;
                display: block;
            }

            /* Controls Alanı Düzeni */
            .controls {
                display: flex;
                justify-content: center;
                gap: 15px;
                margin-top: 20px;
            }

            /* Kelime Havuzu ve Cevap Alanı */
            .word-pool,
            .answer-area {
                min-height: 80px;
                padding: 10px;
                border-radius: 16px;
                background: rgba(0, 0, 0, 0.2);
            }

            .word {
                padding: 8px 12px;
                font-size: 0.95rem;
                border-radius: 8px;
                margin: 4px;
            }

            /* Başlıkları Küçült */
            .header h1 {
                font-size: 1.4rem;
                margin-bottom: 5px;
            }

            #headerSubtitle {
                display: none;
                /* Subtitle'ı gizle */
            }

            /* Skor Alanı */
            .score {
                font-size: 0.85rem;
                margin: 5px 0;
                padding: 8px 12px;
                display: flex;
                align-items: center;
                gap: 5px;
            }

            /* Mobilde üst barda yer kaplayan butonları gizle (Menüde varlar) */
            /* Kullanıcı İsteği: ogrenme, istasilikler ve basarilar menü içinde olsun */
            .achievement-btn,
            .stats-btn,
            .learning-btn,
            .social-btn {
                display: none !important;
            }

            /* Mobilde Menü Butonu GÖRÜNSÜN */
            .mobile-btn {
                display: inline-flex !important;
                width: 38px;
                height: 38px;
                font-size: 1.4rem;
                align-items: center;
                justify-content: center;
                padding: 0 !important;
                background: rgba(255, 255, 255, 0.15);
                border: 1px solid rgba(255, 255, 255, 0.3);
                border-radius: 8px;
                margin-left: auto;
                /* En sağa yasla */
            }

            /* Mini Oyunlar da mobilde biraz küçülsün */
            .mini-games-btn {
                width: 38px;
                height: 38px;
                font-size: 1.4rem;
                padding: 0 !important;
                display: inline-flex !important;
                align-items: center;
                justify-content: center;
            }

            /* İpuçları Alanını Sıkıştır */
            .hint-area {
                padding: 10px;
            }

            /* XP Container Modern Mobil (Geniş & Şık) */
            .xp-container {
                position: absolute !important;
                bottom: 15px !important;
                left: 15px !important;
                /* Gramer butonuna kadar uzat (Sağdan boşluk bırak) */
                right: 70px !important;
                width: auto !important;
                max-width: none !important;
                min-width: unset !important;

                height: 44px !important;
                display: flex !important;
                align-items: center !important;
                justify-content: flex-start !important;
                gap: 12px !important;

                /* Modern Glass Style */
                background: rgba(15, 23, 42, 0.8) !important;
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
                border: 1px solid rgba(255, 255, 255, 0.1) !important;
                border-radius: 22px !important;
                /* Hap şeklinde */
                padding: 0 6px !important;
                /* İç boşluk */
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
                z-index: 90 !important;
            }

            .xp-header {
                margin: 0 !important;
                flex: 0 0 auto !important;
            }

            .level-badge {
                width: 32px !important;
                height: 32px !important;
                font-size: 1.2rem !important;
                margin: 0 !important;
                background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
                border-radius: 50% !important;
                box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
            }

            .level-info {
                display: none !important;
                /* Metni tamamen gizle */
            }

            .xp-bar-container {
                flex: 1 !important;
                /* Kalan tüm alanı kapla */
                height: 8px !important;
                background: rgba(255, 255, 255, 0.1) !important;
                margin: 0 !important;
                border-radius: 4px !important;
                overflow: hidden !important;
                margin-right: 10px !important;
                /* Sağdan biraz boşluk */
            }

            .xp-bar-fill {
                background: linear-gradient(90deg, #10b981, #34d399) !important;
                box-shadow: 0 0 8px rgba(16, 185, 129, 0.4) !important;
            }

            .xp-display {
                display: none !important;
            }
        }

        /* ========================================
           GAME FOOTER (3'lü Alt Bölüm)
           ======================================== */
        .game-footer {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            /* Sol - Orta - Sağ */
            align-items: center;
            width: 100%;
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid rgba(255, 255, 255, 0.15);
            position: relative;
            z-index: 100;
        }

        /* Footer içindeki öğelerin pozisyonlarını sıfırla (Reset) */
        .game-footer .xp-container,
        .game-footer .score,
        .game-footer .global-explanation-toggle {
            position: relative !important;
            top: auto !important;
            bottom: auto !important;
            left: auto !important;
            right: auto !important;
            margin: 0 !important;
            transform: none !important;
            box-shadow: none !important;
            background: rgba(255, 255, 255, 0.05) !important;
            /* Hafif arka plan */
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px !important;
        }

        /* 1. SOL: XP Container */
        .game-footer .xp-container {
            justify-self: start;
            width: auto !important;
            max-width: 100%;
            height: 40px !important;
            display: flex !important;
            padding: 5px 10px !important;
            /* Mobildeki bar stilini koru */
        }

        /* Barı tekrar görünür yap */
        .game-footer .xp-bar-container {
            display: block !important;
            width: 60px !important;
            /* Sabit genişlik */
            margin-left: 10px !important;
        }

        /* 2. ORTA: Score */
        .game-footer .score {
            justify-self: center;
            white-space: nowrap;
            display: flex !important;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 40px;
            font-size: 0.9rem !important;
            min-width: 100px;
        }

        /* 3. SAĞ: Gramer Butonu */
        .game-footer .global-explanation-toggle {
            justify-self: end;
            width: 40px !important;
            height: 40px !important;
            display: flex !important;
            align-items: center;
            justify-content: center;
            padding: 0 !important;
            border-radius: 12px !important;
        }

        .game-footer .explanation-label {
            display: none !important;
            /* Sadece ikon kalsın, yer az */
        }

        .game-footer .explanation-icon {
            font-size: 1.4rem !important;
            margin: 0 !important;
        }

        /* Mobil Ayarlamalar */
        @media (max-width: 768px) {
            #gameArea {
                padding-bottom: 20px !important;
                /* Eski paddingi kaldır */
            }

            .game-footer {
                gap: 8px;
            }

            .game-footer .xp-container {
                right: auto !important;
                /* Önceki stili ez */
            }

            .game-footer .score {
                font-size: 0.8rem !important;
                padding: 0 10px !important;
            }
        }