        * { box-sizing: border-box; }
        body {
            background-color: #070b12;
            color: #f8fafc;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            width: 100vw;
            height: 100vh;
            margin: 0;
            padding: 0;
            overflow: hidden;
            user-select: none;
            position: relative;
        }

        /* Üst Fare İle Üzerine Gelinen Ülke Bilgi Barı (Hover Country Inspector) */
        .hover-country-bar {
            position: fixed;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            width: min(1140px, calc(100vw - 24px));
            min-height: 44px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            background: rgba(13, 19, 33, 0.90);
            backdrop-filter: blur(12px);
            padding: 7px 16px;
            border-radius: 10px;
            border: 1px solid rgba(56, 189, 248, 0.25);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
            z-index: 20;
            font-size: 12px;
        }
        .hc-identity {
            display: flex;
            align-items: center;
            gap: 9px;
            min-width: 175px;
        }
        .hc-color-dot {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: 2px solid #ffffff;
            box-shadow: 0 0 8px rgba(255,255,255,0.3);
            flex-shrink: 0;
        }
        .hc-name {
            font-weight: 800;
            font-size: 13px;
            color: #f8fafc;
            white-space: nowrap;
        }
        .hc-tag {
            font-size: 10px;
            font-weight: 800;
            padding: 2px 7px;
            border-radius: 999px;
            background: rgba(148, 163, 184, 0.18);
            color: #cbd5e1;
            white-space: nowrap;
        }
        .hc-stats-row {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
            justify-content: flex-end;
        }
        .hc-pill {
            display: flex;
            align-items: center;
            gap: 4px;
            background: rgba(30, 41, 59, 0.82);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 3px 8px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 700;
            color: #cbd5e1;
            white-space: nowrap;
        }
        .hc-pill strong {
            color: #f8fafc;
            font-weight: 800;
        }

        /* Alt Menü Üzerindeki Oyuncu HUD Paneli */
        .hud {
            position: fixed;
            bottom: 84px;
            left: 50%;
            transform: translateX(-50%);
            width: min(1240px, calc(100vw - 20px));
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            background: rgba(13, 19, 33, 0.90);
            backdrop-filter: blur(12px);
            padding: 6px 14px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
            z-index: 20;
        }
        .hud-left { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
        .income-badge {
            background: rgba(16, 185, 129, 0.15);
            color: #34d399;
            border: 1px solid rgba(16, 185, 129, 0.4);
            padding: 5px 10px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 800;
            white-space: nowrap;
            flex-shrink: 0;
            min-width: 84px;
            text-align: center;
        }
        .troop-progress-container {
            display: flex;
            align-items: center;
            background: rgba(15, 23, 42, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 6px;
            padding: 4px 12px;
            flex: 1 1 290px;
            min-width: 245px;
            max-width: 350px;
            overflow: hidden;
            position: relative;
            height: 30px;
        }
        .troop-bar-fill-abs {
            position: absolute;
            left: 0; top: 0; bottom: 0;
            background: rgba(59, 130, 246, 0.35);
            border-radius: 5px;
            z-index: 1;
            transition: width 0.1s linear;
        }
        .troop-info-content {
            position: relative;
            z-index: 2;
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 11.5px;
            font-weight: 800;
            color: #f8fafc;
            white-space: nowrap;
            gap: 8px;
        }
        .gold-badge {
            background: rgba(250, 204, 21, 0.15);
            color: #facc15;
            border: 1px solid rgba(250, 204, 21, 0.4);
            padding: 5px 12px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 800;
            white-space: nowrap;
            flex-shrink: 0;
            min-width: 84px;
            text-align: center;
        }

        /* Oyun Ayarları Barı (Ülke Sayısı & Zorluk - Oyun başladığında gizlenir) */
        .setup-bar {
            position: fixed;
            top: 62px;
            left: 50%;
            transform: translateX(-50%);
            width: min(1140px, calc(100vw - 24px));
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(15, 23, 42, 0.92);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(56, 189, 248, 0.3);
            padding: 7px 16px;
            border-radius: 10px;
            font-size: 12px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
            z-index: 20;
        }
        .setup-group {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .setup-group label {
            color: #94a3b8;
            font-weight: 700;
        }
        .setup-input {
            background: #1e293b;
            color: #f8fafc;
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 5px;
            padding: 3px 8px;
            font-size: 12px;
            font-weight: 700;
            width: 58px;
            text-align: center;
        }
        .setup-select {
            background: #1e293b;
            color: #38bdf8;
            border: 1px solid rgba(56, 189, 248, 0.35);
            border-radius: 5px;
            padding: 3px 10px;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
        }

        /* Sol Üst Liderlik Tablosu */
        .leaderboard {
            position: fixed;
            top: 104px;
            left: 12px;
            width: 176px;
            background: rgba(13, 19, 33, 0.84);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 7px;
            padding: 5px 7px;
            font-size: 10px;
            z-index: 15;
            box-shadow: 0 8px 20px rgba(0,0,0,0.45);
            transition: top 0.2s ease;
        }
        .lb-header { display: flex; justify-content: space-between; color: #94a3b8; font-weight: 800; font-size: 9.5px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 3px; margin-bottom: 2px; }
        .lb-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 1.5px 2px; color: #cbd5e1; font-weight: 600; line-height: 1.25; }
        .lb-row > span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .lb-row > span:last-child { flex-shrink: 0; font-variant-numeric: tabular-nums; }
        .lb-row.player { color: #38bdf8; font-weight: 800; }
        .lb-ellipsis {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin: 2px 0;
            color: #64748b;
            font-size: 10px;
            font-weight: 900;
            letter-spacing: 2px;
            line-height: 1;
        }
        .lb-ellipsis::before,
        .lb-ellipsis::after {
            content: '';
            flex: 1;
            height: 1px;
            background: rgba(148, 163, 184, 0.22);
        }

        /* Tam Ekran Ana Oyun Canvas Harita Alanı */
        #gameCanvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            border: none;
            border-radius: 0;
            cursor: default;
            image-rendering: pixelated;
            image-rendering: crisp-edges;
            background: #020617;
            z-index: 1;
            touch-action: none;
        }
        #gameCanvas.dragging { cursor: grab; }
        #gameCanvas.dragging:active { cursor: grabbing; }

        .controls-group { display: flex; gap: 8px; align-items: center; }
        label.upload-btn {
            padding: 5px 12px;
            background: #8b5cf6;
            color: white;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 700;
            font-size: 11px;
            box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
        }
        label.upload-btn:hover { background: #7c3aed; }
        input[type="file"] { display: none; }
        button {
            padding: 5px 12px;
            background: #ef4444;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 700;
            font-size: 11px;
        }
        button:hover { background: #dc2626; }

        #instruction {
            color: #facc15;
            font-weight: 700;
            font-size: 12px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        }

        /* Alt Dock Paneli */
        .bottom-dock {
            position: fixed;
            bottom: 12px;
            left: 50%;
            transform: translateX(-50%);
            width: auto;
            max-width: calc(100vw - 24px);
            display: flex;
            justify-content: center;
            gap: 5px;
            background: rgba(13, 19, 33, 0.88);
            backdrop-filter: blur(10px);
            padding: 6px 12px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
            z-index: 20;
        }
        .dock-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            background: rgba(30, 41, 59, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 6px;
            padding: 4px 6px;
            cursor: pointer;
            transition: all 0.15s ease;
            min-width: 78px;
            position: relative;
        }
        .dock-item:hover {
            border-color: rgba(56, 189, 248, 0.5);
            background: rgba(30, 41, 59, 0.9);
        }
        .dock-item.active {
            border-color: #10b981;
            background: rgba(6, 78, 59, 0.8);
            box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
        }
        .dock-item.disabled {
            opacity: 0.35;
            filter: grayscale(0.8);
            cursor: not-allowed;
        }
        .dock-item.disabled:hover {
            border-color: rgba(255, 255, 255, 0.06);
            background: rgba(30, 41, 59, 0.6);
        }
        .dock-shortcut {
            position: absolute;
            top: 2px;
            left: 4px;
            font-size: 8px;
            font-weight: 800;
            color: #64748b;
        }
        .dock-count {
            position: absolute;
            top: 2px;
            right: 4px;
            font-size: 8px;
            font-weight: 800;
            color: #38bdf8;
        }
        .dock-icon {
            width: 16px;
            height: 16px;
            margin: 2px 0;
            stroke: #cbd5e1;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
        .dock-item.active .dock-icon { stroke: #34d399; }
        .dock-name { font-size: 9px; font-weight: 700; color: #cbd5e1; line-height: 1.15; }
        .dock-cost {
            font-size: 9px;
            font-weight: 800;
            color: #facc15;
            margin-top: 2px;
            line-height: 1.1;
            white-space: nowrap;
        }
        .dock-cost.dock-cost-army { color: #64748b; font-weight: 700; }

        .attack-ratio-panel {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(30, 41, 59, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 4px 10px;
            border-radius: 6px;
        }
        input[type="range"] { accent-color: #3b82f6; cursor: pointer; width: 80px; }

        .tooltip-card {
            position: absolute;
            bottom: 116px;
            background: rgba(13, 19, 33, 0.95);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            padding: 8px 12px;
            width: 220px;
            box-shadow: 0 15px 30px rgba(0,0,0,0.6);
            display: none;
            pointer-events: none;
            z-index: 100;
        }
        .tooltip-title { font-size: 11px; font-weight: 800; color: #f8fafc; margin-bottom: 2px; display: flex; justify-content: space-between; }
        .tooltip-desc { font-size: 9px; color: #94a3b8; line-height: 1.3; margin-bottom: 4px; }
        .tooltip-cost { font-size: 9px; color: #facc15; font-weight: 700; }

        .warn-toast {
            position: fixed;
            top: 62px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(220, 38, 38, 0.86);
            border: 1px solid rgba(254, 202, 202, 0.35);
            color: #fff;
            padding: 4px 12px;
            border-radius: 999px;
            font-size: 10.5px;
            font-weight: 700;
            max-width: min(380px, 78vw);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            pointer-events: none;
            z-index: 999;
            display: none;
            box-shadow: 0 4px 12px rgba(0,0,0,0.4);
        }

        /* Diplomasi Modalı & Bildirimler */
        .diplo-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(4, 8, 16, 0.78);
            backdrop-filter: blur(8px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }
        .diplo-card {
            background: linear-gradient(180deg, #111c33 0%, #0b1222 100%);
            border: 1px solid rgba(148, 163, 184, 0.24);
            border-top-color: rgba(203, 213, 225, 0.35);
            border-radius: 16px;
            padding: 18px 20px;
            width: min(390px, 94vw);
            box-shadow: 0 28px 70px rgba(0, 0, 0, 0.88), inset 0 1px 0 rgba(255, 255, 255, 0.06);
            display: flex;
            flex-direction: column;
            gap: 12px;
            color: #f8fafc;
            animation: diploPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }
        @keyframes diploPop {
            from { transform: scale(0.94) translateY(6px); opacity: 0; }
            to { transform: scale(1) translateY(0); opacity: 1; }
        }
        .diplo-header {
            display: flex;
            align-items: center;
            gap: 12px;
            position: relative;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.14);
        }
        .diplo-flag {
            width: 44px;
            height: 30px;
            border-radius: 6px;
            border: 1.5px solid rgba(255, 255, 255, 0.45);
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.28);
            flex-shrink: 0;
            position: relative;
            overflow: hidden;
        }
        .diplo-flag::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 48%, rgba(0,0,0,0.22) 100%);
            pointer-events: none;
        }
        .diplo-subtitle {
            font-size: 10px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #64748b;
            font-weight: 800;
            margin-bottom: 2px;
        }
        .diplo-status {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 10.5px;
            font-weight: 800;
            padding: 3px 9px;
            border-radius: 999px;
            background: rgba(148, 163, 184, 0.16);
            border: 1px solid rgba(148, 163, 184, 0.25);
            color: #cbd5e1;
            margin-top: 4px;
        }
        .diplo-status.nap { background: rgba(59, 130, 246, 0.18); color: #93c5fd; border-color: rgba(59, 130, 246, 0.45); }
        .diplo-status.alliance { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.45); }
        .diplo-status.war { background: rgba(239, 68, 68, 0.18); color: #fca5a5; border-color: rgba(239, 68, 68, 0.45); }

        .diplo-close-btn {
            position: absolute;
            right: 0;
            top: 0;
            width: 30px;
            height: 30px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(30, 41, 59, 0.65);
            border: 1px solid rgba(148, 163, 184, 0.18);
            color: #94a3b8;
            font-size: 15px;
            cursor: pointer;
            border-radius: 8px;
            transition: all 0.15s ease;
        }
        .diplo-close-btn:hover { color: #fff; background: rgba(51, 65, 85, 0.9); border-color: rgba(148, 163, 184, 0.35); }

        .diplo-relation-panel {
            background: rgba(15, 23, 42, 0.72);
            border: 1px solid rgba(148, 163, 184, 0.14);
            border-radius: 11px;
            padding: 10px 12px;
            display: flex;
            flex-direction: column;
            gap: 7px;
        }
        .diplo-relation-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        .diplo-relation-title {
            font-size: 10.5px;
            font-weight: 800;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: #94a3b8;
        }
        .diplo-relation-score-wrap {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .diplo-relation-stance {
            font-size: 11px;
            font-weight: 800;
            color: #cbd5e1;
        }
        .diplo-relation-score {
            font-size: 12px;
            font-weight: 900;
            padding: 1px 8px;
            border-radius: 999px;
            background: rgba(30, 41, 59, 0.95);
            border: 1px solid rgba(148, 163, 184, 0.22);
            color: #f8fafc;
        }
        .diplo-relation-bar-container {
            width: 100%;
            height: 8px;
            background: rgba(30, 41, 59, 0.95);
            border-radius: 999px;
            overflow: hidden;
            position: relative;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
        }
        .diplo-relation-bar-container::after {
            content: '';
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 1.5px;
            background: rgba(255, 255, 255, 0.25);
        }
        .diplo-relation-fill {
            height: 100%;
            width: 50%;
            background: linear-gradient(90deg, #0284c7, #38bdf8);
            border-radius: 999px;
            transition: width 0.3s ease, background 0.3s ease;
        }
        .diplo-relation-scale {
            display: flex;
            justify-content: space-between;
            font-size: 9.5px;
            font-weight: 700;
            color: #64748b;
        }

        .diplo-section-label {
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: #64748b;
            margin-top: 2px;
        }
        .diplo-actions {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .diplo-action-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 9px 12px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 10px;
            font-weight: 800;
            font-size: 11.5px;
            cursor: pointer;
            transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
        }
        .diplo-action-btn:hover { filter: brightness(1.09); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
        .diplo-action-btn:active { transform: translateY(0); filter: brightness(0.98); }
        .diplo-action-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
        .diplo-treaty-btn {
            width: 100%;
            justify-content: flex-start;
            text-align: left;
            padding: 9px 11px;
            gap: 10px;
        }
        .diplo-btn-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.14);
            border: 1px solid rgba(255, 255, 255, 0.18);
            flex-shrink: 0;
        }
        .diplo-btn-icon svg { width: 17px; height: 17px; }
        .diplo-btn-text {
            display: flex;
            flex-direction: column;
            gap: 1px;
            min-width: 0;
        }
        .diplo-btn-title { font-size: 12px; font-weight: 800; line-height: 1.2; color: #fff; }
        .diplo-btn-sub { font-size: 10px; font-weight: 600; line-height: 1.2; color: rgba(255, 255, 255, 0.78); }
        .diplo-action-btn.nap { background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%); color: #fff; border-color: rgba(147, 197, 253, 0.35); }
        .diplo-action-btn.alliance { background: linear-gradient(135deg, #10b981 0%, #047857 100%); color: #fff; border-color: rgba(110, 231, 183, 0.35); }
        .diplo-action-btn.aid { background: linear-gradient(135deg, #facc15 0%, #d97706 100%); color: #0f172a; border-color: rgba(254, 240, 138, 0.45); flex: 1; }
        .diplo-action-btn.aid-troops { background: linear-gradient(135deg, #38bdf8 0%, #0369a1 100%); color: #fff; border-color: rgba(186, 230, 253, 0.35); }
        .diplo-action-btn.embargo { background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%); color: #fff; border-color: rgba(196, 181, 253, 0.32); }
        .diplo-action-btn.war { background: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%); color: #fff; border-color: rgba(252, 165, 165, 0.32); }
        .diplo-aid-title {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
            font-weight: 800;
        }
        .diplo-aid-title svg { width: 14px; height: 14px; flex-shrink: 0; }
        .diplo-btn-row { display: flex; gap: 8px; }

        .diplo-aid-card {
            background: rgba(15, 23, 42, 0.72);
            padding: 9px 11px;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, 0.14);
            display: flex;
            flex-direction: column;
            gap: 7px;
        }
        .diplo-emoji-section {
            display: flex;
            flex-direction: column;
            gap: 7px;
            border-top: 1px solid rgba(148, 163, 184, 0.14);
            padding-top: 10px;
        }
        .diplo-emoji-row {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 6px;
        }
        .emoji-btn {
            background: rgba(30, 41, 59, 0.78);
            border: 1px solid rgba(148, 163, 184, 0.18);
            border-radius: 8px;
            font-size: 16px;
            cursor: pointer;
            padding: 6px 0;
            transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
        }
        .emoji-btn:hover { transform: translateY(-2px) scale(1.08); background: rgba(51, 65, 85, 0.95); border-color: rgba(56, 189, 248, 0.45); }

        .diplo-offer-toast {
            position: fixed;
            top: 60px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(15, 23, 42, 0.95);
            border: 1px solid #38bdf8;
            box-shadow: 0 10px 30px rgba(0,0,0,0.7);
            padding: 8px 16px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 12px;
            font-weight: 700;
            color: #f8fafc;
            z-index: 999;
        }
        .diplo-accept-btn { background: #10b981; color: white; padding: 5px 12px; border-radius: 5px; border: none; cursor: pointer; font-weight: 800; font-size: 11px; }
        .diplo-decline-btn { background: #ef4444; color: white; padding: 5px 12px; border-radius: 5px; border: none; cursor: pointer; font-weight: 800; font-size: 11px; }
        .alliance-renew-toast {
            position: fixed;
            top: 96px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(15, 23, 42, 0.96);
            border: 1px solid #facc15;
            box-shadow: 0 10px 30px rgba(0,0,0,0.7);
            padding: 8px 16px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 12px;
            font-weight: 700;
            color: #f8fafc;
            z-index: 998;
        }
        .diplo-ignore-btn { background: #475569; color: #e2e8f0; padding: 5px 12px; border-radius: 5px; border: none; cursor: pointer; font-weight: 800; font-size: 11px; }
        .diplo-ignore-btn:hover { background: #64748b; }

        .map-btn {
            background: #2563eb;
            color: white;
            border: none;
            border-radius: 5px;
            padding: 4px 10px;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
        }
        .map-btn:hover { background: #1d4ed8; }
        .diplo-nav-btn {
            background: #0284c7;
            color: white;
            border: none;
            border-radius: 6px;
            padding: 5px 12px;
            font-weight: 700;
            font-size: 11px;
            cursor: pointer;
        }
        .diplo-nav-btn:hover { background: #0369a1; }
        .lb-row:not(.player) { cursor: pointer; }
        .lb-row:not(.player):hover { background: rgba(255, 255, 255, 0.08); border-radius: 3px; }

        .struct-popover {
            position: fixed;
            display: none;
            z-index: 950;
            background: rgba(15, 23, 42, 0.94);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(56, 189, 248, 0.45);
            border-radius: 10px;
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
            padding: 8px 10px;
            min-width: 178px;
            color: #f8fafc;
            user-select: none;
            -webkit-user-select: none;
            transform: translate(-50%, calc(-100% - 14px));
        }
        .struct-popover-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 7px;
            font-size: 12px;
            font-weight: 800;
            color: #f8fafc;
        }
        .struct-popover-lvl {
            color: #facc15;
            font-size: 11px;
            background: rgba(250, 204, 21, 0.14);
            padding: 1px 6px;
            border-radius: 999px;
            border: 1px solid rgba(250, 204, 21, 0.35);
        }
        .struct-popover-close {
            background: transparent;
            border: none;
            color: #94a3b8;
            font-size: 13px;
            cursor: pointer;
            padding: 0 2px;
            line-height: 1;
        }
        .struct-popover-close:hover { color: #f8fafc; }
        .struct-popover-actions {
            display: flex;
            gap: 6px;
        }
        .struct-pop-btn {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
            padding: 6px 8px;
            border-radius: 7px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            font-size: 11px;
            font-weight: 800;
            cursor: pointer;
            transition: transform 0.08s ease, opacity 0.15s ease, background 0.15s ease;
            touch-action: none;
        }
        .struct-pop-btn:active:not(:disabled) { transform: scale(0.95); }
        .struct-pop-btn.upgrade {
            background: rgba(16, 185, 129, 0.22);
            border-color: rgba(16, 185, 129, 0.55);
            color: #6ee7b7;
        }
        .struct-pop-btn.upgrade:hover:not(:disabled) {
            background: rgba(16, 185, 129, 0.36);
        }
        .struct-pop-btn.upgrade:disabled {
            opacity: 0.35;
            filter: grayscale(0.8);
            cursor: not-allowed;
        }
        .struct-pop-btn.demolish {
            background: rgba(239, 68, 68, 0.18);
            border-color: rgba(239, 68, 68, 0.5);
            color: #fca5a5;
        }
        .struct-pop-btn.demolish:hover {
            background: rgba(239, 68, 68, 0.34);
        }
        .struct-pop-sub {
            font-size: 9.5px;
            font-weight: 700;
            opacity: 0.85;
        }
        .struct-pop-hint {
            margin-top: 5px;
            font-size: 9px;
            color: #94a3b8;
            text-align: center;
        }

        /* Oyun Hızı & Duraklatma Kontrolleri */
        .speed-control-panel {
            display: flex;
            align-items: center;
            gap: 3px;
            background: rgba(15, 23, 42, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 6px;
            padding: 2px 4px;
        }
        .speed-btn {
            background: #1e293b;
            color: #94a3b8;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 4px;
            font-size: 10px;
            font-weight: 800;
            padding: 3px 6px;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        .speed-btn:hover { color: #fff; background: #334155; }
        .speed-btn.active {
            background: #3b82f6;
            color: #fff;
            border-color: #60a5fa;
            box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
        }

        /* RealFront Sağ Tık Dairesel Menü (Radial Menu) */
        .radial-menu {
            position: fixed;
            width: 0;
            height: 0;
            z-index: 950;
            display: none;
            pointer-events: none;
        }
        .radial-center-badge {
            position: absolute;
            transform: translate(-50%, -50%);
            background: rgba(15, 23, 42, 0.96);
            border: 2px solid #38bdf8;
            color: #f8fafc;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 10px;
            font-weight: 800;
            white-space: nowrap;
            box-shadow: 0 6px 20px rgba(0,0,0,0.75);
            pointer-events: auto;
        }
        .radial-btn {
            position: absolute;
            transform: translate(-50%, -50%);
            width: 58px;
            height: 58px;
            border-radius: 50%;
            background: rgba(15, 23, 42, 0.94);
            border: 1.5px solid rgba(148, 163, 184, 0.35);
            color: #f8fafc;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
            cursor: pointer;
            pointer-events: auto;
            box-shadow: 0 8px 22px rgba(0,0,0,0.75);
            transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
            padding: 2px;
        }
        .radial-btn:hover {
            transform: translate(-50%, -50%) scale(1.14);
            border-color: #38bdf8;
            background: #1e293b;
        }
        .radial-btn .r-icon { font-size: 16px; line-height: 1; }
        .radial-btn .r-label { font-size: 8.5px; font-weight: 800; color: #cbd5e1; text-align: center; line-height: 1.05; }
        .radial-btn .r-sub { font-size: 7.5px; font-weight: 700; color: #facc15; line-height: 1; }
        .diplo-action-btn.embargo { background: #7c3aed; color: white; }

        /* Başlangıç Tercihleri (Lobi) Paneli - Modern Komuta Merkezi Tasarımı */
        .lobby-overlay {
            position: fixed;
            inset: 0;
            background:
                radial-gradient(ellipse 85% 65% at 50% 0%, rgba(14, 165, 233, 0.14), transparent 65%),
                radial-gradient(ellipse 60% 50% at 85% 90%, rgba(59, 130, 246, 0.12), transparent 60%),
                rgba(4, 8, 18, 0.76);
            backdrop-filter: blur(10px) saturate(1.15);
            -webkit-backdrop-filter: blur(10px) saturate(1.15);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 18px;
            z-index: 1100;
            overflow-y: auto;
        }
        .lobby-shell {
            width: min(1140px, 96vw);
            max-height: calc(100vh - 36px);
            background: linear-gradient(165deg, rgba(15, 23, 42, 0.94) 0%, rgba(9, 14, 28, 0.97) 100%);
            border: 1px solid rgba(56, 189, 248, 0.24);
            border-radius: 18px;
            box-shadow:
                0 28px 80px rgba(0, 0, 0, 0.78),
                0 0 0 1px rgba(255, 255, 255, 0.04) inset,
                0 1px 0 rgba(56, 189, 248, 0.25) inset;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: relative;
        }
        .lobby-shell::before {
            content: '';
            position: absolute;
            top: 0;
            left: 12%;
            right: 12%;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.85), rgba(99, 102, 241, 0.7), transparent);
            pointer-events: none;
        }
        .lobby-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            padding: 14px 20px;
            background: rgba(15, 23, 42, 0.65);
            border-bottom: 1px solid rgba(148, 163, 184, 0.12);
            flex-wrap: wrap;
        }
        .lobby-brand-wrap {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .lobby-logo-badge {
            width: 38px;
            height: 38px;
            border-radius: 11px;
            background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 6px 20px rgba(14, 165, 233, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.35);
            flex-shrink: 0;
        }
        .lobby-brand-text {
            display: flex;
            flex-direction: column;
            gap: 1px;
        }
        .lobby-brand {
            font-size: 19px;
            font-weight: 900;
            letter-spacing: 2px;
            color: #f8fafc;
            line-height: 1.05;
        }
        .lobby-brand span {
            background: linear-gradient(90deg, #38bdf8, #818cf8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .lobby-subtitle {
            font-size: 10.5px;
            font-weight: 600;
            color: #64748b;
            letter-spacing: 0.4px;
        }
        .lobby-header-right {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .lobby-mode-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 11px;
            border-radius: 999px;
            background: rgba(15, 23, 42, 0.85);
            border: 1px solid rgba(56, 189, 248, 0.22);
            font-size: 11px;
            font-weight: 700;
            color: #94a3b8;
        }
        .lobby-mode-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #38bdf8;
            box-shadow: 0 0 8px #38bdf8;
        }
        .lobby-body {
            display: grid;
            grid-template-columns: minmax(360px, 435px) 1fr;
            min-height: 0;
            flex: 1;
            overflow: hidden;
        }
        .lobby-body.ranked-mode {
            grid-template-columns: 1fr;
        }
        .lobby-body.ranked-mode .lobby-map-box {
            display: none;
        }
        .lobby-body.ranked-mode .lobby-card {
            border-right: none;
            max-width: 720px;
            width: 100%;
            margin: 0 auto;
        }
        .lobby-card {
            padding: 16px 20px 18px;
            border-right: 1px solid rgba(148, 163, 184, 0.11);
            display: flex;
            flex-direction: column;
            gap: 13px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
        }
        .lobby-card::-webkit-scrollbar { width: 6px; }
        .lobby-card::-webkit-scrollbar-track { background: transparent; }
        .lobby-card::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.25); border-radius: 999px; }

        .lobby-map-box {
            padding: 16px 20px 18px;
            background: radial-gradient(circle at 50% 45%, rgba(14, 165, 233, 0.06), rgba(2, 6, 23, 0.48));
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 12px;
            min-width: 0;
        }
        .lobby-map-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }
        .lobby-map-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 5px 12px;
            border-radius: 999px;
            background: rgba(15, 23, 42, 0.85);
            border: 1px solid rgba(56, 189, 248, 0.28);
            font-size: 12px;
            font-weight: 800;
            color: #e2e8f0;
        }
        .lobby-map-stage {
            position: relative;
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #020617;
            border-radius: 13px;
            border: 1px solid rgba(56, 189, 248, 0.22);
            padding: 8px;
            box-shadow: inset 0 0 36px rgba(0, 0, 0, 0.72), 0 12px 30px rgba(0, 0, 0, 0.45);
            overflow: hidden;
        }
        #lobbyMapPreview {
            position: static;
            width: 100%;
            max-width: 100%;
            height: auto;
            max-height: 56vh;
            aspect-ratio: 1200 / 620;
            margin: 0 auto;
            border-radius: 8px;
            background: #020617;
            image-rendering: pixelated;
            display: block;
        }
        .lobby-map-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
            padding: 8px 12px;
            border-radius: 10px;
            background: rgba(15, 23, 42, 0.65);
            border: 1px solid rgba(148, 163, 184, 0.1);
            font-size: 11px;
            color: #94a3b8;
            font-weight: 600;
        }
        .lobby-tip-chips {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .lobby-tip-chip {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            color: #cbd5e1;
        }
        .lobby-tip-chip kbd {
            background: rgba(30, 41, 59, 0.95);
            border: 1px solid rgba(148, 163, 184, 0.25);
            border-radius: 4px;
            padding: 1px 5px;
            font-size: 10px;
            font-family: inherit;
            font-weight: 800;
            color: #38bdf8;
        }
        .lobby-regen-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(30, 41, 59, 0.85);
            color: #e2e8f0;
            border: 1px solid rgba(56, 189, 248, 0.3);
            border-radius: 8px;
            padding: 6px 11px;
            font-size: 11px;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.16s ease;
        }
        .lobby-regen-btn:hover {
            background: rgba(14, 116, 144, 0.35);
            border-color: #38bdf8;
            color: #fff;
            transform: translateY(-1px);
        }
        .lobby-regen-btn:active { transform: translateY(0); }

        .lobby-sec-label {
            font-size: 10.5px;
            font-weight: 800;
            letter-spacing: 0.9px;
            text-transform: uppercase;
            color: #94a3b8;
            margin-bottom: 7px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .lobby-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 7px;
        }
        .lobby-grid.diff-grid {
            grid-template-columns: repeat(4, 1fr);
        }
        .lobby-opt-btn {
            background: rgba(30, 41, 59, 0.58);
            border: 1px solid rgba(148, 163, 184, 0.14);
            border-radius: 10px;
            padding: 8px 8px;
            color: #cbd5e1;
            font-size: 11.5px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 6px;
            text-align: center;
            transition: all 0.16s ease;
            position: relative;
        }
        .lobby-opt-btn:hover {
            border-color: rgba(56, 189, 248, 0.45);
            background: rgba(30, 41, 59, 0.92);
            color: #f8fafc;
            transform: translateY(-1px);
        }
        .lobby-opt-btn.active {
            border-color: #38bdf8;
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(37, 99, 235, 0.2));
            color: #ffffff;
            box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3) inset, 0 6px 16px rgba(14, 165, 233, 0.22);
        }
        .lobby-opt-btn[data-diff="easy"].active {
            border-color: #4ade80;
            background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(16, 185, 129, 0.16));
            box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.28) inset, 0 6px 16px rgba(34, 197, 94, 0.2);
        }
        .lobby-opt-btn[data-diff="hard"].active {
            border-color: #fb923c;
            background: linear-gradient(135deg, rgba(249, 115, 22, 0.24), rgba(234, 88, 12, 0.16));
            box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.28) inset, 0 6px 16px rgba(249, 115, 22, 0.2);
        }
        .lobby-opt-btn.diff-impossible.active {
            border-color: #f87171;
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.28), rgba(153, 27, 27, 0.22));
            box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.3) inset, 0 6px 18px rgba(239, 68, 68, 0.28);
        }
        .lobby-opt-box {
            background: rgba(15, 23, 42, 0.62);
            border: 1px solid rgba(148, 163, 184, 0.12);
            border-radius: 12px;
            padding: 12px 14px;
            display: flex;
            flex-direction: column;
            gap: 11px;
        }
        .lobby-setting-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .lobby-setting-row + .lobby-setting-row {
            border-top: 1px solid rgba(148, 163, 184, 0.1);
            padding-top: 11px;
        }
        .lobby-range {
            -webkit-appearance: none;
            appearance: none;
            width: 155px;
            height: 6px;
            border-radius: 999px;
            background: rgba(51, 65, 85, 0.9);
            outline: none;
            cursor: pointer;
        }
        .lobby-range::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #38bdf8;
            border: 2px solid #0f172a;
            box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
            cursor: pointer;
            transition: transform 0.12s ease;
        }
        .lobby-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
        #lobbyWinGrid {
            display: inline-flex;
            gap: 4px;
            background: rgba(2, 6, 23, 0.6);
            padding: 3px;
            border-radius: 9px;
            border: 1px solid rgba(148, 163, 184, 0.12);
        }
        #lobbyWinGrid .speed-btn {
            background: transparent;
            border: none;
            border-radius: 6px;
            padding: 5px 10px;
            font-size: 11.5px;
            font-weight: 800;
            color: #94a3b8;
            transition: all 0.15s ease;
        }
        #lobbyWinGrid .speed-btn:hover { color: #f8fafc; background: rgba(51, 65, 85, 0.55); }
        #lobbyWinGrid .speed-btn.active {
            background: linear-gradient(135deg, #0284c7, #2563eb);
            color: #ffffff;
            box-shadow: 0 3px 10px rgba(14, 165, 233, 0.35);
        }
        .lobby-start-btn {
            width: 100%;
            padding: 13px 18px;
            background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #2563eb 100%);
            color: #ffffff;
            border: 1px solid rgba(125, 211, 252, 0.35);
            border-radius: 12px;
            font-size: 14px;
            font-weight: 900;
            letter-spacing: 1px;
            cursor: pointer;
            box-shadow:
                0 10px 28px rgba(14, 165, 233, 0.38),
                inset 0 1px 0 rgba(255, 255, 255, 0.32);
            transition: transform 0.14s ease, box-shadow 0.18s ease, filter 0.15s ease;
            margin-top: auto;
        }
        .lobby-start-btn:hover:not(:disabled) {
            filter: brightness(1.08);
            transform: translateY(-1px);
            box-shadow:
                0 14px 34px rgba(14, 165, 233, 0.52),
                inset 0 1px 0 rgba(255, 255, 255, 0.42);
        }
        .lobby-start-btn:active:not(:disabled) { transform: translateY(0) scale(0.99); }
        .lobby-start-btn:disabled { cursor: not-allowed; filter: grayscale(0.25); }

        @media (max-width: 900px) {
            .lobby-overlay { align-items: flex-start; padding: 10px; }
            .lobby-shell { max-height: none; width: 100%; border-radius: 14px; }
            .lobby-header { padding: 12px 14px; gap: 10px; }
            .lobby-header-right { width: 100%; gap: 8px; }
            .mp-mode-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 5px; padding: 5px; }
            .mp-tab-btn { width: 100%; padding: 8px 8px; font-size: 11.5px; text-align: center; overflow: hidden; text-overflow: ellipsis; }
            .lobby-body { grid-template-columns: 1fr; overflow: visible; }
            .lobby-card { border-right: none; border-bottom: 1px solid rgba(148, 163, 184, 0.12); overflow-y: visible; padding: 14px; }
            .lobby-map-box { padding: 14px; }
            #lobbyMapPreview { max-height: 36vh; }
            .lobby-grid { grid-template-columns: repeat(2, 1fr); }
            .lobby-grid.diff-grid { grid-template-columns: repeat(2, 1fr); }
        }

        /* Zorluk Yıldız İkonları & Kısıtlamalar Sekmesi */
        .diff-stars {
            font-size: 13px;
            letter-spacing: 1px;
            line-height: 1;
            font-weight: 900;
        }
        .diff-stars.diff-easy { color: #4ade80; text-shadow: 0 0 8px rgba(74, 222, 128, 0.45); }
        .diff-stars.diff-normal { color: #38bdf8; text-shadow: 0 0 8px rgba(56, 189, 248, 0.45); }
        .diff-stars.diff-hard { color: #fb923c; text-shadow: 0 0 8px rgba(251, 146, 60, 0.45); }
        .diff-stars.diff-impossible-stars { color: #f87171; text-shadow: 0 0 10px rgba(248, 113, 113, 0.6); }
        .restrict-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 7px;
        }
        .restrict-chip {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 8px 10px;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, 0.2);
            background: rgba(15, 23, 42, 0.72);
            color: #cbd5e1;
            font-size: 11.5px;
            font-weight: 800;
            cursor: pointer;
            text-align: left;
            transition: all 0.14s ease;
        }
        .restrict-chip:hover { border-color: rgba(248, 113, 113, 0.45); color: #f8fafc; }
        .restrict-chip.active {
            background: rgba(239, 68, 68, 0.18);
            border-color: rgba(248, 113, 113, 0.78);
            color: #fecaca;
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.18);
        }
        .restrict-chip .rc-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
        .restrict-chip .rc-sub { font-size: 9.5px; font-weight: 600; color: #94a3b8; }
        .restrict-chip.active .rc-sub { color: #fca5a5; }
        .restrict-chip .rc-state {
            font-size: 10px;
            font-weight: 900;
            padding: 2px 6px;
            border-radius: 6px;
            background: rgba(148, 163, 184, 0.14);
            color: #94a3b8;
            flex-shrink: 0;
        }
        .restrict-chip.active .rc-state { background: rgba(239, 68, 68, 0.35); color: #fff; }
        .dock-item.restricted {
            opacity: 0.32 !important;
            filter: grayscale(1);
            position: relative;
        }
        .dock-item.restricted::after {
            content: '🚫';
            position: absolute;
            top: 2px;
            right: 3px;
            font-size: 10px;
        }

        /* Seçenekler (Custom Match Options) Grid */
        .options-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 7px;
        }
        .opt-toggle-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            min-height: 50px;
            padding: 9px 8px;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, 0.22);
            background: rgba(15, 23, 42, 0.78);
            color: #cbd5e1;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.3px;
            text-align: center;
            cursor: pointer;
            transition: all 0.14s ease;
        }
        .opt-toggle-card:hover { border-color: rgba(56, 189, 248, 0.5); color: #f8fafc; }
        .opt-toggle-card.active {
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(99, 102, 241, 0.22));
            border-color: rgba(56, 189, 248, 0.8);
            color: #f8fafc;
            box-shadow: 0 4px 14px rgba(14, 165, 233, 0.22);
        }
        .opt-num-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            padding: 9px 8px;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, 0.22);
            background: rgba(15, 23, 42, 0.78);
            color: #cbd5e1;
            font-size: 10.5px;
            font-weight: 800;
            text-align: center;
            transition: all 0.14s ease;
        }
        .opt-num-card.active {
            border-color: rgba(56, 189, 248, 0.75);
            background: rgba(14, 165, 233, 0.14);
            color: #f8fafc;
        }
        .opt-num-card input[type="checkbox"] {
            width: 15px;
            height: 15px;
            accent-color: #38bdf8;
            cursor: pointer;
        }
        .opt-num-input {
            width: 70px;
            padding: 3px 6px;
            border-radius: 6px;
            border: 1px solid rgba(148, 163, 184, 0.28);
            background: rgba(7, 11, 22, 0.85);
            color: #f8fafc;
            font-size: 12px;
            font-weight: 800;
            text-align: center;
        }
        .opt-num-input:disabled { opacity: 0.42; cursor: not-allowed; }

        /* Profesyonel Oyuncu Profili Modalı */
        .profile-modal {
            width: min(860px, calc(100vw - 20px));
            max-height: min(92vh, 880px);
            background: linear-gradient(180deg, #090e1a 0%, #070b14 100%);
            border: 1px solid rgba(56, 189, 248, 0.3);
            border-radius: 18px;
            box-shadow: 0 28px 70px rgba(0, 0, 0, 0.88), 0 0 0 1px rgba(255,255,255,0.03) inset;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .profile-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 12px 18px 10px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.12);
            background: rgba(13, 19, 34, 0.78);
            flex-shrink: 0;
        }
        .profile-banner {
            position: relative;
            margin: 12px 16px 0;
            padding: 16px 18px;
            border-radius: 14px;
            background:
                radial-gradient(circle at 86% 18%, rgba(56, 189, 248, 0.16), transparent 46%),
                radial-gradient(circle at 12% 88%, rgba(37, 99, 235, 0.16), transparent 52%),
                linear-gradient(135deg, #0d172c 0%, #0f1d38 55%, #0c1528 100%);
            border: 1px solid rgba(56, 189, 248, 0.24);
            display: flex;
            flex-direction: column;
            gap: 12px;
            flex-shrink: 0;
            overflow: hidden;
        }
        .profile-banner::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
                linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
            background-size: 28px 28px;
            pointer-events: none;
        }
        .profile-hero {
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            gap: 16px;
        }
        .profile-avatar-wrap {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            flex-shrink: 0;
        }
        .profile-lvl-badge {
            margin-top: -11px;
            z-index: 2;
            padding: 1px 9px;
            border-radius: 6px;
            background: #1e293b;
            border: 1.5px solid rgba(148, 163, 184, 0.55);
            color: #f8fafc;
            font-size: 11px;
            font-weight: 900;
            letter-spacing: 0.4px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
        }
        .profile-xp-segments {
            display: grid;
            grid-template-columns: repeat(10, minmax(0, 1fr));
            gap: 4px;
            width: 100%;
        }
        .profile-xp-seg {
            height: 8px;
            border-radius: 3px;
            background: rgba(30, 41, 59, 0.85);
            border: 1px solid rgba(148, 163, 184, 0.14);
            overflow: hidden;
            position: relative;
        }
        .profile-xp-seg-fill {
            height: 100%;
            background: linear-gradient(90deg, #f59e0b, #facc15);
            border-radius: 2px;
            transition: width 0.3s ease;
        }
        .profile-xp-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            font-size: 11px;
            font-weight: 800;
            color: #94a3b8;
        }
        .profile-xp-meta .xp-gold {
            color: #facc15;
            font-weight: 900;
        }
        /* OpenFront Tarzı İstatistik Sayfası Bileşenleri */
        .stats-mode-bar {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 6px;
            padding: 5px;
            border-radius: 12px;
            background: #0b111e;
            border: 1px solid rgba(148, 163, 184, 0.16);
        }
        .stats-mode-btn {
            border: 1px solid transparent;
            background: transparent;
            color: #94a3b8;
            font-size: 11.5px;
            font-weight: 800;
            letter-spacing: 0.6px;
            padding: 8px 6px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.15s ease;
            text-transform: uppercase;
        }
        .stats-mode-btn:hover { color: #e2e8f0; background: rgba(30, 41, 59, 0.45); }
        .stats-mode-btn.active {
            background: rgba(14, 165, 233, 0.16);
            border-color: rgba(56, 189, 248, 0.45);
            color: #7dd3fc;
            box-shadow: 0 2px 10px rgba(14, 165, 233, 0.14);
        }
        .stats-winrate-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            padding: 14px 18px;
            border-radius: 13px;
            background: #0c1220;
            border: 1px solid rgba(148, 163, 184, 0.16);
            flex-wrap: wrap;
        }
        .stats-wr-left {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }
        .stats-wr-label {
            font-size: 10.5px;
            font-weight: 800;
            color: #94a3b8;
            letter-spacing: 0.8px;
            text-transform: uppercase;
        }
        .stats-wr-pct {
            font-size: 28px;
            font-weight: 900;
            color: #34d399;
            line-height: 1.05;
            font-variant-numeric: tabular-nums;
        }
        .stats-wr-counters {
            display: grid;
            grid-template-columns: repeat(3, minmax(84px, 1fr));
            border-radius: 10px;
            background: #080d18;
            border: 1px solid rgba(148, 163, 184, 0.14);
            overflow: hidden;
        }
        .stats-wr-cell {
            padding: 9px 14px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 3px;
            border-right: 1px solid rgba(148, 163, 184, 0.1);
        }
        .stats-wr-cell:last-child { border-right: none; }
        .stats-wr-cell span {
            font-size: 9.5px;
            font-weight: 800;
            color: #94a3b8;
            letter-spacing: 0.6px;
            text-transform: uppercase;
        }
        .stats-wr-cell strong {
            font-size: 17px;
            font-weight: 900;
            font-variant-numeric: tabular-nums;
        }
        .stats-wr-cell.played strong { color: #60a5fa; }
        .stats-wr-cell.wins strong { color: #34d399; }
        .stats-wr-cell.losses strong { color: #f87171; }
        .stats-sec-head {
            font-size: 11px;
            font-weight: 900;
            color: #94a3b8;
            letter-spacing: 0.85px;
            text-transform: uppercase;
            margin-top: 2px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        .stats-pg-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 9px;
        }
        .stats-pg-card {
            background: #0c1220;
            border: 1px solid rgba(148, 163, 184, 0.15);
            border-radius: 11px;
            padding: 11px 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            text-align: center;
            transition: border-color 0.15s ease, background 0.15s ease;
        }
        .stats-pg-card:hover {
            border-color: rgba(56, 189, 248, 0.32);
            background: #10182b;
        }
        .stats-pg-label {
            font-size: 9.5px;
            font-weight: 800;
            color: #94a3b8;
            letter-spacing: 0.55px;
            text-transform: uppercase;
        }
        .stats-pg-valrow {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            flex-wrap: wrap;
        }
        .stats-pg-val {
            font-size: 18px;
            font-weight: 900;
            line-height: 1;
            font-variant-numeric: tabular-nums;
        }
        .stats-pg-val.c-green { color: #34d399; }
        .stats-pg-val.c-blue  { color: #38bdf8; }
        .stats-pg-val.c-red   { color: #f87171; }
        .stats-pg-val.c-gold  { color: #facc15; }
        .stats-pg-ico {
            width: 17px;
            height: 17px;
            flex-shrink: 0;
            color: #e2e8f0;
        }
        .stats-pg-ico.ico-gold { color: #facc15; }
        .stats-pg-unit {
            font-size: 10.5px;
            font-weight: 700;
            color: #64748b;
        }
        .stats-table-card {
            background: #0a0f1a;
            border: 1px solid rgba(148, 163, 184, 0.15);
            border-radius: 12px;
            overflow-x: auto;
        }
        .stats-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 12.5px;
            font-variant-numeric: tabular-nums;
        }
        .stats-table thead th {
            background: rgba(30, 41, 59, 0.52);
            color: #cbd5e1;
            font-size: 11.5px;
            font-weight: 800;
            padding: 10px 12px;
            text-align: center;
            border-bottom: 1px solid rgba(148, 163, 184, 0.14);
            white-space: nowrap;
        }
        .stats-table thead th.col-left { text-align: left; }
        .stats-table tbody td {
            padding: 10px 12px;
            text-align: center;
            color: #e2e8f0;
            font-weight: 700;
            border-bottom: 1px solid rgba(148, 163, 184, 0.08);
            white-space: nowrap;
        }
        .stats-table tbody tr:last-child td { border-bottom: none; }
        .stats-table tbody tr:hover td { background: rgba(30, 41, 59, 0.25); }
        .stats-table tbody td.col-name {
            text-align: left;
            color: #f8fafc;
            font-weight: 800;
        }
        /* Dereceli (Ranked) Lobi & Profil Bileşenleri */
        .ranked-panel {
            display: none;
            flex-direction: column;
            gap: 11px;
            padding: 12px;
            border-radius: 13px;
            background: linear-gradient(160deg, rgba(15, 23, 42, 0.94), rgba(30, 27, 75, 0.42));
            border: 1px solid rgba(250, 204, 21, 0.34);
        }
        .ranked-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: wrap;
        }
        .ranked-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 3px 9px;
            border-radius: 999px;
            background: rgba(250, 204, 21, 0.14);
            border: 1px solid rgba(250, 204, 21, 0.42);
            color: #fde047;
            font-size: 11px;
            font-weight: 900;
            letter-spacing: 0.4px;
        }
        .ranked-mode-grid {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 7px;
        }
        .ranked-mode-card {
            background: rgba(11, 17, 32, 0.85);
            border: 1.5px solid rgba(148, 163, 184, 0.22);
            border-radius: 10px;
            padding: 9px 6px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
            cursor: pointer;
            transition: all 0.15s ease;
            color: #cbd5e1;
            text-align: center;
        }
        .ranked-mode-card:hover {
            border-color: rgba(250, 204, 21, 0.55);
            background: rgba(30, 41, 59, 0.75);
        }
        .ranked-mode-card.active {
            border-color: #facc15;
            background: linear-gradient(180deg, rgba(250, 204, 21, 0.18), rgba(245, 158, 11, 0.08));
            box-shadow: 0 4px 16px rgba(250, 204, 21, 0.18);
            color: #fef08a;
        }
        .ranked-mode-card .rm-icon { font-size: 17px; line-height: 1; }
        .ranked-mode-card .rm-name { font-size: 11.5px; font-weight: 900; }
        .ranked-mode-card .rm-elo { font-size: 10.5px; font-weight: 800; color: #38bdf8; }
        .ranked-rules-box {
            background: rgba(8, 13, 24, 0.82);
            border: 1px solid rgba(148, 163, 184, 0.16);
            border-radius: 10px;
            padding: 9px 11px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .ranked-rules-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .ranked-rule-chip {
            font-size: 10.5px;
            font-weight: 800;
            color: #cbd5e1;
            background: rgba(30, 41, 59, 0.72);
            border: 1px solid rgba(148, 163, 184, 0.18);
            border-radius: 6px;
            padding: 3px 7px;
        }
        .prof-ranked-strip {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 8px;
        }
        .prof-rk-card {
            background: #0c1220;
            border: 1px solid rgba(250, 204, 21, 0.22);
            border-radius: 10px;
            padding: 9px 8px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            text-align: center;
        }
        .prof-rk-card .rk-title { font-size: 10px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.4px; }
        .prof-rk-card .rk-score { font-size: 15px; font-weight: 900; color: #facc15; font-variant-numeric: tabular-nums; }
        .prof-rk-card .rk-sub { font-size: 9.5px; font-weight: 700; color: #64748b; }
        @media (max-width: 640px) {
            .ranked-mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .prof-ranked-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }
        /* Dereceli Eşleştirme Kuyruğu & Hazır Onayı & 15 sn Hazırlık Geri Sayımı */
        .ranked-queue-box {
            display: none;
            flex-direction: column;
            gap: 8px;
            padding: 11px 13px;
            border-radius: 11px;
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(99, 102, 241, 0.16));
            border: 1px solid rgba(56, 189, 248, 0.45);
        }
        .ranked-party-box {
            display: none;
            flex-direction: column;
            gap: 8px;
            padding: 11px 12px;
            border-radius: 11px;
            background: rgba(8, 13, 24, 0.86);
            border: 1px solid rgba(56, 189, 248, 0.3);
        }
        .party-head-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: wrap;
        }
        .party-code-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 3px 9px;
            border-radius: 7px;
            background: rgba(14, 165, 233, 0.16);
            border: 1px solid rgba(56, 189, 248, 0.42);
            color: #7dd3fc;
            font-size: 11.5px;
            font-weight: 900;
            letter-spacing: 1px;
        }
        .party-slots-list {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 6px;
        }
        .party-member-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
            padding: 6px 9px;
            border-radius: 8px;
            background: rgba(15, 23, 42, 0.88);
            border: 1px solid rgba(148, 163, 184, 0.22);
            font-size: 11.5px;
            font-weight: 800;
            color: #f8fafc;
        }
        .party-slot-empty {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 6px 9px;
            border-radius: 8px;
            background: rgba(15, 23, 42, 0.42);
            border: 1px dashed rgba(148, 163, 184, 0.22);
            font-size: 11px;
            font-weight: 700;
            color: #64748b;
        }
        .ranked-queue-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            font-size: 12.5px;
            font-weight: 900;
            color: #f8fafc;
        }
        .ranked-queue-pulse {
            display: inline-block;
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: #38bdf8;
            box-shadow: 0 0 10px #38bdf8;
            margin-right: 6px;
            animation: rkPulse 1.1s infinite ease-in-out;
        }
        @keyframes rkPulse {
            0%, 100% { transform: scale(0.9); opacity: 0.6; }
            50% { transform: scale(1.25); opacity: 1; }
        }
        .ready-modal {
            width: min(440px, calc(100vw - 24px));
            background: linear-gradient(180deg, #0d1528 0%, #080d1a 100%);
            border: 1.5px solid rgba(250, 204, 21, 0.55);
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 28px 70px rgba(0, 0, 0, 0.88), 0 0 36px rgba(250, 204, 21, 0.16);
            display: flex;
            flex-direction: column;
            gap: 14px;
            text-align: center;
        }
        .ready-timer-bar {
            height: 7px;
            border-radius: 999px;
            background: rgba(30, 41, 59, 0.9);
            overflow: hidden;
        }
        .ready-timer-fill {
            height: 100%;
            width: 100%;
            background: linear-gradient(90deg, #10b981, #facc15);
            transition: width 0.35s linear;
        }
        .ready-players-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 7px;
        }
        .ready-player-chip {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 5px 10px;
            border-radius: 999px;
            background: rgba(15, 23, 42, 0.88);
            border: 1px solid rgba(148, 163, 184, 0.28);
            color: #cbd5e1;
            font-size: 11.5px;
            font-weight: 800;
        }
        .ready-player-chip.is-ready {
            background: rgba(16, 185, 129, 0.18);
            border-color: rgba(52, 211, 153, 0.65);
            color: #6ee7b7;
        }
        .ranked-prep-banner {
            position: fixed;
            top: 58px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 27, 75, 0.94));
            border: 1.5px solid #facc15;
            border-radius: 12px;
            padding: 9px 16px;
            display: none;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            text-align: center;
            gap: 6px 10px;
            width: max-content;
            max-width: calc(100vw - 16px);
            box-sizing: border-box;
            font-size: 13px;
            font-weight: 900;
            color: #fef08a;
            box-shadow: 0 12px 34px rgba(0, 0, 0, 0.72), 0 0 22px rgba(250, 204, 21, 0.2);
            z-index: 950;
            pointer-events: none;
            white-space: normal;
            line-height: 1.3;
        }
        @media (max-width: 640px) {
            .ranked-prep-banner {
                top: 66px;
                padding: 7px 11px;
                font-size: 11.5px;
                gap: 3px 6px;
                border-radius: 10px;
            }
        }
        .profile-avatar {
            width: 66px;
            height: 66px;
            border-radius: 50%;
            background: linear-gradient(135deg, #0284c7, #6366f1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            font-weight: 900;
            color: #fff;
            overflow: hidden;
            flex-shrink: 0;
            border: 3px solid rgba(56, 189, 248, 0.75);
            box-shadow: 0 0 18px rgba(56, 189, 248, 0.28);
            position: relative;
        }
        .profile-avatar.frame-default { border-color: rgba(56, 189, 248, 0.75); box-shadow: 0 0 16px rgba(56, 189, 248, 0.28); }
        .profile-avatar.frame-silver { border-color: #cbd5e1; box-shadow: 0 0 18px rgba(203, 213, 225, 0.45); }
        .profile-avatar.frame-gold { border-color: #f59e0b; box-shadow: 0 0 22px rgba(245, 158, 11, 0.55); }
        .profile-avatar.frame-emerald { border-color: #10b981; box-shadow: 0 0 22px rgba(16, 185, 129, 0.55); }
        .profile-avatar.frame-crimson { border-color: #ef4444; box-shadow: 0 0 22px rgba(239, 68, 68, 0.55); }
        .profile-avatar.frame-cyber { border-color: #a855f7; box-shadow: 0 0 24px rgba(168, 85, 247, 0.65); }
        .profile-avatar.frame-obsidian { border-color: #64748b; box-shadow: 0 0 22px rgba(15, 23, 42, 0.9), inset 0 0 12px rgba(148, 163, 184, 0.35); }
        .profile-avatar.frame-inferno { border-color: #f97316; box-shadow: 0 0 24px rgba(249, 115, 22, 0.72), 0 0 8px rgba(239, 68, 68, 0.6); }
        .profile-avatar.frame-imperial { border-color: #fde047; box-shadow: 0 0 26px rgba(250, 204, 21, 0.75), 0 0 10px rgba(245, 158, 11, 0.65); }
        .profile-avatar.frame-nuclear { border-color: #84cc16; box-shadow: 0 0 24px rgba(132, 204, 22, 0.72), 0 0 8px rgba(34, 197, 94, 0.55); }
        .profile-avatar.frame-neon_cyan { border-color: #22d3ee; box-shadow: 0 0 24px rgba(34, 211, 238, 0.75), inset 0 0 10px rgba(6, 182, 212, 0.35); }
        .profile-avatar.frame-royal_violet { border-color: #c084fc; box-shadow: 0 0 24px rgba(168, 85, 247, 0.72), 0 0 10px rgba(109, 40, 217, 0.55); }
        .profile-avatar.frame-magma { border-color: #fb923c; box-shadow: 0 0 26px rgba(239, 68, 68, 0.75), 0 0 10px rgba(251, 146, 60, 0.7); }
        .profile-avatar.frame-aurora { border-color: #34d399; box-shadow: 0 0 24px rgba(52, 211, 153, 0.7), 0 0 14px rgba(56, 189, 248, 0.6); }
        .profile-avatar.frame-celestial { border-color: #fef08a; box-shadow: 0 0 28px rgba(254, 240, 138, 0.85), 0 0 12px rgba(245, 158, 11, 0.75); }
        .profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
        .profile-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
        .profile-name-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
        .profile-clan-pill {
            display: inline-flex;
            align-items: center;
            padding: 2px 7px;
            border-radius: 6px;
            background: rgba(245, 158, 11, 0.16);
            border: 1px solid rgba(245, 158, 11, 0.45);
            color: #fbbf24;
            font-size: 11px;
            font-weight: 900;
            letter-spacing: 0.4px;
        }
        .profile-title-pill {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 2px 8px;
            border-radius: 999px;
            background: rgba(56, 189, 248, 0.14);
            border: 1px solid rgba(56, 189, 248, 0.35);
            color: #7dd3fc;
            font-size: 10.5px;
            font-weight: 800;
        }
        .profile-bio-line {
            font-size: 11.5px;
            color: #cbd5e1;
            font-style: italic;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .profile-submeta {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            font-size: 11px;
            color: #94a3b8;
        }
        .profile-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 11px;
            font-weight: 700;
            color: #94a3b8;
        }
        .profile-badge.connected { color: #4ade80; }
        .profile-elo-pill {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            justify-content: center;
            padding: 8px 12px;
            border-radius: 12px;
            background: rgba(7, 11, 22, 0.65);
            border: 1px solid rgba(251, 191, 36, 0.3);
            flex-shrink: 0;
            min-width: 96px;
        }
        .profile-elo-pill .elo-league { font-size: 10.5px; font-weight: 800; color: #fbbf24; }
        .profile-elo-pill .elo-score { font-size: 18px; font-weight: 900; color: #f8fafc; line-height: 1.15; }
        .profile-xp-wrap {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .profile-xp-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 11px;
            font-weight: 800;
            color: #cbd5e1;
        }
        .profile-xp-bar {
            height: 8px;
            border-radius: 999px;
            background: rgba(15, 23, 42, 0.9);
            border: 1px solid rgba(148, 163, 184, 0.18);
            overflow: hidden;
        }
        .profile-xp-fill {
            height: 100%;
            border-radius: 999px;
            background: linear-gradient(90deg, #0ea5e9, #6366f1, #a855f7);
            transition: width 0.35s ease;
        }
        .profile-tabs {
            display: flex;
            gap: 6px;
            padding: 10px 16px 8px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.14);
            overflow-x: auto;
            flex-shrink: 0;
            scrollbar-width: none;
        }
        .profile-tabs::-webkit-scrollbar { display: none; }
        .profile-tab-btn {
            border: 1px solid rgba(148, 163, 184, 0.2);
            background: rgba(15, 23, 42, 0.65);
            color: #94a3b8;
            font-size: 12px;
            font-weight: 800;
            padding: 7px 12px;
            border-radius: 10px;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.15s ease;
        }
        .profile-tab-btn:hover { color: #e2e8f0; border-color: rgba(56, 189, 248, 0.4); }
        .profile-tab-btn.active {
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.26), rgba(99, 102, 241, 0.26));
            border-color: rgba(56, 189, 248, 0.72);
            color: #f8fafc;
            box-shadow: 0 4px 14px rgba(14, 165, 233, 0.2);
        }
        .profile-body {
            padding: 14px 16px 18px;
            overflow-y: auto;
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }
        .profile-tab-panel { display: none; flex-direction: column; gap: 14px; }
        .profile-tab-panel.active { display: flex; }
        .profile-sec-title {
            font-size: 11px;
            font-weight: 900;
            color: #94a3b8;
            letter-spacing: 0.6px;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        .profile-highlight-strip {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px;
        }
        .profile-hi-card {
            background: rgba(15, 23, 42, 0.85);
            border: 1px solid rgba(56, 189, 248, 0.2);
            border-radius: 11px;
            padding: 9px 10px;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .profile-hi-card span { font-size: 10px; font-weight: 700; color: #94a3b8; }
        .profile-hi-card strong { font-size: 15px; font-weight: 900; color: #f8fafc; }
        .profile-stats-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px;
        }
        .profile-stat-card {
            background: rgba(15, 23, 42, 0.72);
            border: 1px solid rgba(148, 163, 184, 0.14);
            border-radius: 10px;
            padding: 9px 11px;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }
        .profile-stat-card span { font-size: 10.5px; font-weight: 700; color: #94a3b8; }
        .profile-stat-card strong { font-size: 15px; font-weight: 900; color: #f8fafc; }
        .profile-split-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }
        .profile-box {
            background: rgba(15, 23, 42, 0.72);
            border: 1px solid rgba(148, 163, 184, 0.15);
            border-radius: 12px;
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 9px;
            min-width: 0;
        }
        .profile-box .mp-input {
            width: 100%;
            min-width: 0;
            box-sizing: border-box;
        }
        .profile-identity-row {
            display: grid;
            grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
            gap: 8px;
        }
        .profile-identity-field {
            display: flex;
            flex-direction: column;
            gap: 5px;
            min-width: 0;
        }
        .profile-field-label {
            font-size: 10.5px;
            font-weight: 800;
            color: #94a3b8;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .playstyle-row { display: flex; flex-direction: column; gap: 4px; }
        .playstyle-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: #cbd5e1; }
        .playstyle-track { height: 7px; border-radius: 999px; background: rgba(7, 11, 22, 0.85); overflow: hidden; }
        .playstyle-fill { height: 100%; border-radius: 999px; transition: width 0.35s ease; }
        .match-list { display: flex; flex-direction: column; gap: 8px; }
        .match-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 11px;
            background: rgba(15, 23, 42, 0.76);
            border: 1px solid rgba(148, 163, 184, 0.14);
            border-left: 4px solid #64748b;
        }
        .match-item.win { border-left-color: #22c55e; background: linear-gradient(90deg, rgba(34, 197, 94, 0.08), rgba(15, 23, 42, 0.78) 40%); }
        .match-item.loss { border-left-color: #ef4444; background: linear-gradient(90deg, rgba(239, 68, 68, 0.08), rgba(15, 23, 42, 0.78) 40%); }
        .match-left { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
        .match-title-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; font-weight: 900; color: #f8fafc; }
        .match-chip {
            font-size: 10px;
            font-weight: 800;
            padding: 2px 6px;
            border-radius: 6px;
            background: rgba(148, 163, 184, 0.14);
            color: #cbd5e1;
        }
        .match-chip.mp { background: rgba(56, 189, 248, 0.18); color: #7dd3fc; }
        .match-sub { font-size: 11px; color: #94a3b8; }
        .match-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; font-size: 11.5px; font-weight: 800; }
        .ach-summary-strip {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px;
        }
        .ach-summary-card {
            background: rgba(15, 23, 42, 0.76);
            border: 1px solid rgba(148, 163, 184, 0.16);
            border-radius: 10px;
            padding: 8px 10px;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .ach-summary-card span { font-size: 10px; font-weight: 800; color: #94a3b8; }
        .ach-summary-card strong { font-size: 14px; font-weight: 900; color: #f8fafc; }
        .ach-filters {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }
        .ach-filter-btn {
            padding: 5px 9px;
            border-radius: 8px;
            border: 1px solid rgba(148, 163, 184, 0.22);
            background: rgba(15, 23, 42, 0.72);
            color: #94a3b8;
            font-size: 11px;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.12s ease;
        }
        .ach-filter-btn:hover { color: #e2e8f0; border-color: rgba(56, 189, 248, 0.45); }
        .ach-filter-btn.active { background: rgba(245, 158, 11, 0.2); border-color: #fbbf24; color: #fef3c7; }
        .ach-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 9px;
        }
        .ach-card {
            background: rgba(15, 23, 42, 0.72);
            border: 1px solid rgba(148, 163, 184, 0.16);
            border-radius: 12px;
            padding: 11px 12px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            opacity: 0.82;
        }
        .ach-card.unlocked {
            opacity: 1;
            border-color: rgba(251, 191, 36, 0.5);
            background: linear-gradient(135deg, rgba(251, 191, 36, 0.09), rgba(15, 23, 42, 0.85));
        }
        .ach-top { display: flex; align-items: center; gap: 9px; }
        .ach-icon {
            width: 34px;
            height: 34px;
            border-radius: 9px;
            background: rgba(30, 41, 59, 0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 17px;
            flex-shrink: 0;
        }
        .ach-card.unlocked .ach-icon { background: rgba(245, 158, 11, 0.2); border: 1px solid rgba(251, 191, 36, 0.45); }
        .ach-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
        .ach-name-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
        .ach-name { font-size: 12.5px; font-weight: 900; color: #f8fafc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .ach-tier-badge {
            font-size: 9px;
            font-weight: 900;
            padding: 1.5px 6px;
            border-radius: 999px;
            text-transform: uppercase;
            letter-spacing: 0.35px;
            flex-shrink: 0;
        }
        .ach-tier-badge.bronze { background: rgba(251, 146, 60, 0.16); color: #fdba74; border: 1px solid rgba(251, 146, 60, 0.35); }
        .ach-tier-badge.silver { background: rgba(203, 213, 225, 0.16); color: #e2e8f0; border: 1px solid rgba(203, 213, 225, 0.35); }
        .ach-tier-badge.gold { background: rgba(250, 204, 21, 0.18); color: #fde047; border: 1px solid rgba(250, 204, 21, 0.45); }
        .ach-tier-badge.legend { background: rgba(168, 85, 247, 0.22); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.5); }
        .ach-desc { font-size: 10.5px; color: #94a3b8; }
        .ach-bar { height: 6px; border-radius: 999px; background: rgba(7, 11, 22, 0.85); overflow: hidden; }
        .ach-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #38bdf8, #f59e0b); }
        .ach-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; color: #94a3b8; flex-wrap: wrap; }
        .ach-rewards { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 1px; }
        .ach-reward-chip {
            font-size: 9.5px;
            font-weight: 800;
            padding: 2px 6px;
            border-radius: 6px;
            background: rgba(30, 41, 59, 0.85);
            border: 1px solid rgba(148, 163, 184, 0.2);
            color: #94a3b8;
        }
        .ach-card.unlocked .ach-reward-chip.xp { background: rgba(14, 165, 233, 0.16); border-color: rgba(56, 189, 248, 0.4); color: #7dd3fc; }
        .ach-card.unlocked .ach-reward-chip.title { background: rgba(245, 158, 11, 0.16); border-color: rgba(251, 191, 36, 0.45); color: #fde047; }
        .ach-card.unlocked .ach-reward-chip.emblem { background: rgba(16, 185, 129, 0.16); border-color: rgba(52, 211, 153, 0.45); color: #6ee7b7; }
        .ach-card.unlocked .ach-reward-chip.frame { background: rgba(168, 85, 247, 0.18); border-color: rgba(192, 132, 252, 0.5); color: #e9d5ff; }
        .lb-filters { display: flex; gap: 6px; flex-wrap: wrap; }
        .lb-filter-btn {
            padding: 5px 10px;
            border-radius: 8px;
            border: 1px solid rgba(148, 163, 184, 0.22);
            background: rgba(15, 23, 42, 0.72);
            color: #94a3b8;
            font-size: 11px;
            font-weight: 800;
            cursor: pointer;
        }
        .lb-filter-btn.active { background: rgba(56, 189, 248, 0.22); border-color: #38bdf8; color: #f8fafc; }
        .lb-list { display: flex; flex-direction: column; gap: 6px; }
        .lb-list .lb-row {
            display: grid;
            grid-template-columns: 34px 1fr auto;
            align-items: center;
            gap: 10px;
            padding: 8px 11px;
            border-radius: 10px;
            background: rgba(15, 23, 42, 0.74);
            border: 1px solid rgba(148, 163, 184, 0.14);
        }
        .lb-list .lb-row.me { border-color: rgba(56, 189, 248, 0.65); background: rgba(14, 165, 233, 0.12); }
        .lb-rank { font-size: 13px; font-weight: 900; text-align: center; color: #94a3b8; }
        .lb-rank.top1 { color: #fbbf24; font-size: 15px; }
        .lb-rank.top2 { color: #e2e8f0; font-size: 14px; }
        .lb-rank.top3 { color: #fb923c; font-size: 14px; }
        .lb-player { display: flex; align-items: center; gap: 8px; min-width: 0; }
        .lb-mini-av {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: rgba(30, 41, 59, 0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: 900;
            color: #fff;
            overflow: hidden;
            flex-shrink: 0;
            border: 1.5px solid rgba(56, 189, 248, 0.45);
        }
        .lb-mini-av img { width: 100%; height: 100%; object-fit: cover; }
        .lb-val { text-align: right; font-size: 12px; font-weight: 900; color: #f8fafc; white-space: nowrap; }
        .lb-val small { display: block; font-size: 10px; font-weight: 700; color: #94a3b8; }
        .picker-grid { display: flex; flex-wrap: wrap; gap: 7px; }
        .picker-chip {
            padding: 6px 10px;
            border-radius: 9px;
            border: 1px solid rgba(148, 163, 184, 0.22);
            background: rgba(15, 23, 42, 0.78);
            color: #e2e8f0;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.12s ease;
        }
        .picker-chip.active { border-color: #38bdf8; background: rgba(14, 165, 233, 0.24); color: #fff; box-shadow: 0 0 10px rgba(56, 189, 248, 0.25); }
        .picker-chip.locked { opacity: 0.42; cursor: not-allowed; }
        .google-signin-btn {
            width: 100%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 10px 14px;
            border-radius: 10px;
            border: 1px solid rgba(226, 232, 240, 0.25);
            background: #ffffff;
            color: #0f172a;
            font-size: 13px;
            font-weight: 800;
            cursor: pointer;
            transition: transform 0.12s ease, box-shadow 0.15s ease;
        }
        .google-signin-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); }
        .profile-empty {
            text-align: center;
            padding: 24px 16px;
            border-radius: 12px;
            background: rgba(15, 23, 42, 0.55);
            border: 1px dashed rgba(148, 163, 184, 0.22);
            color: #94a3b8;
            font-size: 12px;
            line-height: 1.5;
        }
        @media (max-width: 640px) {
            .profile-modal { width: calc(100vw - 12px); max-height: 94vh; border-radius: 14px; }
            .profile-banner { margin: 10px 10px 0; padding: 12px; }
            .profile-hero { flex-wrap: wrap; }
            .profile-elo-pill { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; padding: 6px 10px; }
            .profile-highlight-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .profile-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .stats-pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .stats-mode-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .stats-winrate-card { padding: 12px; }
            .stats-wr-counters { width: 100%; }
            .stats-table thead th, .stats-table tbody td { padding: 8px 8px; font-size: 11.5px; }
            .profile-split-grid { grid-template-columns: 1fr; }
            .profile-identity-row { grid-template-columns: 1fr; }
            .ach-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .ach-grid { grid-template-columns: 1fr; }
            .profile-tabs { padding: 8px 10px; }
            .profile-body { padding: 10px 10px 16px; }
        }

        /* ==========================================
           OYUN MAĞAZASI (STORE) STİLLERİ
           ========================================== */
        .lobby-header-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }
        .lobby-store-btn {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 6px 11px;
            border-radius: 999px;
            border: 1px solid rgba(250, 204, 21, 0.45);
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(15, 23, 42, 0.86));
            color: #fef3c7;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
            transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
        }
        .lobby-store-btn:hover {
            transform: translateY(-1px);
            border-color: #fbbf24;
            box-shadow: 0 6px 18px rgba(245, 158, 11, 0.25);
        }
        .lobby-coin-pill {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            padding: 2px 7px;
            border-radius: 999px;
            background: rgba(2, 6, 23, 0.72);
            border: 1px solid rgba(251, 191, 36, 0.35);
            color: #fde047;
            font-size: 11px;
            font-weight: 900;
            font-variant-numeric: tabular-nums;
        }
        .store-modal {
            width: min(820px, calc(100vw - 24px));
            max-height: 90vh;
            background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(7, 11, 22, 0.99));
            border: 1px solid rgba(250, 204, 21, 0.32);
            border-radius: 18px;
            box-shadow: 0 28px 80px rgba(0, 0, 0, 0.78);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .store-balance-pill {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px 11px;
            border-radius: 999px;
            background: rgba(245, 158, 11, 0.16);
            border: 1px solid rgba(251, 191, 36, 0.45);
            color: #fde047;
            font-size: 12px;
            font-weight: 800;
        }
        .store-info-banner {
            margin: 10px 14px 0;
            padding: 8px 12px;
            border-radius: 10px;
            background: rgba(14, 165, 233, 0.1);
            border: 1px solid rgba(56, 189, 248, 0.25);
            color: #cbd5e1;
            font-size: 11.5px;
            line-height: 1.45;
        }
        .store-body {
            gap: 12px;
        }
        .store-eq-bar {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
        }
        .store-eq-chip {
            background: rgba(15, 23, 42, 0.78);
            border: 1px solid rgba(148, 163, 184, 0.18);
            border-radius: 10px;
            padding: 8px 10px;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }
        .store-eq-slot { font-size: 10px; font-weight: 800; color: #94a3b8; }
        .store-eq-val-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
        .store-eq-val-row strong { font-size: 12px; font-weight: 900; color: #f8fafc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .store-reset-mini {
            background: rgba(148, 163, 184, 0.16);
            border: 1px solid rgba(148, 163, 184, 0.28);
            color: #cbd5e1;
            border-radius: 6px;
            padding: 1px 6px;
            font-size: 11px;
            font-weight: 800;
            cursor: pointer;
        }
        .store-fx-preview-box {
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 10px 12px;
            border-radius: 12px;
            background: rgba(7, 11, 22, 0.9);
            border: 1px solid rgba(56, 189, 248, 0.38);
        }
        .store-fx-preview-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 12px;
            font-weight: 900;
            color: #7dd3fc;
        }
        #storeFxPreviewCanvas {
            width: 100%;
            height: 140px;
            border-radius: 9px;
            border: 1px solid rgba(148, 163, 184, 0.16);
            display: block;
        }
        .store-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }
        .store-card {
            background: rgba(15, 23, 42, 0.78);
            border: 1px solid rgba(148, 163, 184, 0.18);
            border-radius: 13px;
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 9px;
            transition: border-color 0.15s ease, transform 0.12s ease;
        }
        .store-card:hover { border-color: rgba(56, 189, 248, 0.45); transform: translateY(-1px); }
        .store-card.equipped {
            border-color: rgba(34, 197, 94, 0.65);
            background: linear-gradient(135deg, rgba(34, 197, 94, 0.09), rgba(15, 23, 42, 0.88));
        }
        .store-card.rarity-legendary { border-color: rgba(251, 191, 36, 0.35); }
        .store-card-top { display: flex; align-items: center; gap: 10px; }
        .store-item-icon {
            width: 42px;
            height: 42px;
            border-radius: 11px;
            background: rgba(30, 41, 59, 0.9);
            border: 1px solid rgba(148, 163, 184, 0.22);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }
        .store-item-icon.fx-orb { border-radius: 50%; border-color: rgba(255, 255, 255, 0.35); }
        .store-card-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
        .store-card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
        .store-card-name { font-size: 13px; font-weight: 900; color: #f8fafc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .store-rarity-badge {
            font-size: 9.5px;
            font-weight: 900;
            padding: 1.5px 6px;
            border-radius: 999px;
            border: 1px solid;
            text-transform: uppercase;
            flex-shrink: 0;
        }
        .store-slot-tag {
            font-size: 10px;
            font-weight: 800;
            color: #94a3b8;
        }
        .store-card-desc {
            font-size: 11px;
            color: #94a3b8;
            line-height: 1.4;
            flex: 1;
        }
        .store-card-actions {
            display: flex;
            align-items: center;
            gap: 7px;
            margin-top: 2px;
        }
        .store-preview-btn {
            padding: 7px 10px;
            border-radius: 9px;
            border: 1px solid rgba(56, 189, 248, 0.35);
            background: rgba(14, 165, 233, 0.14);
            color: #7dd3fc;
            font-size: 11.5px;
            font-weight: 800;
            cursor: pointer;
            white-space: nowrap;
        }
        .store-preview-btn:hover { background: rgba(14, 165, 233, 0.24); }
        .store-act-btn {
            flex: 1;
            padding: 7px 10px;
            border-radius: 9px;
            border: 1px solid transparent;
            font-size: 12px;
            font-weight: 900;
            cursor: pointer;
            transition: opacity 0.12s ease, transform 0.12s ease;
        }
        .store-act-btn.buy {
            background: linear-gradient(135deg, #f59e0b, #d97706);
            color: #0f172a;
            border-color: rgba(254, 240, 138, 0.45);
        }
        .store-act-btn.buy.cant-afford {
            background: rgba(30, 41, 59, 0.85);
            color: #94a3b8;
            border-color: rgba(148, 163, 184, 0.25);
        }
        .store-act-btn.equip {
            background: linear-gradient(135deg, #0284c7, #2563eb);
            color: #fff;
            border-color: rgba(125, 211, 252, 0.35);
        }
        .store-act-btn.equipped {
            background: rgba(34, 197, 94, 0.18);
            color: #4ade80;
            border-color: rgba(34, 197, 94, 0.45);
            cursor: default;
        }
        .profile-fx-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }
        .profile-fx-slot {
            display: flex;
            flex-direction: column;
            gap: 6px;
            min-width: 0;
            padding: 8px 9px;
            border-radius: 10px;
            background: rgba(2, 6, 23, 0.45);
            border: 1px solid rgba(148, 163, 184, 0.14);
        }
        .profile-fx-slot-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
        }
        .profile-fx-slot-label {
            font-size: 10.5px;
            font-weight: 800;
            color: #cbd5e1;
        }
        .profile-fx-eye-btn {
            padding: 2px 6px;
            border-radius: 6px;
            border: 1px solid rgba(56, 189, 248, 0.35);
            background: rgba(14, 165, 233, 0.14);
            color: #7dd3fc;
            font-size: 10px;
            font-weight: 800;
            cursor: pointer;
        }
        .profile-fx-eye-btn:hover { background: rgba(14, 165, 233, 0.25); }
        .profile-fx-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
        }
        .profile-fx-chip {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px 8px;
            border-radius: 8px;
            border: 1px solid rgba(148, 163, 184, 0.22);
            background: rgba(15, 23, 42, 0.82);
            color: #cbd5e1;
            font-size: 10.5px;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.12s ease;
        }
        .profile-fx-chip:hover { border-color: rgba(56, 189, 248, 0.5); color: #f8fafc; }
        .profile-fx-chip.active {
            border-color: #38bdf8;
            background: rgba(14, 165, 233, 0.22);
            color: #fff;
            box-shadow: 0 0 10px rgba(56, 189, 248, 0.22);
        }
        .fx-mini-orb {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            flex-shrink: 0;
            border: 1px solid rgba(255, 255, 255, 0.35);
            display: inline-block;
        }
        .fx-flag-mini {
            width: 18px;
            height: 12px;
            border-radius: 3px;
            flex-shrink: 0;
            border: 1px solid rgba(255, 255, 255, 0.35);
            display: inline-block;
        }
        .store-emoji-preview {
            display: flex;
            gap: 6px;
            font-size: 18px;
            padding: 4px 8px;
            border-radius: 8px;
            background: rgba(2, 6, 23, 0.55);
            border: 1px solid rgba(148, 163, 184, 0.14);
            width: fit-content;
        }
        /* Profil Banner Temaları */
        .profile-banner.banner-cyber {
            background: linear-gradient(135deg, rgba(6, 182, 212, 0.24), rgba(30, 58, 138, 0.52) 55%, rgba(15, 23, 42, 0.96)) !important;
            border-color: rgba(34, 211, 238, 0.55) !important;
        }
        .profile-banner.banner-crimson {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.28), rgba(127, 29, 29, 0.52) 55%, rgba(15, 23, 42, 0.96)) !important;
            border-color: rgba(248, 113, 113, 0.55) !important;
        }
        .profile-banner.banner-nuclear {
            background: linear-gradient(135deg, rgba(132, 204, 22, 0.24), rgba(20, 83, 45, 0.52) 55%, rgba(15, 23, 42, 0.96)) !important;
            border-color: rgba(163, 230, 53, 0.55) !important;
        }
        .profile-banner.banner-imperial {
            background: linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(88, 28, 135, 0.52) 55%, rgba(15, 23, 42, 0.96)) !important;
            border-color: rgba(253, 224, 71, 0.6) !important;
        }
        /* Parlayan İsim Renkleri */
        .namefx-gold { color: #fde047 !important; text-shadow: 0 0 12px rgba(250, 204, 21, 0.7); }
        .namefx-cyan { color: #22d3ee !important; text-shadow: 0 0 12px rgba(34, 211, 238, 0.7); }
        .namefx-crimson { color: #f87171 !important; text-shadow: 0 0 12px rgba(239, 68, 68, 0.72); }
        .namefx-cosmic { color: #e879f9 !important; text-shadow: 0 0 12px rgba(192, 132, 252, 0.75); }
        .profile-fx-preview-box { padding: 8px 10px; }
        #profileFxPreviewCanvas {
            width: 100%;
            height: 105px;
            border-radius: 8px;
            border: 1px solid rgba(148, 163, 184, 0.16);
            display: block;
        }
        @media (max-width: 640px) {
            .store-modal { width: calc(100vw - 12px); max-height: 94vh; border-radius: 14px; }
            .store-grid { grid-template-columns: 1fr; }
            .store-eq-bar { grid-template-columns: 1fr; }
            .profile-fx-grid { grid-template-columns: 1fr; }
            .lobby-store-btn { padding: 6px 9px; font-size: 11.5px; }
        }

        .spawn-prompt-banner {
            position: fixed;
            top: 14px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(13, 19, 33, 0.94);
            border: 1.5px solid #38bdf8;
            border-radius: 10px;
            padding: 8px 14px;
            display: none;
            align-items: center;
            gap: 12px;
            font-size: 13px;
            font-weight: 800;
            color: #f8fafc;
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
            z-index: 900;
        }

        /* Sağ Üst Aktif Saldırılar (Geri Çağırma) Paneli */
        .active-attacks-panel {
            position: fixed;
            top: 64px;
            right: 16px;
            width: 215px;
            background: rgba(13, 19, 33, 0.88);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(56, 189, 248, 0.28);
            border-radius: 8px;
            padding: 7px 9px;
            font-size: 11px;
            z-index: 16;
            box-shadow: 0 10px 25px rgba(0,0,0,0.5);
            display: none;
        }
        .aa-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #94a3b8;
            font-weight: 800;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            padding-bottom: 4px;
            margin-bottom: 4px;
            font-size: 10.5px;
        }
        .aa-list {
            display: flex;
            flex-direction: column;
            gap: 4px;
            max-height: 180px;
            overflow-y: auto;
        }
        .aa-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
            background: rgba(30, 41, 59, 0.72);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 5px;
            padding: 3px 6px;
        }
        .aa-info {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }
        .aa-target {
            color: #f8fafc;
            font-weight: 700;
            font-size: 10.5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .aa-troops {
            color: #38bdf8;
            font-weight: 800;
            font-size: 9.5px;
        }
        .aa-cancel-btn {
            background: rgba(239, 68, 68, 0.85);
            color: #fff;
            border: none;
            border-radius: 4px;
            width: 20px;
            height: 20px;
            padding: 0;
            font-size: 11px;
            font-weight: 900;
            line-height: 20px;
            text-align: center;
            cursor: pointer;
            flex-shrink: 0;
        }
        .aa-cancel-btn:hover { background: #dc2626; transform: scale(1.06); }
        /* ==========================================
           DOKUNMATİK / TELEFON UYUMU
           ========================================== */
        html, body { overscroll-behavior: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
        canvas { touch-action: none; }

        /* Harita Yakınlaştırma / Uzaklaştırma Kontrolleri */
        .zoom-controls {
            position: fixed;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            background: rgba(13, 19, 33, 0.88);
            backdrop-filter: blur(10px);
            padding: 5px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
            z-index: 22;
        }
        .zoom-btn {
            width: 34px;
            height: 34px;
            border: none;
            border-radius: 7px;
            background: rgba(30, 41, 59, 0.9);
            color: #f8fafc;
            font-size: 18px;
            font-weight: 800;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.15s, transform 0.1s, opacity 0.15s;
        }
        .zoom-btn:hover:not(:disabled) { background: #334155; }
        .zoom-btn:active:not(:disabled) { transform: scale(0.93); }
        .zoom-btn:disabled { opacity: 0.38; cursor: default; }
        .zoom-level-btn {
            width: 34px;
            height: 24px;
            border: none;
            border-radius: 6px;
            background: rgba(15, 23, 42, 0.85);
            color: #38bdf8;
            font-size: 10.5px;
            font-weight: 800;
            cursor: pointer;
            padding: 0;
        }
        .zoom-level-btn:hover { background: #1e293b; }

        #rotateHint {
            position: fixed;
            inset: 0;
            background: rgba(4, 8, 16, 0.94);
            color: #f8fafc;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            text-align: center;
            font-size: 16px;
            font-weight: 800;
            padding: 24px;
            z-index: 3000;
        }
        #rotateHint small { font-size: 12px; font-weight: 600; color: #94a3b8; }
        @media (orientation: portrait) and (max-width: 760px) {
            #rotateHint { display: none; }
        }

        .lb-header, .aa-header {
            cursor: pointer;
            user-select: none;
        }
        .panel-toggle-caret {
            display: none;
            font-size: 10px;
            color: #38bdf8;
            margin-left: 4px;
        }
        .speed-btn.clean-active {
            background: #0ea5e9;
            color: #fff;
            border-color: #7dd3fc;
            box-shadow: 0 0 8px rgba(14, 165, 233, 0.45);
        }

        @media (pointer: coarse), (max-width: 760px) {
            .tooltip-card { display: none !important; }

            /* Mobil GPU performans optimizasyonu: tam ekran canlı canvas üzerindeki blur katmanlarını kapat */
            .hover-country-bar,
            .hud,
            .bottom-dock,
            .leaderboard,
            .active-attacks-panel,
            .zoom-controls,
            .setup-bar,
            .struct-popover,
            .diplo-overlay {
                backdrop-filter: none !important;
                -webkit-backdrop-filter: none !important;
            }
            .hover-country-bar, .hud, .bottom-dock, .leaderboard, .active-attacks-panel, .zoom-controls {
                background: rgba(13, 19, 33, 0.94);
            }

            .panel-toggle-caret { display: inline-block; }

            .hover-country-bar {
                top: 6px;
                width: calc(100vw - 14px);
                min-height: 0;
                padding: 5px 9px;
                flex-direction: column;
                align-items: stretch;
                gap: 4px;
                border-radius: 9px;
                font-size: 11px;
            }
            .hc-identity { min-width: 0; gap: 6px; overflow: hidden; }
            .hc-name { font-size: 12.5px; flex-shrink: 0; }
            .hc-tag { font-size: 10px; padding: 2px 6px; overflow: hidden; text-overflow: ellipsis; }
            .hc-color-dot { width: 12px; height: 12px; }
            .hc-stats-row { flex-wrap: nowrap; overflow-x: auto; gap: 5px; justify-content: flex-start; scrollbar-width: none; }
            .hc-stats-row::-webkit-scrollbar { display: none; }
            .hc-pill { font-size: 10.5px; padding: 2px 6px; }

            .setup-bar {
                top: 52px;
                width: calc(100vw - 14px);
                flex-direction: column;
                align-items: flex-start;
                gap: 6px;
                padding: 7px 10px;
                font-size: 11.5px;
                max-height: calc(100vh - 140px);
                overflow-y: auto;
            }
            .setup-group { flex-wrap: wrap; gap: 6px; }
            .setup-input { width: 52px; padding: 4px 6px; font-size: 12px; }
            .setup-select { padding: 4px 7px; font-size: 12px; }

            .leaderboard { top: 68px !important; left: 8px; width: 150px; padding: 5px 6px; font-size: 9.5px; }
            .leaderboard.mobile-collapsed {
                width: auto;
                padding: 5px 9px;
                border-radius: 8px;
            }
            .leaderboard.mobile-collapsed .lb-header {
                border-bottom: none;
                padding-bottom: 0;
                margin-bottom: 0;
                gap: 4px;
            }
            .leaderboard.mobile-collapsed .lb-header-sub,
            .leaderboard.mobile-collapsed #lb-content,
            .leaderboard.mobile-collapsed .lb-row,
            .leaderboard.mobile-collapsed .lb-ellipsis {
                display: none;
            }

            .active-attacks-panel { top: 68px; right: 8px; width: 172px; padding: 6px 8px; font-size: 10.5px; }
            .active-attacks-panel.mobile-collapsed {
                width: auto;
                padding: 5px 9px;
                border-radius: 999px;
            }
            .active-attacks-panel.mobile-collapsed .aa-header {
                border-bottom: none;
                padding-bottom: 0;
                margin-bottom: 0;
                gap: 5px;
            }
            .active-attacks-panel.mobile-collapsed #aaList {
                display: none;
            }
            .aa-header { font-size: 10.5px; }
            .aa-target { font-size: 10.5px; }
            .aa-troops { font-size: 10px; }
            .aa-cancel-btn { width: 24px; height: 24px; line-height: 24px; font-size: 12px; }

            .hud {
                bottom: 52px;
                width: calc(100vw - 10px);
                max-width: calc(100vw - 10px);
                box-sizing: border-box;
                flex-wrap: wrap;
                justify-content: center;
                gap: 3px;
                padding: 3px 5px;
                border-radius: 8px;
            }
            .hud-left, .hud-right {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                align-items: center;
                gap: 3px;
                max-width: 100%;
            }
            .income-badge, .gold-badge { padding: 2px 5px; font-size: 9.5px; min-width: 0; }
            .attack-ratio-panel { padding: 2px 4px; gap: 3px; font-size: 9.5px; }
            .attack-ratio-panel input[type="range"] { width: 42px !important; }
            .troop-progress-container { width: 150px !important; min-width: 130px; height: 20px; padding: 1px 6px; }
            .troop-info-content { font-size: 9.5px; }
            #winGoalBadge { display: none; }
            #diffBadge { padding: 2px 5px; font-size: 9px; }
            .speed-controls { gap: 2px; padding: 1px; max-width: 100%; }
            .speed-btn { padding: 3px 5px; font-size: 9.5px; }

            .bottom-dock {
                bottom: 4px;
                width: calc(100vw - 10px);
                max-width: none;
                justify-content: flex-start;
                overflow-x: auto;
                gap: 3px;
                padding: 3px 5px;
                border-radius: 9px;
                scrollbar-width: none;
                touch-action: pan-x;
            }
            .bottom-dock::-webkit-scrollbar { display: none; }
            .dock-item { min-width: 44px; padding: 3px 4px; border-radius: 7px; flex-shrink: 0; }
            .dock-name { font-size: 8px; line-height: 1.05; }
            .dock-cost { font-size: 7.5px; line-height: 1; }
            .dock-shortcut { display: none; }
            .dock-count { font-size: 7.5px; top: 1px; right: 2px; }
            .dock-icon { width: 14px; height: 14px; margin: 1px 0; }

            .warn-toast { top: 52px; font-size: 10px; padding: 3px 10px; max-width: 74vw; text-align: center; }
            .diplo-offer-toast { top: 52px; font-size: 12px; padding: 7px 12px; max-width: 94vw; }
            .diplo-card { width: min(390px, 94vw); max-height: 92vh; overflow-y: auto; padding: 14px 16px; }
            .radial-btn { width: 62px; height: 62px; }
            .radial-btn .r-icon { font-size: 18px; }
            .radial-btn .r-label { font-size: 9.5px; }

            .zoom-controls { top: auto; bottom: 158px; right: 8px; transform: none; padding: 3px; gap: 3px; }
            .zoom-btn { width: 32px; height: 32px; font-size: 17px; }
            .zoom-level-btn { width: 32px; height: 20px; font-size: 9.5px; }
        }
        .naval-alert-toast {
            position: fixed;
            top: 58px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 960;
            display: flex;
            flex-direction: column;
            gap: 5px;
            align-items: center;
            pointer-events: auto;
        }
        .naval-alert-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(127, 29, 29, 0.94);
            color: #fef2f2;
            border: 1.5px solid #f87171;
            border-radius: 999px;
            padding: 6px 14px;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
            box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
            animation: navalPulse 1.3s ease-in-out infinite;
            transition: transform 0.12s ease, background 0.15s ease;
        }
        .naval-alert-btn:hover {
            transform: scale(1.04);
            background: rgba(185, 28, 28, 0.98);
        }
        @keyframes navalPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.55); }
            50% { box-shadow: 0 0 14px 4px rgba(248, 113, 113, 0.25); }
        }
        .mp-mode-tabs {
            display: inline-flex;
            gap: 4px;
            background: rgba(2, 6, 23, 0.72);
            padding: 4px;
            border-radius: 11px;
            border: 1px solid rgba(148, 163, 184, 0.14);
        }
        .mp-tab-btn {
            padding: 7px 14px;
            border: none;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
            background: transparent;
            color: #94a3b8;
            transition: all 0.16s ease;
            white-space: nowrap;
        }
        .mp-tab-btn:hover:not(.active) { color: #e2e8f0; background: rgba(30, 41, 59, 0.5); }
        .mp-tab-btn.active {
            background: linear-gradient(135deg, #0284c7, #2563eb);
            color: #fff;
            box-shadow: 0 4px 14px rgba(14, 165, 233, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25);
        }
        .lobby-profile-btn {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 5px 11px 5px 6px;
            border-radius: 999px;
            border: 1px solid rgba(56, 189, 248, 0.32);
            background: rgba(15, 23, 42, 0.88);
            color: #e2e8f0;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.16s ease;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .lobby-profile-btn:hover {
            border-color: rgba(56, 189, 248, 0.7);
            background: rgba(30, 41, 59, 0.92);
        }
        .lobby-profile-icon {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: linear-gradient(135deg, #0284c7, #6366f1);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 900;
            color: #fff;
            overflow: hidden;
            flex-shrink: 0;
        }
        .lobby-profile-icon img { width: 100%; height: 100%; object-fit: cover; }
        .lobby-accordion {
            background: rgba(15, 23, 42, 0.72);
            border: 1px solid rgba(148, 163, 184, 0.16);
            border-radius: 12px;
            overflow: hidden;
        }
        .lobby-accordion[open] {
            border-color: rgba(56, 189, 248, 0.35);
        }
        .lobby-acc-summary {
            list-style: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 10px 12px;
            cursor: pointer;
            user-select: none;
            font-size: 12px;
            font-weight: 800;
            color: #e2e8f0;
            background: rgba(15, 23, 42, 0.55);
            transition: background 0.15s ease;
        }
        .lobby-acc-summary::-webkit-details-marker { display: none; }
        .lobby-acc-summary:hover { background: rgba(30, 41, 59, 0.7); }
        .lobby-acc-right {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }
        .lobby-acc-val {
            font-size: 11px;
            font-weight: 700;
            color: #38bdf8;
            background: rgba(2, 132, 199, 0.14);
            border: 1px solid rgba(56, 189, 248, 0.28);
            padding: 2px 8px;
            border-radius: 999px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 170px;
        }
        .lobby-acc-chevron {
            color: #94a3b8;
            font-size: 11px;
            transition: transform 0.18s ease;
            flex-shrink: 0;
        }
        .lobby-accordion[open] .lobby-acc-chevron {
            transform: rotate(180deg);
            color: #38bdf8;
        }
        .lobby-acc-body {
            padding: 10px 12px 12px 12px;
            border-top: 1px solid rgba(148, 163, 184, 0.12);
        }
        .lobby-footer-cta {
            padding: 12px 18px 14px 18px;
            background: rgba(11, 17, 32, 0.92);
            border-top: 1px solid rgba(148, 163, 184, 0.14);
            flex-shrink: 0;
        }
        .lobby-footer-cta .lobby-start-btn {
            margin-top: 0;
        }
        @media (max-width: 900px) {
            .lobby-overlay {
                align-items: flex-start;
                padding: 8px;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                touch-action: pan-y;
            }
            .lobby-header {
                padding: 11px 12px;
                gap: 10px;
                flex-wrap: wrap;
                align-items: center;
            }
            .lobby-brand-wrap { order: 1; flex: 1 1 auto; min-width: 0; }
            .lobby-brand-text { min-width: 0; }
            .lobby-subtitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
            .lobby-header-actions { order: 2; margin-left: auto; gap: 6px; max-width: 100%; }
            .lobby-profile-btn { order: unset; margin-left: 0; }
            .lobby-header-right { order: 3; width: 100%; gap: 8px; }
            .lobby-mode-pill { display: none; }
            .mp-mode-tabs {
                display: grid;
                grid-template-columns: repeat(4, minmax(0, 1fr));
                width: 100%;
                gap: 4px;
                padding: 4px;
                box-sizing: border-box;
            }
            .mp-tab-btn {
                width: 100%;
                min-width: 0;
                padding: 8px 4px;
                font-size: 11px;
                text-align: center;
                overflow: hidden;
                text-overflow: ellipsis;
            }
        }
        @media (max-width: 600px) {
            .lobby-brand-wrap {
                flex: 1 1 100%;
                gap: 10px;
            }
            .lobby-logo-badge {
                width: 34px;
                height: 34px;
                border-radius: 10px;
            }
            .lobby-brand {
                font-size: 17px;
                letter-spacing: 1.5px;
            }
            .lobby-header-actions {
                width: 100%;
                margin-left: 0;
                justify-content: space-between;
                flex-wrap: wrap;
            }
            .mp-mode-tabs {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }
        .mp-panel {
            display: flex;
            flex-direction: column;
            gap: 10px;
            background: rgba(15, 23, 42, 0.65);
            border: 1px solid rgba(56, 189, 248, 0.22);
            border-radius: 12px;
            padding: 12px;
        }
        .mp-row { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
        .mp-input {
            flex: 1;
            min-width: 110px;
            background: rgba(2, 6, 23, 0.75);
            color: #f8fafc;
            border: 1px solid rgba(148, 163, 184, 0.2);
            border-radius: 9px;
            padding: 8px 11px;
            font-size: 12px;
            font-weight: 700;
            outline: none;
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }
        .mp-input:focus {
            border-color: #38bdf8;
            box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
        }
        .mp-btn {
            background: linear-gradient(135deg, #0284c7, #2563eb);
            color: #fff;
            border: 1px solid rgba(125, 211, 252, 0.22);
            border-radius: 9px;
            padding: 8px 13px;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.15s ease;
        }
        .mp-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
        .mp-btn:active { transform: translateY(0); }
        .mp-btn.green {
            background: linear-gradient(135deg, #10b981, #059669);
            border-color: rgba(110, 231, 183, 0.28);
            box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
        }
        .mp-btn.red {
            background: linear-gradient(135deg, #ef4444, #dc2626);
            border-color: rgba(252, 165, 165, 0.25);
        }
        .mp-btn.slate {
            background: rgba(51, 65, 85, 0.85);
            border-color: rgba(148, 163, 184, 0.2);
        }
        .mp-btn.slate:hover { background: rgba(71, 85, 105, 0.95); }
        .mp-room-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(14, 165, 233, 0.16);
            border: 1px solid rgba(56, 189, 248, 0.45);
            border-radius: 9px;
            padding: 5px 10px;
            font-size: 13px;
            font-weight: 900;
            color: #38bdf8;
            letter-spacing: 1px;
        }
        .mp-player-list { display: flex; flex-direction: column; gap: 5px; max-height: 150px; overflow-y: auto; }
        .mp-player-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(30, 41, 59, 0.72);
            border: 1px solid rgba(148, 163, 184, 0.1);
            padding: 7px 10px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 700;
            color: #f8fafc;
        }
        .mp-status-bar {
            font-size: 11px;
            font-weight: 700;
            color: #94a3b8;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding-bottom: 6px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.1);
        }
        .mp-public-list { display: flex; flex-direction: column; gap: 5px; max-height: 135px; overflow-y: auto; }
        .mp-public-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            background: rgba(30, 41, 59, 0.65);
            border: 1px solid rgba(148, 163, 184, 0.1);
            border-radius: 9px;
            padding: 7px 10px;
            font-size: 11.5px;
            transition: border-color 0.15s ease;
        }
        .mp-public-item:hover { border-color: rgba(56, 189, 248, 0.35); }
        .mp-public-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
        .mp-public-title { font-weight: 800; color: #f8fafc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .mp-public-sub { font-size: 10.5px; color: #94a3b8; font-weight: 600; }
        /* Yeni Özellikler: İzleyici, Yeniden Bağlanma, Desync, Takım, Grafik ve Rehber */
        .status-float-banner {
            position: fixed;
            top: 62px;
            left: 50%;
            transform: translateX(-50%);
            display: none;
            align-items: center;
            gap: 10px;
            padding: 7px 14px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 800;
            z-index: 980;
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
            backdrop-filter: blur(10px);
        }
        .spectator-banner {
            background: rgba(14, 116, 144, 0.92);
            border: 1px solid rgba(56, 189, 248, 0.7);
            color: #f0f9ff;
        }
        .reconnect-banner {
            background: rgba(180, 83, 9, 0.94);
            border: 1px solid rgba(251, 191, 36, 0.75);
            color: #fef3c7;
            z-index: 1250;
        }
        .desync-banner {
            top: 104px;
            background: rgba(153, 27, 27, 0.94);
            border: 1px solid rgba(248, 113, 113, 0.75);
            color: #fee2e2;
            z-index: 1020;
        }
        .spawn-timer-badge {
            background: rgba(250, 204, 21, 0.2);
            color: #fde047;
            border: 1px solid rgba(250, 204, 21, 0.55);
            padding: 2px 8px;
            border-radius: 999px;
            font-size: 11.5px;
            font-weight: 900;
            display: none;
        }
        .team-badge {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            padding: 1px 6px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 800;
            border: 1px solid rgba(255,255,255,0.18);
        }
        .team-switch-btn {
            padding: 2px 7px;
            font-size: 10px;
            font-weight: 800;
            border-radius: 5px;
            border: 1px solid rgba(255,255,255,0.22);
            cursor: pointer;
            color: #fff;
        }
        .go-modal-card {
            width: min(760px, 96vw);
            max-height: 92vh;
            overflow-y: auto;
            background: linear-gradient(180deg, #0f172a 0%, #0b1120 100%);
            border: 1px solid rgba(56, 189, 248, 0.35);
            border-radius: 16px;
            padding: 20px 22px;
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
            display: flex;
            flex-direction: column;
            gap: 14px;
            color: #f8fafc;
            animation: diploPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .go-header-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            border-bottom: 1px solid rgba(255,255,255,0.08);
            padding-bottom: 12px;
            text-align: left;
        }
        .go-header-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .go-badge-icon {
            width: 52px; height: 52px;
            border-radius: 14px;
            background: rgba(30, 41, 59, 0.9);
            border: 1px solid rgba(255,255,255,0.12);
            display: flex; align-items: center; justify-content: center;
            font-size: 28px;
            flex-shrink: 0;
        }
        .go-meta-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            justify-content: flex-end;
        }
        .go-meta-chip {
            background: rgba(30, 41, 59, 0.85);
            border: 1px solid rgba(255,255,255,0.08);
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 700;
            color: #cbd5e1;
        }
        .go-kpi-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px;
            text-align: left;
        }
        @media (max-width: 640px) {
            .go-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }
        .go-kpi-card {
            background: rgba(30, 41, 59, 0.72);
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-radius: 10px;
            padding: 10px 12px;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }
        .go-kpi-label { font-size: 10px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.4px; }
        .go-kpi-val { font-size: 16px; font-weight: 900; color: #f8fafc; }
        .go-kpi-sub { font-size: 10.5px; font-weight: 600; color: #64748b; }
        .go-chart-wrap {
            background: rgba(15, 23, 42, 0.92);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            padding: 10px 12px;
        }
        .go-chart-title {
            font-size: 11.5px;
            font-weight: 800;
            color: #cbd5e1;
            text-align: left;
            margin-bottom: 6px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
        }
        #gameOverChart {
            width: 100%;
            height: 175px;
            display: block;
            border-radius: 6px;
        }
        .go-table-wrap {
            background: rgba(15, 23, 42, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            overflow: hidden;
            text-align: left;
        }
        .go-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 11.5px;
        }
        .go-table th {
            background: rgba(30, 41, 59, 0.9);
            color: #94a3b8;
            font-weight: 800;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            padding: 7px 10px;
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }
        .go-table td {
            padding: 7px 10px;
            border-bottom: 1px solid rgba(255,255,255,0.04);
            color: #e2e8f0;
            font-weight: 600;
        }
        .go-table tr.go-me-row td {
            background: rgba(56, 189, 248, 0.12);
            color: #f8fafc;
            font-weight: 800;
        }
        .go-mvp-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 8px;
        }
        .go-mvp-pill {
            background: rgba(30, 41, 59, 0.88);
            border: 1px solid rgba(250, 204, 21, 0.25);
            border-radius: 8px;
            padding: 7px 10px;
            font-size: 11px;
            font-weight: 700;
            color: #cbd5e1;
            text-align: left;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .go-mvp-pill strong { color: #fde047; font-size: 12px; }

        /* İnteraktif Tutorial (Eğitim Bölümleri) Arayüzü */
        .tut-hub-card {
            width: min(640px, 95vw);
            max-height: 90vh;
            overflow-y: auto;
            background: linear-gradient(180deg, #0f172a 0%, #0b1120 100%);
            border: 1px solid rgba(56, 189, 248, 0.45);
            border-radius: 16px;
            padding: 20px 22px;
            box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85);
            color: #f8fafc;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .tut-mission-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }
        @media (max-width: 600px) {
            .tut-mission-grid { grid-template-columns: 1fr; }
        }
        .tut-mission-card {
            background: rgba(30, 41, 59, 0.78);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 13px 14px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            transition: transform 0.14s ease, border-color 0.14s ease;
        }
        .tut-mission-card:hover {
            transform: translateY(-2px);
            border-color: rgba(56, 189, 248, 0.6);
        }
        .tut-mission-card.completed {
            border-color: rgba(16, 185, 129, 0.55);
            background: rgba(6, 78, 59, 0.28);
        }
        .tut-mission-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        .tut-mission-title { font-size: 13.5px; font-weight: 900; color: #f8fafc; }
        .tut-mission-desc { font-size: 11.5px; color: #94a3b8; line-height: 1.4; flex: 1; }
        .tut-hud-panel {
            position: fixed;
            top: 64px;
            right: 16px;
            width: min(305px, calc(100vw - 24px));
            max-height: calc(100dvh - 140px);
            overflow-y: auto;
            overflow-x: hidden;
            box-sizing: border-box;
            background: rgba(13, 19, 33, 0.94);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(56, 189, 248, 0.5);
            border-radius: 12px;
            padding: 12px 14px;
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
            z-index: 960;
            display: none;
            flex-direction: column;
            gap: 8px;
            color: #f8fafc;
            transition: top 0.2s ease;
        }
        .tut-hud-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            border-bottom: 1px solid rgba(255,255,255,0.08);
            padding-bottom: 6px;
        }
        .tut-hud-header-actions {
            display: flex;
            gap: 4px;
            align-items: center;
            flex-shrink: 0;
        }
        .tut-hud-header-actions .speed-btn {
            white-space: nowrap;
        }
        .tut-hud-title { font-size: 12.5px; font-weight: 900; color: #38bdf8; min-width: 0; }
        .tut-hud-tip {
            font-size: 11px;
            line-height: 1.4;
            color: #fde68a;
            background: rgba(250, 204, 21, 0.1);
            border: 1px solid rgba(250, 204, 21, 0.28);
            border-radius: 7px;
            padding: 6px 8px;
        }
        .tut-task-list { display: flex; flex-direction: column; gap: 5px; }
        .tut-task-item {
            display: flex;
            align-items: flex-start;
            gap: 7px;
            font-size: 11.5px;
            font-weight: 700;
            color: #cbd5e1;
            background: rgba(30, 41, 59, 0.65);
            padding: 6px 8px;
            border-radius: 7px;
            border: 1px solid rgba(255,255,255,0.06);
        }
        .tut-task-item.done {
            color: #6ee7b7;
            background: rgba(16, 185, 129, 0.16);
            border-color: rgba(16, 185, 129, 0.4);
            text-decoration: line-through;
        }
        .tut-complete-box {
            display: none;
            flex-direction: column;
            gap: 8px;
            background: rgba(16, 185, 129, 0.18);
            border: 1px solid rgba(16, 185, 129, 0.55);
            border-radius: 8px;
            padding: 8px 10px;
            box-sizing: border-box;
            width: 100%;
            text-align: center;
            font-size: 12px;
            font-weight: 800;
            color: #6ee7b7;
        }
        .tut-complete-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            justify-content: center;
            width: 100%;
        }
        .tut-complete-actions .mp-btn {
            flex: 1 1 115px;
            max-width: 100%;
            min-width: 0;
            padding: 7px 10px;
            font-size: 11.5px;
            white-space: normal;
            line-height: 1.25;
            text-align: center;
        }
        .tut-progress-row {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .tut-progress-row .tut-progress-bar {
            flex: 1;
        }
        .tut-step-badge {
            font-size: 10.5px;
            font-weight: 800;
            color: #38bdf8;
            background: rgba(14, 165, 233, 0.14);
            border: 1px solid rgba(56, 189, 248, 0.35);
            border-radius: 999px;
            padding: 2px 7px;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .tut-step-badge.done {
            color: #6ee7b7;
            background: rgba(16, 185, 129, 0.18);
            border-color: rgba(16, 185, 129, 0.45);
        }
        .tut-task-item.active-step {
            color: #f8fafc;
            background: rgba(14, 165, 233, 0.14);
            border-color: rgba(56, 189, 248, 0.45);
            animation: tutStepIn 0.24s ease-out;
        }
        @keyframes tutStepIn {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @media (pointer: coarse), (max-width: 760px) {
            .tut-hud-panel {
                top: 66px;
                right: 8px;
                left: 8px;
                width: auto;
                max-width: 340px;
                margin-left: auto;
                max-height: calc(100dvh - 275px);
                padding: 9px 10px;
                gap: 6px;
                backdrop-filter: none !important;
                -webkit-backdrop-filter: none !important;
                overscroll-behavior: contain;
            }
            .tut-hud-title { font-size: 12px; line-height: 1.25; }
            .tut-hud-header-actions .speed-btn { padding: 4px 7px; font-size: 11px; }
            .tut-hud-tip { font-size: 10.5px; padding: 5px 7px; }
            .tut-why-box { font-size: 10px; padding: 4px 7px; }
            .tut-task-list { gap: 4px; }
            .tut-task-item { font-size: 11px; padding: 5px 7px; gap: 6px; }
            .tut-complete-box { padding: 7px 8px; font-size: 11.5px; gap: 7px; }
            .tut-complete-actions .mp-btn { padding: 7px 9px; font-size: 11px; }
        }
        /* Tutorial Yönlendirme Oku ve Vurgu Halkası */
        .tut-pointer {
            position: fixed;
            z-index: 975;
            pointer-events: none;
            display: none;
            flex-direction: column;
            align-items: center;
            gap: 3px;
            transform: translate(-50%, -100%);
            filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.75));
            transition: left 0.12s ease-out, top 0.12s ease-out;
        }
        .tut-pointer.dir-left {
            flex-direction: row-reverse;
            transform: translate(0, -50%);
        }
        .tut-pointer.dir-up {
            flex-direction: column-reverse;
            transform: translate(-50%, 0);
        }
        .tut-pointer-pill {
            background: linear-gradient(135deg, #facc15, #f59e0b);
            color: #0f172a;
            font-size: 11.5px;
            font-weight: 900;
            padding: 5px 11px;
            border-radius: 999px;
            border: 2px solid #fef9c3;
            white-space: nowrap;
            box-shadow: 0 0 18px rgba(250, 204, 21, 0.55);
        }
        .tut-pointer-arrow {
            font-size: 22px;
            line-height: 1;
            color: #facc15;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
            animation: tutBounceY 0.75s ease-in-out infinite;
        }
        .tut-pointer.dir-left .tut-pointer-arrow {
            animation: tutBounceX 0.75s ease-in-out infinite;
        }
        @keyframes tutBounceY {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(6px); }
        }
        @keyframes tutBounceX {
            0%, 100% { transform: translateX(0); }
            50% { transform: translateX(-6px); }
        }
        .tut-highlight {
            outline: 2.5px solid #facc15 !important;
            outline-offset: 2px;
            box-shadow: 0 0 18px rgba(250, 204, 21, 0.75) !important;
            animation: tutPulseGlow 1.1s ease-in-out infinite;
        }
        .dock-item.tut-locked {
            opacity: 0.22 !important;
            filter: grayscale(1) !important;
            pointer-events: none !important;
        }
        .tut-progress-bar {
            width: 100%;
            height: 6px;
            background: rgba(51, 65, 85, 0.85);
            border-radius: 999px;
            overflow: hidden;
        }
        .tut-progress-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #38bdf8, #10b981);
            transition: width 0.28s ease;
        }
        .tut-why-box {
            font-size: 10.5px;
            line-height: 1.4;
            color: #93c5fd;
            background: rgba(56, 189, 248, 0.10);
            border-left: 3px solid #38bdf8;
            border-radius: 0 6px 6px 0;
            padding: 5px 8px;
        }
        @keyframes tutPulseGlow {
            0%, 100% { box-shadow: 0 0 10px rgba(250, 204, 21, 0.55); }
            50% { box-shadow: 0 0 24px rgba(250, 204, 21, 0.95); }
        }


        /* ==========================================
           MODERN TAKTİK KOMUTA MERKEZİ — LOBİ & DERECELİ TEMA
           ========================================== */
        :root {
            --rf-font-sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            --rf-font-display: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
            --rf-bg-deep: #050914;
            --rf-glass-shell: linear-gradient(160deg, rgba(13, 21, 39, 0.94) 0%, rgba(7, 12, 24, 0.98) 100%);
            --rf-glass-surface: rgba(15, 23, 42, 0.62);
            --rf-glass-elevated: rgba(20, 31, 54, 0.78);
            --rf-border-subtle: rgba(148, 163, 184, 0.14);
            --rf-border-cyan: rgba(56, 189, 248, 0.34);
            --rf-border-gold: rgba(250, 204, 21, 0.38);
            --rf-cyan: #38bdf8;
            --rf-indigo: #6366f1;
            --rf-gold: #facc15;
            --rf-emerald: #34d399;
        }

        body {
            font-family: var(--rf-font-sans);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* Lobi Arka Planı & Taktik Izgara Derinliği */
        .lobby-overlay {
            background:
                radial-gradient(ellipse 75% 55% at 50% -5%, rgba(14, 165, 233, 0.22), transparent 65%),
                radial-gradient(ellipse 55% 45% at 92% 92%, rgba(99, 102, 241, 0.18), transparent 60%),
                radial-gradient(ellipse 45% 40% at 8% 85%, rgba(250, 204, 21, 0.08), transparent 60%),
                linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px),
                rgba(4, 8, 18, 0.84);
            background-size: auto, auto, auto, 42px 42px, 42px 42px, auto;
            backdrop-filter: blur(14px) saturate(1.25);
            -webkit-backdrop-filter: blur(14px) saturate(1.25);
        }

        .lobby-shell {
            width: min(1160px, 96vw);
            background: var(--rf-glass-shell);
            border: 1px solid rgba(56, 189, 248, 0.22);
            border-radius: 22px;
            box-shadow:
                0 32px 90px rgba(0, 0, 0, 0.82),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset,
                0 1px 0 rgba(125, 211, 252, 0.3) inset;
        }
        .lobby-shell::before {
            left: 10%;
            right: 10%;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.95), rgba(129, 140, 248, 0.85), rgba(250, 204, 21, 0.65), transparent);
        }

        /* Üst Bar (Header) */
        .lobby-header {
            padding: 15px 22px;
            background: linear-gradient(180deg, rgba(15, 23, 42, 0.82) 0%, rgba(10, 16, 32, 0.68) 100%);
            border-bottom: 1px solid rgba(148, 163, 184, 0.13);
        }
        .lobby-logo-badge {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: linear-gradient(145deg, #0ea5e9 0%, #2563eb 55%, #4f46e5 100%);
            box-shadow:
                0 8px 24px rgba(14, 165, 233, 0.42),
                0 0 0 1px rgba(186, 230, 253, 0.35) inset,
                0 1px 0 rgba(255, 255, 255, 0.45) inset;
        }
        .lobby-brand {
            font-family: var(--rf-font-display);
            font-size: 20px;
            font-weight: 700;
            letter-spacing: 2.4px;
            color: #f8fafc;
        }
        .lobby-brand span {
            background: linear-gradient(95deg, #38bdf8 0%, #818cf8 60%, #c084fc 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .lobby-subtitle {
            font-size: 10.5px;
            font-weight: 600;
            color: #94a3b8;
            letter-spacing: 0.45px;
        }

        /* Mod Sekmeleri (Segmented Control) */
        .mp-mode-tabs {
            background: rgba(3, 7, 18, 0.78);
            padding: 4px;
            border-radius: 13px;
            border: 1px solid rgba(148, 163, 184, 0.16);
            box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
            gap: 4px;
        }
        .mp-tab-btn {
            font-family: var(--rf-font-sans);
            padding: 8px 15px;
            border-radius: 9px;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.15px;
            color: #94a3b8;
            transition: background 0.18s ease, color 0.18s ease, box-shadow 0.2s ease, transform 0.14s ease;
        }
        .mp-tab-btn:hover:not(.active) {
            color: #f1f5f9;
            background: rgba(30, 41, 59, 0.65);
        }
        .mp-tab-btn.active {
            background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
            color: #ffffff;
            box-shadow:
                0 6px 18px rgba(14, 165, 233, 0.38),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }
        #tabRankedBtn.active {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 55%, #b45309 100%);
            color: #fffbeb !important;
            box-shadow:
                0 6px 20px rgba(245, 158, 11, 0.42),
                inset 0 1px 0 rgba(254, 243, 199, 0.42);
        }

        /* Üst Bar Aksiyon Butonları (Mağaza & Profil) */
        .lobby-store-btn {
            padding: 6px 12px;
            border-radius: 999px;
            border: 1px solid rgba(250, 204, 21, 0.42);
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(15, 23, 42, 0.9));
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(254, 243, 199, 0.14);
        }
        .lobby-store-btn:hover {
            transform: translateY(-1px);
            border-color: #facc15;
            box-shadow: 0 8px 22px rgba(245, 158, 11, 0.28);
        }
        .lobby-coin-pill {
            font-family: var(--rf-font-display);
            padding: 2px 8px;
            background: rgba(2, 6, 23, 0.82);
            border: 1px solid rgba(250, 204, 21, 0.38);
            color: #fde047;
            font-weight: 700;
        }
        .lobby-profile-btn {
            padding: 5px 12px 5px 6px;
            border: 1px solid rgba(56, 189, 248, 0.28);
            background: linear-gradient(135deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.92));
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }
        .lobby-profile-btn:hover {
            transform: translateY(-1px);
            border-color: rgba(56, 189, 248, 0.72);
            box-shadow: 0 8px 20px rgba(14, 165, 233, 0.22);
        }
        .lobby-profile-icon {
            box-shadow: 0 0 0 1.5px rgba(56, 189, 248, 0.45);
        }

        /* Lobi Sol Panel & Akordeon Kartlar */
        .lobby-card {
            padding: 18px 20px;
            gap: 11px;
            background: rgba(8, 13, 25, 0.35);
        }
        .lobby-accordion {
            background: linear-gradient(180deg, rgba(17, 26, 46, 0.78) 0%, rgba(11, 18, 34, 0.82) 100%);
            border: 1px solid var(--rf-border-subtle);
            border-radius: 14px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
            transition: border-color 0.18s ease, box-shadow 0.2s ease, transform 0.16s ease;
        }
        .lobby-accordion:hover {
            border-color: rgba(56, 189, 248, 0.28);
        }
        .lobby-accordion[open] {
            border-color: rgba(56, 189, 248, 0.42);
            box-shadow:
                0 10px 28px rgba(2, 6, 23, 0.48),
                0 0 0 1px rgba(56, 189, 248, 0.12) inset;
        }
        .lobby-acc-summary {
            padding: 12px 14px;
            font-size: 12.5px;
            font-weight: 700;
            color: #f1f5f9;
            background: transparent;
            transition: background 0.16s ease;
        }
        .lobby-acc-summary:hover {
            background: rgba(30, 41, 59, 0.42);
        }
        .lobby-acc-val {
            font-size: 11px;
            font-weight: 700;
            color: #7dd3fc;
            background: rgba(14, 165, 233, 0.13);
            border: 1px solid rgba(56, 189, 248, 0.3);
            padding: 3px 10px;
            border-radius: 999px;
        }
        .lobby-acc-body {
            padding: 12px 14px 14px;
            background: rgba(6, 10, 20, 0.42);
            border-top: 1px solid rgba(148, 163, 184, 0.11);
        }

        /* Seçim Butonları & Slider */
        .lobby-opt-btn {
            background: rgba(15, 23, 42, 0.72);
            border: 1px solid rgba(148, 163, 184, 0.15);
            border-radius: 11px;
            padding: 9px 10px;
            font-size: 11.5px;
            font-weight: 700;
            color: #cbd5e1;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
        }
        .lobby-opt-btn:hover {
            border-color: rgba(56, 189, 248, 0.48);
            background: rgba(30, 41, 59, 0.88);
            color: #ffffff;
            transform: translateY(-1px);
            box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
        }
        .lobby-opt-btn.active {
            border-color: #38bdf8;
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.26), rgba(37, 99, 235, 0.22));
            color: #ffffff;
            box-shadow:
                0 0 0 1px rgba(56, 189, 248, 0.35) inset,
                0 8px 18px rgba(14, 165, 233, 0.22);
        }

        /* Canlı Harita Önizleme Sahnesi */
        .lobby-map-box {
            padding: 18px 22px;
            background:
                radial-gradient(circle at 50% 42%, rgba(14, 165, 233, 0.09), transparent 65%),
                rgba(4, 8, 18, 0.45);
        }
        .lobby-map-badge {
            padding: 6px 13px;
            background: rgba(11, 18, 34, 0.88);
            border: 1px solid rgba(56, 189, 248, 0.26);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        }
        .lobby-map-stage {
            border-radius: 16px;
            border: 1px solid rgba(56, 189, 248, 0.26);
            padding: 10px;
            background:
                linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(2, 6, 23, 0.95));
            box-shadow:
                inset 0 0 42px rgba(0, 0, 0, 0.78),
                0 16px 38px rgba(0, 0, 0, 0.5);
        }
        .lobby-map-stage::after {
            content: '';
            position: absolute;
            inset: 6px;
            border-radius: 11px;
            border: 1px solid rgba(56, 189, 248, 0.1);
            pointer-events: none;
        }
        .lobby-map-footer {
            padding: 9px 14px;
            border-radius: 12px;
            background: rgba(11, 18, 34, 0.78);
            border: 1px solid rgba(148, 163, 184, 0.12);
        }
        .lobby-regen-btn {
            border-radius: 10px;
            padding: 7px 13px;
            background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.92));
            border: 1px solid rgba(56, 189, 248, 0.34);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        }

        /* Çok Oyunculu (Multi) Paneli */
        .mp-panel {
            background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(9, 14, 28, 0.88) 100%);
            border: 1px solid rgba(56, 189, 248, 0.24);
            border-radius: 15px;
            padding: 14px;
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
        }
        .mp-input {
            background: rgba(3, 7, 18, 0.82);
            border: 1px solid rgba(148, 163, 184, 0.22);
            border-radius: 10px;
            padding: 9px 12px;
        }
        .mp-input:focus {
            border-color: #38bdf8;
            box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
        }

        /* Dereceli (Ranked) Arena Paneli */
        .ranked-panel {
            position: relative;
            gap: 13px;
            padding: 16px;
            border-radius: 16px;
            background:
                radial-gradient(ellipse 80% 50% at 50% 0%, rgba(250, 204, 21, 0.11), transparent 65%),
                linear-gradient(165deg, rgba(15, 23, 42, 0.94) 0%, rgba(17, 20, 48, 0.82) 100%);
            border: 1px solid rgba(250, 204, 21, 0.32);
            box-shadow:
                0 16px 40px rgba(0, 0, 0, 0.42),
                inset 0 1px 0 rgba(254, 240, 138, 0.2);
            overflow: hidden;
        }
        .ranked-badge {
            font-family: var(--rf-font-display);
            padding: 5px 12px;
            background: linear-gradient(135deg, rgba(250, 204, 21, 0.18), rgba(245, 158, 11, 0.1));
            border: 1px solid rgba(250, 204, 21, 0.44);
            color: #fef08a;
            font-size: 11px;
            letter-spacing: 0.7px;
            box-shadow: 0 4px 14px rgba(245, 158, 11, 0.14);
        }
        #rankedModeEloHint {
            font-family: var(--rf-font-display);
            padding: 4px 10px;
            border-radius: 999px;
            background: rgba(15, 23, 42, 0.82);
            border: 1px solid rgba(250, 204, 21, 0.28);
        }
        .ranked-mode-grid {
            gap: 9px;
        }
        .ranked-mode-card {
            background: linear-gradient(180deg, rgba(15, 23, 42, 0.82) 0%, rgba(8, 13, 26, 0.92) 100%);
            border: 1px solid rgba(148, 163, 184, 0.18);
            border-radius: 13px;
            padding: 12px 8px;
            gap: 5px;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
            transition: transform 0.16s ease, border-color 0.18s ease, box-shadow 0.2s ease, background 0.18s ease;
        }
        .ranked-mode-card:hover {
            transform: translateY(-2px);
            border-color: rgba(250, 204, 21, 0.55);
            background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.92) 100%);
        }
        .ranked-mode-card.active {
            border-color: #facc15;
            background:
                radial-gradient(circle at 50% 0%, rgba(250, 204, 21, 0.22), transparent 72%),
                linear-gradient(180deg, rgba(30, 27, 45, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
            box-shadow:
                0 10px 26px rgba(245, 158, 11, 0.24),
                0 0 0 1px rgba(250, 204, 21, 0.35) inset;
            color: #fef08a;
        }
        .ranked-mode-card .rm-icon {
            font-size: 20px;
            margin-bottom: 1px;
        }
        .ranked-mode-card .rm-name {
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.15px;
        }
        .ranked-mode-card .rm-elo {
            font-family: var(--rf-font-display);
            font-size: 11px;
            font-weight: 700;
            color: #38bdf8;
        }
        .ranked-rules-box {
            background: rgba(4, 8, 18, 0.72);
            border: 1px solid rgba(148, 163, 184, 0.14);
            border-radius: 12px;
            padding: 11px 13px;
            gap: 8px;
        }
        .ranked-rule-chip {
            font-size: 11px;
            font-weight: 700;
            color: #e2e8f0;
            background: rgba(20, 31, 54, 0.82);
            border: 1px solid rgba(148, 163, 184, 0.18);
            border-radius: 8px;
            padding: 4px 9px;
        }
        .ranked-queue-box {
            border-radius: 13px;
            padding: 13px 15px;
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(99, 102, 241, 0.18));
            border: 1px solid rgba(56, 189, 248, 0.5);
            box-shadow: 0 8px 24px rgba(14, 165, 233, 0.18);
        }

        /* Alt Başlatma Çubuğu (Footer CTA) */
        .lobby-footer-cta {
            padding: 13px 20px 15px;
            background: linear-gradient(180deg, rgba(9, 14, 28, 0.86) 0%, rgba(5, 9, 20, 0.96) 100%);
            border-top: 1px solid rgba(148, 163, 184, 0.13);
        }
        .lobby-start-btn {
            position: relative;
            overflow: hidden;
            font-family: var(--rf-font-display);
            padding: 14px 20px;
            border-radius: 14px;
            font-size: 14.5px;
            font-weight: 700;
            letter-spacing: 1.2px;
            background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 48%, #2563eb 100%);
            border: 1px solid rgba(125, 211, 252, 0.42);
            box-shadow:
                0 12px 30px rgba(14, 165, 233, 0.36),
                inset 0 1px 0 rgba(255, 255, 255, 0.36);
        }
        .lobby-start-btn::after {
            content: '';
            position: absolute;
            top: 0;
            left: -120%;
            width: 60%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
            transform: skewX(-22deg);
            transition: left 0.55s ease;
            pointer-events: none;
        }
        .lobby-start-btn:hover:not(:disabled)::after {
            left: 140%;
        }
        .lobby-start-btn:hover:not(:disabled) {
            filter: brightness(1.07);
            transform: translateY(-1.5px);
            box-shadow:
                0 16px 36px rgba(14, 165, 233, 0.48),
                inset 0 1px 0 rgba(255, 255, 255, 0.45);
        }

        /* Mobil İyileştirmeler */
        @media (max-width: 900px) {
            .lobby-shell {
                border-radius: 18px;
            }
            .lobby-card {
                padding: 14px;
            }
            .lobby-map-box {
                padding: 14px;
            }
            .lobby-footer-cta {
                padding: 11px 14px 13px;
            }
            .lobby-start-btn {
                padding: 13px 16px;
                font-size: 13.5px;
            }
        }
        @media (max-width: 600px) {
            .lobby-header {
                padding: 12px;
                gap: 9px;
            }
            .lobby-acc-summary {
                padding: 11px 12px;
                min-height: 44px;
            }
            .mp-tab-btn {
                padding: 9px 6px;
                font-size: 11.5px;
            }
            .ranked-panel {
                padding: 13px;
            }
            .ranked-mode-card {
                padding: 11px 6px;
            }
        }


        /* ==========================================
           SAVAŞ ALTINI ÖDÜL MERKEZİ & MAÇ SONU ÖDÜL KARTI
           ========================================== */
        .lobby-rewards-btn {
            position: relative;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 999px;
            border: 1px solid rgba(52, 211, 153, 0.45);
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(15, 23, 42, 0.9));
            color: #d1fae5;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
            white-space: nowrap;
            transition: transform 0.14s ease, border-color 0.16s ease, box-shadow 0.16s ease;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.26);
        }
        .lobby-rewards-btn:hover {
            transform: translateY(-1px);
            border-color: #34d399;
            box-shadow: 0 8px 20px rgba(16, 185, 129, 0.28);
        }
        .lobby-rewards-dot {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            border-radius: 999px;
            background: linear-gradient(135deg, #f59e0b, #ef4444);
            color: #fff;
            font-size: 10.5px;
            font-weight: 900;
            box-shadow: 0 0 10px rgba(239, 68, 68, 0.65);
        }

        .rewards-modal {
            width: min(680px, calc(100vw - 20px));
            max-height: 90vh;
            background: linear-gradient(165deg, rgba(13, 21, 39, 0.98), rgba(6, 10, 22, 0.99));
            border: 1px solid rgba(250, 204, 21, 0.36);
            border-radius: 20px;
            box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(254, 240, 138, 0.2);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .rw-body {
            padding: 14px 18px 18px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }
        .rw-section {
            background: rgba(15, 23, 42, 0.72);
            border: 1px solid rgba(148, 163, 184, 0.14);
            border-radius: 14px;
            padding: 13px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .rw-sec-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: wrap;
            font-size: 13px;
            font-weight: 800;
            color: #f8fafc;
        }
        .rw-day-grid {
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
            gap: 6px;
        }
        .rw-day-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
            padding: 8px 4px;
            border-radius: 11px;
            border: 1px solid rgba(148, 163, 184, 0.18);
            background: rgba(8, 13, 26, 0.85);
            color: #cbd5e1;
            cursor: default;
            transition: transform 0.15s ease, border-color 0.16s ease, box-shadow 0.16s ease;
        }
        .rw-day-card.day7 {
            border-color: rgba(250, 204, 21, 0.35);
            background: linear-gradient(180deg, rgba(245, 158, 11, 0.16), rgba(15, 23, 42, 0.9));
        }
        .rw-day-card.claimed {
            opacity: 0.58;
            border-color: rgba(52, 211, 153, 0.35);
        }
        .rw-day-card.claimable {
            cursor: pointer;
            border-color: #facc15;
            background: linear-gradient(180deg, rgba(250, 204, 21, 0.24), rgba(245, 158, 11, 0.12));
            box-shadow: 0 0 18px rgba(250, 204, 21, 0.28);
            color: #fef08a;
        }
        .rw-day-card.claimable:hover { transform: translateY(-2px); }
        .rw-day-num { font-size: 9.5px; font-weight: 800; color: #94a3b8; }
        .rw-day-icon { font-size: 16px; line-height: 1.1; }
        .rw-day-amt { font-family: var(--rf-font-display); font-size: 11.5px; font-weight: 700; color: #fde047; }
        .rw-day-st { font-size: 9px; font-weight: 800; color: #34d399; }
        .rw-day-card.claimable .rw-day-st { color: #fef08a; }

        .rw-main-claim-btn, .rw-all-bonus-btn {
            width: 100%;
            padding: 10px 14px;
            border-radius: 11px;
            border: 1px solid rgba(250, 204, 21, 0.45);
            background: linear-gradient(135deg, #f59e0b, #d97706);
            color: #fffbeb;
            font-size: 12.5px;
            font-weight: 800;
            cursor: pointer;
            transition: filter 0.15s ease, transform 0.14s ease;
        }
        .rw-main-claim-btn:hover:not(:disabled), .rw-all-bonus-btn:hover:not(:disabled) {
            filter: brightness(1.08);
            transform: translateY(-1px);
        }
        .rw-main-claim-btn:disabled, .rw-all-bonus-btn:disabled {
            background: rgba(30, 41, 59, 0.72);
            border-color: rgba(148, 163, 184, 0.2);
            color: #94a3b8;
            cursor: not-allowed;
        }

        .rw-quest-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .rw-quest-row {
            display: flex;
            align-items: center;
            gap: 11px;
            padding: 10px 12px;
            border-radius: 12px;
            background: rgba(8, 13, 26, 0.78);
            border: 1px solid rgba(148, 163, 184, 0.15);
        }
        .rw-quest-row.done:not(.claimed) {
            border-color: rgba(52, 211, 153, 0.48);
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(8, 13, 26, 0.88));
        }
        .rw-quest-row.claimed { opacity: 0.65; }
        .rw-q-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: rgba(30, 41, 59, 0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
        }
        .rw-q-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }
        .rw-q-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
        }
        .rw-q-title { font-size: 12.5px; font-weight: 800; color: #f8fafc; }
        .rw-q-count { font-family: var(--rf-font-display); font-size: 11px; font-weight: 700; color: #38bdf8; }
        .rw-q-desc { font-size: 11px; color: #94a3b8; font-weight: 600; }
        .rw-q-bar {
            width: 100%;
            height: 5px;
            border-radius: 999px;
            background: rgba(51, 65, 85, 0.75);
            overflow: hidden;
            margin-top: 2px;
        }
        .rw-q-fill {
            height: 100%;
            border-radius: 999px;
            background: linear-gradient(90deg, #0ea5e9, #34d399);
            transition: width 0.25s ease;
        }
        .rw-q-action { flex-shrink: 0; }
        .rw-q-reward {
            font-family: var(--rf-font-display);
            font-size: 11.5px;
            font-weight: 700;
            color: #fde047;
            padding: 4px 9px;
            border-radius: 8px;
            background: rgba(250, 204, 21, 0.1);
            border: 1px solid rgba(250, 204, 21, 0.25);
        }
        .rw-q-claim-btn {
            padding: 6px 11px;
            border-radius: 9px;
            border: 1px solid rgba(52, 211, 153, 0.55);
            background: linear-gradient(135deg, #10b981, #059669);
            color: #fff;
            font-size: 11.5px;
            font-weight: 800;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.32);
        }
        .rw-q-claimed {
            font-size: 11px;
            font-weight: 800;
            color: #34d399;
            padding: 4px 8px;
        }
        .rw-tip-bar {
            padding: 9px 12px;
            border-radius: 11px;
            background: rgba(14, 165, 233, 0.1);
            border: 1px solid rgba(56, 189, 248, 0.28);
            font-size: 11.5px;
            color: #bae6fd;
            line-height: 1.45;
        }

        /* Maç Sonu Savaş Altını Döküm Kartı */
        .go-reward-card {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(15, 23, 42, 0.9));
            border: 1px solid rgba(250, 204, 21, 0.38);
            border-radius: 12px;
            padding: 10px 13px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .go-rw-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: wrap;
        }
        .go-rw-title {
            font-size: 12.5px;
            font-weight: 800;
            color: #fef08a;
        }
        .go-rw-total {
            font-family: var(--rf-font-display);
            font-size: 14px;
            font-weight: 700;
            color: #fde047;
            padding: 2px 10px;
            border-radius: 999px;
            background: rgba(2, 6, 23, 0.72);
            border: 1px solid rgba(250, 204, 21, 0.42);
        }
        .go-rw-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .go-rw-chip {
            font-size: 11px;
            font-weight: 700;
            color: #e2e8f0;
            background: rgba(15, 23, 42, 0.85);
            border: 1px solid rgba(148, 163, 184, 0.2);
            border-radius: 7px;
            padding: 3px 8px;
        }
        .go-rw-chip strong { color: #fde047; }

        @media (max-width: 640px) {
            .rw-day-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
            .lobby-rewards-btn { padding: 5px 9px; font-size: 11.5px; }
        }


        /* ==========================================
           TEKNOLOJİ MERKEZİ (ARAŞTIRMA) ARAYÜZÜ
           ========================================== */
        .tech-quick-fab {
            position: fixed;
            right: 14px;
            bottom: 148px;
            z-index: 35;
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 8px 13px;
            border-radius: 999px;
            border: 1.5px solid rgba(34, 211, 238, 0.58);
            background: linear-gradient(135deg, rgba(6, 182, 212, 0.28), rgba(15, 23, 42, 0.94));
            color: #cffafe;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
            box-shadow: 0 8px 24px rgba(6, 182, 212, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.16);
            transition: transform 0.15s ease, border-color 0.16s ease, box-shadow 0.18s ease;
        }
        .tech-quick-fab:hover {
            transform: translateY(-2px);
            border-color: #22d3ee;
            box-shadow: 0 12px 28px rgba(34, 211, 238, 0.45);
        }
        .tech-quick-fab.damaged {
            border-color: rgba(248, 113, 113, 0.7);
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.28), rgba(15, 23, 42, 0.94));
            color: #fecaca;
            box-shadow: 0 8px 22px rgba(239, 68, 68, 0.32);
        }
        .tech-fab-icon { font-size: 15px; line-height: 1; }

        .tech-modal {
            width: min(640px, calc(100vw - 20px));
            max-height: 90vh;
            background: linear-gradient(165deg, rgba(11, 20, 38, 0.98), rgba(6, 11, 23, 0.99));
            border: 1px solid rgba(34, 211, 238, 0.42);
            border-radius: 18px;
            box-shadow: 0 28px 80px rgba(0, 0, 0, 0.84), inset 0 1px 0 rgba(165, 243, 252, 0.2);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .tech-status-pill {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            margin-top: 3px;
            padding: 2px 9px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 800;
        }
        .tech-status-pill.active {
            background: rgba(16, 185, 129, 0.16);
            border: 1px solid rgba(52, 211, 153, 0.4);
            color: #6ee7b7;
        }
        .tech-status-pill.building {
            background: rgba(56, 189, 248, 0.16);
            border: 1px solid rgba(56, 189, 248, 0.4);
            color: #7dd3fc;
        }
        .tech-status-pill.destroyed {
            background: rgba(239, 68, 68, 0.18);
            border: 1px solid rgba(248, 113, 113, 0.45);
            color: #fca5a5;
        }
        .tech-active-box {
            margin: 10px 16px 0;
            padding: 10px 13px;
            border-radius: 12px;
            background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(37, 99, 235, 0.16));
            border: 1px solid rgba(34, 211, 238, 0.48);
            display: flex;
            flex-direction: column;
            gap: 7px;
        }
        .tech-active-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            font-size: 12.5px;
            font-weight: 800;
            color: #ecfeff;
        }
        .tech-active-bar {
            width: 100%;
            height: 7px;
            border-radius: 999px;
            background: rgba(15, 23, 42, 0.85);
            overflow: hidden;
        }
        .tech-active-fill {
            height: 100%;
            width: 0%;
            border-radius: 999px;
            background: linear-gradient(90deg, #06b6d4, #22d3ee, #38bdf8);
            box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
            transition: width 0.18s linear;
        }
        .tech-grid {
            padding: 14px 16px;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            overflow-y: auto;
        }
        .tech-card {
            background: rgba(15, 23, 42, 0.8);
            border: 1px solid rgba(148, 163, 184, 0.18);
            border-radius: 14px;
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            transition: border-color 0.16s ease, box-shadow 0.18s ease;
        }
        .tech-card.researching {
            border-color: #22d3ee;
            box-shadow: 0 0 20px rgba(34, 211, 238, 0.22);
        }
        .tech-card-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        .tech-card-title {
            display: flex;
            align-items: center;
            gap: 7px;
            font-size: 13px;
            font-weight: 800;
            color: #f8fafc;
        }
        .tech-lvl-badge {
            font-family: var(--rf-font-display);
            font-size: 11px;
            font-weight: 700;
            color: #38bdf8;
            background: rgba(14, 165, 233, 0.15);
            border: 1px solid rgba(56, 189, 248, 0.32);
            padding: 2px 8px;
            border-radius: 999px;
        }
        .tech-pips {
            display: flex;
            gap: 4px;
        }
        .tech-pip {
            flex: 1;
            height: 5px;
            border-radius: 999px;
            background: rgba(51, 65, 85, 0.8);
        }
        .tech-pip.filled {
            background: linear-gradient(90deg, #06b6d4, #38bdf8);
            box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
        }
        .tech-pip.half {
            background: linear-gradient(90deg, #f59e0b, #ef4444);
        }
        .tech-card-desc {
            font-size: 11px;
            color: #94a3b8;
            line-height: 1.4;
        }
        .tech-card-bonus {
            font-size: 11.5px;
            font-weight: 800;
            color: #6ee7b7;
        }
        .tech-card-bonus.penalized {
            color: #fca5a5;
        }
        .tech-research-btn {
            margin-top: auto;
            width: 100%;
            padding: 8px 10px;
            border-radius: 10px;
            border: 1px solid rgba(34, 211, 238, 0.45);
            background: linear-gradient(135deg, #0891b2, #0284c7);
            color: #fff;
            font-size: 11.5px;
            font-weight: 800;
            cursor: pointer;
            transition: filter 0.15s ease, transform 0.12s ease;
        }
        .tech-research-btn:hover:not(:disabled) {
            filter: brightness(1.1);
            transform: translateY(-1px);
        }
        .tech-research-btn:disabled {
            background: rgba(30, 41, 59, 0.72);
            border-color: rgba(148, 163, 184, 0.18);
            color: #94a3b8;
            cursor: not-allowed;
        }
        .tech-modal-footer {
            padding: 10px 16px 13px;
            border-top: 1px solid rgba(148, 163, 184, 0.12);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
            background: rgba(7, 12, 24, 0.72);
        }
        @media (max-width: 640px) {
            .tech-grid { grid-template-columns: 1fr; }
            .tech-quick-fab { right: 8px; bottom: 112px; padding: 6px 10px; font-size: 11px; }
        }


        /* Gönderilen Diplomasi Teklifi Kompakt Geri Sayım Çubuğu */
        .outgoing-offers-stack {
            position: fixed;
            top: 62px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 42;
            display: flex;
            flex-direction: column;
            gap: 6px;
            pointer-events: none;
            width: min(290px, calc(100vw - 24px));
        }
        .outgoing-offer-card {
            background: rgba(11, 18, 34, 0.92);
            border: 1px solid rgba(56, 189, 248, 0.38);
            border-radius: 10px;
            padding: 7px 10px;
            box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .oo-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            font-size: 11.5px;
            font-weight: 800;
            color: #f1f5f9;
        }
        .oo-target {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .oo-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
            border: 1px solid rgba(255, 255, 255, 0.7);
        }
        .oo-sec {
            font-family: var(--rf-font-display);
            font-size: 11px;
            font-weight: 700;
            color: #38bdf8;
            font-variant-numeric: tabular-nums;
            flex-shrink: 0;
        }
        .oo-bar {
            width: 100%;
            height: 4px;
            border-radius: 999px;
            background: rgba(51, 65, 85, 0.8);
            overflow: hidden;
        }
        .oo-fill {
            height: 100%;
            border-radius: 999px;
            background: linear-gradient(90deg, #38bdf8, #818cf8);
            transition: width 0.14s linear;
        }
