/* driver — eski oyun stilleri (yalnız oyun çerçevesinde yüklenir) */
/* GENEL YAPI - ULTRA GERÇEKÇİ GECE TEMASI */
    .drive-container { width: 100%; background: #020617; border: 2px solid #3b82f6; border-radius: 20px; overflow: hidden; font-family: 'Inter', sans-serif; position: relative; color: #fff; text-align: center; user-select: none; box-shadow: 0 0 40px rgba(59, 130, 246, 0.2); }
    
    .drive-header { background: rgba(15, 23, 42, 0.95); padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(59, 130, 246, 0.3); font-size: 14px; backdrop-filter: blur(10px); z-index: 20; position: relative; }
    
    /* LEVEL PROGRESS BAR */
    .level-progress-wrapper { position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: #1e293b; }
    .level-progress-fill { height: 100%; background: #38bdf8; width: 0%; transition: width 0.2s ease-out; box-shadow: 0 0 10px #38bdf8; }
    .level-info-text { font-size: 10px; color: #94a3b8; margin-left: 8px; font-weight: 800; letter-spacing: 1px; }
    .level-percent { color: #38bdf8; font-weight: 900; }

    /* TAM EKRAN VE SIFIR SİYAH BOŞLUK */
    .drive-container:-webkit-full-screen { width: 100vw; height: 100vh; max-height: none; border: none; border-radius: 0; display: flex; flex-direction: column; background: #020617; }
    .drive-container:fullscreen { width: 100vw; height: 100vh; max-height: none; border: none; border-radius: 0; display: flex; flex-direction: column; background: #020617; }
    
    .drive-container:fullscreen #raceCanvas { width: 100vw !important; height: 100vh !important; max-width: none; max-height: none; aspect-ratio: auto; }
    .drive-container:-webkit-full-screen #raceCanvas { width: 100vw !important; height: 100vh !important; max-width: none; max-height: none; aspect-ratio: auto; }
    
    #raceCanvas { background: #0f172a; display: block; margin: 0 auto; width: 100%; height: auto; min-height: 400px; max-height: 75vh; cursor: crosshair; }

    /* UI ve EKRANLAR */
    .drive-ui { position: absolute; top: 75px; left: 20px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; z-index: 5; }
    .drive-val { font-size: clamp(18px, 4vw, 24px); font-weight: 900; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.8); display: inline-block; transition: transform 0.1s; line-height: 1; }
    .pop-effect { transform: scale(1.3); color: #fff; }
    .negative-effect { transform: scale(1.3); color: #f43f5e !important; }
    .level-badge { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; padding: 3px 10px; border-radius: 6px; font-weight: 900; font-size: 13px; box-shadow: 0 0 15px rgba(59, 130, 246, 0.5); border: 1px solid #93c5fd; }
    
    .drive-overlay { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.85); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 10; padding: 20px; backdrop-filter: blur(8px); }
    .btn-drive { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; border: 1px solid #93c5fd; padding: 15px 40px; border-radius: 50px; font-size: 20px; font-weight: 900; cursor: pointer; box-shadow: 0 8px 25px rgba(59,130,246,0.5); transition: 0.2s; text-transform: uppercase; letter-spacing: 1px;}
    .btn-drive:active { transform: scale(0.95); box-shadow: 0 4px 15px rgba(59,130,246,0.7); }

    /* OYUN İÇİ HUD */
    .hud-box { background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); border-left: 4px solid #3b82f6; padding: 6px 15px; border-radius: 8px; display: flex; align-items: center; gap: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.6); }
    .hud-box.plak-box { border-left-color: #fbbf24; }
    .hud-icon { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
    .hud-label { font-size: 10px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; display: block; }

    /* DÜNYA REKORU ROZETİ */
    .top-record-badge { background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(251, 191, 36, 0.5); padding: 5px 12px; border-radius: 12px; display: flex; align-items: center; gap: 10px; box-shadow: 0 0 15px rgba(251, 191, 36, 0.3); transition: 0.3s; }
    .top-record-badge:hover { background: rgba(251, 191, 36, 0.2); transform: translateY(-2px); }
    .record-icon-svg { width: 20px; height: 20px; filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.8)); }
    .record-info { text-align: left; line-height: 1.1; }
    .record-label { display: block; font-size: 8px; font-weight: 800; color: #fbbf24; letter-spacing: 1px; text-transform: uppercase; }
    .record-val-container { font-size: 13px; font-weight: 900; color: #fff; }
    .record-player-name { font-size: 10px; opacity: 0.8; color: #e2e8f0; margin-left: 4px; }

    /* SONUÇ KARTI */
    .results-card { background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(244, 63, 94, 0.4); border-radius: 16px; padding: 15px; width: 90%; max-width: 300px; margin-bottom: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.9); }
    
    @keyframes spinPlak { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
    @media (max-width: 600px) {
        .drive-header { padding: 8px 10px; flex-direction: column; gap: 8px; }
        .drive-ui { top: 85px; left: 10px; transform: scale(0.9); transform-origin: left top; }
        .top-record-badge { padding: 4px 8px; gap: 6px; }
        .record-label { font-size: 7px; }
        .record-val-container { font-size: 11px; }
    }

    .drive-card { background: #0f172a; border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; padding: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
    @keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
    
    #driveLogs::-webkit-scrollbar { width: 4px; }
    #driveLogs::-webkit-scrollbar-track { background: transparent; }
    #driveLogs::-webkit-scrollbar-thumb { background: #334155; border-radius: 10px; }
    @media (max-width: 800px) { .drive-footer-section { grid-template-columns: 1fr !important; } }
    
    /* PROFESYONEL SPİDOMETRE HUD & NİTRO BARI */
    .speed-hud { position: absolute; bottom: 25px; right: 25px; width: 100px; height: 100px; z-index: 10; background: rgba(15,23,42,0.9); border-radius: 50%; box-shadow: 0 10px 25px rgba(0,0,0,0.8), inset 0 0 15px rgba(59,130,246,0.3); border: 2px solid #1e293b; display: flex; align-items: center; justify-content: center; flex-direction: column; backdrop-filter: blur(10px); }
    .speed-ring { position: absolute; top: -2px; left: -2px; width: 100px; height: 100px; transform: rotate(-90deg); overflow: visible; }
    
    .speed-ring-bg { fill: none; stroke: rgba(255,255,255,0.05); stroke-width: 6; }
    .speed-ring-fill { fill: none; stroke: #38bdf8; stroke-width: 6; stroke-dasharray: 276; stroke-dashoffset: 276; transition: stroke-dashoffset 0.1s linear, stroke 0.3s; stroke-linecap: round; filter: drop-shadow(0 0 5px #38bdf8); }
    
    .nitro-ring-bg { fill: none; stroke: rgba(255,255,255,0.03); stroke-width: 4; }
    .nitro-ring-fill { fill: none; stroke: #10b981; stroke-width: 4; stroke-dasharray: 226; stroke-dashoffset: 0; transition: stroke-dashoffset 0.1s linear; stroke-linecap: round; filter: drop-shadow(0 0 5px #10b981); }

    .speed-text { position: relative; z-index: 2; text-align: center; margin-top: 4px; }
    .speed-val { font-size: 26px; font-weight: 950; color: #fff; line-height: 1; text-shadow: 0 0 10px rgba(59,130,246,0.6); font-family: 'Inter', sans-serif; font-variant-numeric: tabular-nums; }
    .speed-unit { font-size: 9px; font-weight: 800; color: #94a3b8; display: block; letter-spacing: 2px; margin-top: -2px; }
    
    @media (max-width: 768px) { 
        .speed-hud { bottom: 110px; right: 15px; width: 80px; height: 80px; } 
        .speed-ring { width: 80px; height: 80px; }
        .speed-ring-bg, .speed-ring-fill { stroke-width: 5; }
        .nitro-ring-bg, .nitro-ring-fill { stroke-width: 3; }
        .speed-val { font-size: 20px; }
    }

    /* MOBİL KONTROL BUTONLARI */
    .mobile-controls { display: none; position: absolute; bottom: 30px; left: 0; width: 100%; justify-content: space-between; padding: 0 20px; z-index: 20; pointer-events: none; }
    .control-btn { pointer-events: auto; background: rgba(2, 6, 23, 0.7); border: 2px solid rgba(255,255,255,0.2); color: #fff; width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: 0.1s; }
    .control-btn:active { background: rgba(59, 130, 246, 0.5); transform: scale(0.9); border-color: #38bdf8; box-shadow: 0 0 20px rgba(56, 189, 248, 0.5); }
    
    /* Nitro Butonu */
    .nitro-btn { width: 75px; height: 75px; border-color: #f97316; color: #f97316; background: rgba(249, 115, 22, 0.1); box-shadow: 0 0 15px rgba(249, 115, 22, 0.3); }
    .nitro-btn:active { background: rgba(249, 115, 22, 0.5); border-color: #fdba74; color: #fff; box-shadow: 0 0 25px rgba(249, 115, 22, 0.6); }

    @media (max-width: 768px) { .mobile-controls { display: flex; } }    
    
    /* LİDERLİK TABLOSU BUTONLARI VE FAQ */
    .lb-btn { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #94a3b8; padding: 8px 0; border-radius: 8px; font-size: 11px; font-weight: 800; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 5px; text-transform: uppercase; }
    .lb-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
    .lb-btn.active { background: rgba(59, 130, 246, 0.15); border-color: #3b82f6; color: #3b82f6; }
    
    .faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 10px; }
    .faq-box { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); padding: 15px; border-radius: 12px; transition: 0.3s; }
    .faq-box:hover { background: rgba(255,255,255,0.04); border-color: rgba(59, 130, 246, 0.4); }
    .faq-head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 8px; }
    .faq-text { font-size: 12px; color: #94a3b8; line-height: 1.6; margin: 0; }
    
    @media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; } }
    
    /* BAŞLANGIÇ EKRANI */
    .start-backdrop { backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); background: rgba(2, 6, 23, 0.85) !important; }
    .start-title { font-size: clamp(40px, 9vw, 65px); font-weight: 950; margin-bottom: 5px; background: linear-gradient(to right, #ffffff, #93c5fd); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 10px 30px rgba(59, 130, 246, 0.6); letter-spacing: -1px; line-height: 1.1; }
    
    .instruction-box { background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(255,255,255,0.08); padding: 20px 25px; border-radius: 16px; margin-bottom: 35px; display: flex; gap: 25px; text-align: left; box-shadow: 0 10px 40px rgba(0,0,0,0.9); }
    .inst-item { display: flex; align-items: center; gap: 15px; }
    .inst-icon { background: rgba(59, 130, 246, 0.15); color: #3b82f6; padding: 12px; border-radius: 14px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(59, 130, 246, 0.3); }
    .inst-text { font-size: 13px; color: #e2e8f0; line-height: 1.5; }
    .inst-text b { color: #fff; font-size: 14px; }
    .kbd-key { background: #1e293b; border: 1px solid #334155; border-bottom-width: 3px; padding: 2px 6px; border-radius: 6px; font-size: 11px; color: #e2e8f0; font-family: monospace; font-weight: bold; }
    
    @keyframes spin-slow { 100% { transform: rotate(360deg); } }
    @keyframes pulse-glow { 0%, 100% { filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4)); transform: scale(1); } 50% { filter: drop-shadow(0 0 35px rgba(59, 130, 246, 0.9)); transform: scale(1.05); } }
    @media (max-width: 600px) { .instruction-box { flex-direction: column; gap: 15px; padding: 15px; } .inst-divider { display: none; } }
    
    /* OYUN BİTİŞ EKRANI */
    .over-backdrop { backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); background: radial-gradient(circle at center, rgba(69, 10, 25, 0.95) 0%, rgba(2, 6, 23, 0.98) 100%) !important; }
    .over-title { font-size: clamp(36px, 8vw, 55px); font-weight: 950; margin-bottom: 12px; background: linear-gradient(to bottom, #fca5a5, #e11d48); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 10px 40px rgba(225, 29, 72, 0.6); letter-spacing: -1px; line-height: 1; }
    
    @keyframes pulse-glow-red { 0%, 100% { filter: drop-shadow(0 0 15px rgba(225, 29, 72, 0.3)); transform: scale(1); } 50% { filter: drop-shadow(0 0 40px rgba(225, 29, 72, 0.8)); transform: scale(1.05); } }
    
    .modern-results { background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(225, 29, 72, 0.4); border-top: 3px solid #e11d48; box-shadow: 0 20px 50px rgba(0,0,0,0.9), inset 0 0 20px rgba(225, 29, 72, 0.15); border-radius: 16px; padding: 20px; width: 100%; max-width: 340px; margin-bottom: 20px; }
    .btn-restart { background: linear-gradient(135deg, #ef4444, #9f1239) !important; box-shadow: 0 10px 25px rgba(225, 29, 72, 0.4) !important; border: 1px solid #fda4af; }
    .btn-restart:hover { box-shadow: 0 12px 30px rgba(225, 29, 72, 0.6) !important; transform: translateY(-2px); }
