:root { --bg-dark: #090915; --card-bg: #131320; --neon-blue: #00f0ff; --neon-pink: #ff003c; --neon-green: #05ff00; --neon-yellow: #fcee0a; --neon-orange: #ff9900; --neon-purple: #a200ff; --border: rgba(255, 255, 255, 0.1); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { height: 100%; height: -webkit-fill-available; background-color: var(--bg-dark); }
body { 
    margin: 0; padding: 0; min-height: 100vh; min-height: -webkit-fill-available; min-height: 100dvh;
    background-color: transparent; font-family: 'Rajdhani', sans-serif; color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    overflow-x: hidden; overflow-y: auto; padding-bottom: 90px;
}

.bg-layer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; background-image: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.15) 0%, transparent 60%), linear-gradient(0deg, #090915 0%, #1a1a2e 100%); }
.grid-bg { position: absolute; top: 0; left: 0; width: 200%; height: 200%; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 40px 40px; transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px); opacity: 0.3; animation: gridMove 20s linear infinite; }
@keyframes gridMove { 0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); } 100% { transform: perspective(500px) rotateX(60deg) translateY(40px) translateZ(-200px); } }

#rotate-warning { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 99999; flex-direction: column; justify-content: center; align-items: center; color: white; text-align: center; }
#rotate-warning i { font-size: 50px; margin-bottom: 20px; animation: rotateIcon 2s infinite; color: var(--neon-blue); }
@keyframes rotateIcon { 0%, 100% { transform: rotate(-90deg); } 50% { transform: rotate(0deg); } }
@media only screen and (orientation: landscape) and (max-height: 600px) { #rotate-warning { display: flex; } .modern-menu-container, .container-box, .bg-layer, .overlay, #toast, .menu-btn, .top-hud { display: none !important; } }

.container-box { width: 95%; max-width: 480px; margin: 100px auto 30px auto; background: var(--card-bg); border: 1px solid var(--border); border-radius: 24px; padding: 30px 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); display: flex; flex-direction: column; align-items: center; position: relative; z-index: 10; transition: 0.4s ease; }
.modern-menu-container { width: 92%; max-width: 420px; margin: auto; margin-top: calc(env(safe-area-inset-top) + 8vh); margin-bottom: 90px; background: rgba(18, 18, 28, 0.75); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.08); border-top: 1px solid rgba(255, 255, 255, 0.2); border-bottom: 1px solid rgba(0, 0, 0, 0.5); border-radius: 32px; padding: 40px 25px; box-shadow: 0 30px 60px rgba(0,0,0,0.7); display: flex; flex-direction: column; align-items: center; position: relative; z-index: 10; transition: 0.4s ease; }

.modern-modal { background: rgba(15, 15, 25, 0.85); backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 32px; padding: 30px 20px; width: 92%; max-width: 420px; box-shadow: 0 30px 60px rgba(0,0,0,0.8); display: flex; flex-direction: column; max-height: 85vh; overflow-y: auto; overflow-x: hidden; position: relative; box-sizing: border-box; }
.modern-modal::-webkit-scrollbar { width: 4px; } .modern-modal::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

.logo-area { text-align: center; margin-bottom: 30px; width: 100%; }
.game-title { font-size: 4rem; line-height: 0.9; margin: 0; font-weight: 900; letter-spacing: 2px; color: #fff; text-shadow: 0 0 25px rgba(255,255,255,0.3); }
.game-subtitle { color: var(--neon-blue); font-size: 1rem; letter-spacing: 5px; margin-top: 5px; font-weight: 800; text-transform: uppercase; text-shadow: 0 0 15px rgba(0, 240, 255, 0.5); }

.play-btn { width: 100%; background: linear-gradient(135deg, #00f0ff, #0055ff); color: #000; border: none; padding: 20px; border-radius: 20px; font-size: 1.4rem; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4); transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 15px; font-family: 'Rajdhani'; position: relative; overflow: hidden; }
.play-btn::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transform: skewX(-20deg); transition: 0.5s; }
.play-btn:hover::after { left: 150%; } .play-btn:active { transform: scale(0.96); }

.leaderboard-btn, .friends-btn, .market-btn { width: 100%; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 18px; border-radius: 20px; font-size: 1.1rem; font-weight: 800; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 12px; font-family: 'Rajdhani'; margin-bottom: 12px; }

.leaderboard-btn:hover { border-color: var(--neon-yellow); background: rgba(241, 196, 15, 0.1); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(241, 196, 15, 0.2); }
.leaderboard-btn i { color: var(--neon-yellow); font-size: 1.4rem; }

.friends-btn:hover { border-color: var(--neon-purple); background: rgba(162, 0, 255, 0.1); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(162, 0, 255, 0.2); }
.friends-btn i { color: var(--neon-purple); font-size: 1.4rem;}

.market-btn:hover { border-color: var(--neon-gold, #ffd700); background: rgba(255, 215, 0, 0.1); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2); }
.market-btn i { color: var(--neon-gold, #ffd700); font-size: 1.4rem; }

.friends-notif-dot { width: 10px; height: 10px; background: var(--neon-pink); border-radius: 50%; position: absolute; top: 12px; right: 20px; box-shadow: 0 0 8px var(--neon-pink); animation: blink 1s infinite; display: none; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.menu-btn { position: fixed; top: 15px; left: 15px; text-decoration: none; color: #fff; font-size: 0.95rem; font-weight: 700; padding: 10px 20px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.1); background: rgba(18, 18, 28, 0.85); backdrop-filter: blur(15px); transition: 0.3s; z-index: 100; display: flex; align-items: center; gap: 8px; }
.menu-btn:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.2); }

.top-hud { position: fixed; top: 15px; right: 15px; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; z-index: 100; max-width: calc(100vw - 120px); }
.points-hud, .profile-badge { background: rgba(18, 18, 28, 0.85); backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,0.1); padding: 5px 12px; border-radius: 50px; display: flex; align-items: center; transition: 0.3s; white-space: nowrap; }
.points-hud { gap: 6px; color: var(--neon-green); font-weight: 900; font-size: 1rem; box-shadow: 0 0 15px rgba(0, 255, 153, 0.1); border-color: rgba(0, 255, 153, 0.3); }
.points-hud img { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--neon-yellow); box-shadow: 0 0 5px var(--neon-yellow); object-fit: cover; }
.coin-hud { color: var(--neon-gold, #ffd700) !important; border-color: rgba(255, 215, 0, 0.3) !important; box-shadow: 0 0 15px rgba(255, 215, 0, 0.1) !important; }
.coin-hud i { color: var(--neon-gold, #ffd700); font-size: 1.2rem; filter: drop-shadow(0 0 5px #ffd700); }

.profile-badge { gap: 8px; cursor: pointer; box-shadow: 0 0 15px rgba(0, 240, 255, 0.1); border-color: rgba(0, 240, 255, 0.3); }
.profile-badge:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--neon-blue); }
.profile-badge img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--neon-blue); object-fit: cover; }
.profile-badge span { color: white; font-weight: 800; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; font-family: 'Segoe UI', sans-serif; }

@media (max-width: 480px) {
    .top-hud { top: 10px; right: 10px; gap: 5px; max-width: calc(100vw - 100px); }
    .menu-btn { top: 10px; left: 10px; padding: 6px 12px; font-size: 0.8rem;}
    .points-hud, .profile-badge { padding: 4px 8px; font-size: 0.8rem; }
    .profile-badge img { width: 28px; height: 28px; }
    .profile-badge span { font-size: 0.7rem; max-width: 55px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: middle; }
    .points-hud img { width: 18px; height: 18px; }
    .coin-hud i { font-size: 1rem; }
}

.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(5, 5, 10, 0.85); backdrop-filter: blur(15px); display: none; flex-direction: column; justify-content: center; align-items: center; z-index: 999; padding: 15px 15px 90px 15px; box-sizing: border-box; }

.lb-modal { border-top: 2px solid var(--neon-yellow); padding: 25px 20px; }
.lb-title { color: var(--neon-yellow); margin: 0 0 20px 0; font-size: 2.2rem; font-weight: 900; text-align: center; letter-spacing: 1px; text-shadow: 0 0 15px rgba(241,196,15,0.5); }
.lb-list { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding-right: 5px; }
.lb-item { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.03); padding: 12px 18px; border-radius: 16px; border: 1px solid transparent; cursor: pointer; transition: 0.3s; }
.lb-item.top-1 { border-color: var(--neon-yellow); background: rgba(241, 196, 15, 0.1); box-shadow: inset 0 0 10px rgba(241,196,15,0.1); }
.lb-item.top-2 { border-color: #c0c0c0; background: rgba(192, 192, 192, 0.08); }
.lb-item.top-3 { border-color: #cd7f32; background: rgba(205, 127, 50, 0.08); }
.lb-left { display: flex; align-items: center; gap: 15px; }
.lb-rank { font-weight: 900; font-size: 1.4rem; width: 30px; text-align: left; color: #888; }
.top-1 .lb-rank { color: var(--neon-yellow); } .top-2 .lb-rank { color: #c0c0c0; } .top-3 .lb-rank { color: #cd7f32; }
.lb-avatar { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid #555; }
.top-1 .lb-avatar { border-color: var(--neon-yellow); }
.lb-name { font-weight: 800; color: white; text-transform: uppercase; font-size: 1.1rem; font-family: 'Segoe UI', sans-serif;}
.lb-points { font-weight: 900; color: var(--neon-green); font-size: 1.3rem; font-family: 'Segoe UI', sans-serif; display: flex; align-items: center; gap: 6px; }
.lb-points img { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--neon-yellow); object-fit: cover; }

#playerProfileOverlay { z-index: 10050 !important; }
.player-profile-modal { border-top: 2px solid var(--neon-blue); text-align: center; padding: 30px 20px;}
.trophies-section { margin-top: 15px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); }
.trophies-section h3 { color: var(--neon-yellow); font-size: 1.1rem; margin-bottom: 15px; text-shadow: 0 0 10px rgba(241,196,15,0.3); font-weight: 900; }
.trophies-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px 10px; }
.trophy-item { display: flex; flex-direction: column; align-items: center; gap: 8px; transition: 0.3s; background: rgba(255,255,255,0.02); padding: 15px 5px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.03); }
.trophy-item i { font-size: 2.2rem; filter: drop-shadow(0 0 15px currentColor); }
.trophy-item span { font-size: 0.65rem; color: #fff; font-weight: 900; text-align: center; line-height: 1.2; letter-spacing: 0.5px; }
.trophy-item.locked { opacity: 0.7; }
.trophy-item.locked i { color: transparent !important; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.2); filter: drop-shadow(0 0 5px rgba(0,0,0,0.8)); }

.friends-modal { border-top: 2px solid var(--neon-purple); }
.friends-modal-title { color: var(--neon-purple); margin: 0 0 20px 0; font-size: 1.8rem; font-weight: 900; text-align: center; letter-spacing: 1px; text-shadow: 0 0 15px rgba(162,0,255,0.5); }
.friends-close-btn { position: absolute; top: 15px; right: 20px; background: none; border: none; color: #888; font-size: 1.5rem; cursor: pointer; transition: 0.3s; z-index: 10; }
.my-code-box { background: rgba(162,0,255,0.08); border: 1px solid rgba(162,0,255,0.4); border-radius: 16px; padding: 15px; margin-bottom: 20px; text-align: center; width: 100%; box-sizing: border-box; }
.my-code-label { color: #888; font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 5px; }
.my-code-value { color: var(--neon-purple); font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 900; letter-spacing: 2px; text-shadow: 0 0 10px rgba(162,0,255,0.5); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; word-break: break-all; }
.my-code-copy { font-size: 0.8rem; color: #555; margin-top: 5px; font-weight: 600; }
.add-friend-row { display: flex; gap: 8px; margin-bottom: 20px; width: 100%; max-width: 100%; box-sizing: border-box; }
.add-friend-input { flex: 1; min-width: 0; padding: 12px 15px; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: white; font-size: 1rem; font-weight: 700; letter-spacing: 1px; outline: none; text-transform: uppercase; box-sizing: border-box; }
.add-friend-send-btn { background: var(--neon-purple); border: none; color: #fff; padding: 0 15px; border-radius: 12px; font-weight: 800; cursor: pointer; font-family: 'Rajdhani'; white-space: nowrap; flex-shrink: 0; }
.friends-tabs { display: flex; gap: 4px; margin-bottom: 15px; background: rgba(0, 0, 0, 0.3); padding: 5px; border-radius: 12px; width: 100%; box-sizing: border-box; overflow-x: auto; }
.ftab { flex: 1; padding: 8px 2px; border-radius: 8px; border: none; background: transparent; color: #888; font-weight: 800; font-size: clamp(0.7rem, 2.5vw, 0.85rem); cursor: pointer; font-family: 'Rajdhani'; letter-spacing: 0.5px; display: flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap;}
.ftab.active { background: rgba(162,0,255,0.2); color: #fff; box-shadow: inset 0 0 10px rgba(162, 0, 255, 0.5); }
.ftab-badge { background: var(--neon-pink); color: #fff; border-radius: 50%; width: 16px; height: 16px; font-size: 0.7rem; display: none; align-items: center; justify-content: center; font-weight: 900; }
.ftab-badge.show { display: flex; }

.friends-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overflow-x: hidden; max-height: 250px; width: 100%; box-sizing: border-box; padding-right: 5px; }
.friend-item { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.03); padding: 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); width: 100%; box-sizing: border-box; overflow: hidden; }

/* 🔥 AVATAR TAŞMASI BURADA KÖKÜNDEN ÇÖZÜLDÜ (!important İLE SABİTLENDİ) 🔥 */
.friend-avatar { width: 40px !important; height: 40px !important; min-width: 40px !important; min-height: 40px !important; max-width: 40px !important; max-height: 40px !important; border-radius: 50%; object-fit: cover; border: 2px solid #444; flex-shrink: 0; }
.frp-avatar { width: 55px !important; height: 55px !important; min-width: 55px !important; min-height: 55px !important; max-width: 55px !important; max-height: 55px !important; border-radius: 50%; border: 2px solid var(--neon-purple); object-fit: cover; flex-shrink: 0; }

.clickable-profile { cursor: pointer; transition: 0.2s; }
.clickable-profile:hover { opacity: 0.8; transform: scale(1.02); }
.friend-info { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.friend-name { font-weight: 800; color: white; font-size: 0.9rem; text-transform: uppercase; font-family: 'Segoe UI', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-sub { color: #888; font-size: 0.7rem; font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-actions { display: flex; gap: 4px; flex-shrink: 0; }
.faction-btn { border: none; border-radius: 10px; padding: 8px 10px; font-weight: 800; font-size: 0.75rem; cursor: pointer; font-family: 'Rajdhani'; flex-shrink: 0; }
.faction-btn.accept { background: rgba(5,255,0,0.15); color: var(--neon-green); border: 1px solid rgba(5,255,0,0.3); }
.faction-btn.reject { background: rgba(255,0,60,0.12); color: var(--neon-pink); border: 1px solid rgba(255,0,60,0.3); }
.faction-btn.remove { background: rgba(255,255,255,0.07); color: #888; border: 1px solid rgba(255,255,255,0.1); }
.empty-msg { color: #555; font-weight: 700; font-size: 0.95rem; text-align: center; padding: 30px 0; width: 100%; }

.market-modal { border-top: 2px solid var(--neon-gold, #ffd700); }
.market-title { color: var(--neon-gold, #ffd700); margin: 0 0 20px 0; font-size: 2rem; font-weight: 900; text-align: center; text-shadow: 0 0 15px rgba(255,215,0,0.5); }
.market-grid { display: grid; grid-template-columns: 1fr; gap: 12px; overflow-y: auto; overflow-x: hidden; max-height: 50vh; padding-right: 5px; width: 100%; }
.market-item { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.03); padding: 12px 15px; border-radius: 16px; border: 1px solid rgba(255,215,0,0.2); width: 100%; box-sizing: border-box; }
.market-icon { width: 45px; height: 45px; border-radius: 10px; background: rgba(255,215,0,0.1); display: flex; justify-content: center; align-items: center; font-size: 1.5rem; color: var(--neon-gold, #ffd700); flex-shrink: 0; }
.market-info { flex: 1; padding: 0 12px; text-align: left; min-width: 0; }
.market-name { font-weight: 900; font-size: 1.1rem; color: #fff; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-desc { font-size: 0.75rem; color: #aaa; font-weight: 600; line-height: 1.2; }
.market-buy-btn { background: var(--neon-gold, #ffd700); color: #000; border: none; padding: 8px 15px; border-radius: 12px; font-weight: 900; cursor: pointer; transition: 0.2s; font-family: 'Rajdhani'; display: flex; align-items: center; gap: 5px; flex-shrink: 0; }

.friend-request-popup, .custom-confirm-popup { position: fixed; top: 85px; left: 50%; transform: translateX(-50%); background: rgba(18, 18, 28, 0.95); backdrop-filter: blur(25px); border: 1px solid rgba(255,255,255,0.1); border-top: 2px solid var(--neon-purple); border-radius: 28px; padding: 20px 25px; z-index: 100000; display: none; flex-direction: column; gap: 15px; width: 92%; max-width: 360px; box-shadow: 0 30px 60px rgba(0,0,0,0.8); animation: slideUpPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes slideUpPop { from { transform: translateX(-50%) translateY(30px) scale(0.9); opacity: 0; } to { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; } }
.frp-top { display: flex; align-items: center; gap: 15px; }
.frp-info { flex: 1; overflow: hidden; }
.frp-title { color: var(--neon-purple); font-size: 0.8rem; font-weight: 900; letter-spacing: 1px; }
.frp-name { color: white; font-weight: 900; font-size: 1.2rem; text-transform: uppercase; font-family: 'Segoe UI', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frp-btns { display: flex; gap: 10px; width: 100%; }
.frp-btn { flex: 1; padding: 12px; border-radius: 30px; border: none; font-weight: 900; font-size: 0.95rem; cursor: pointer; font-family: 'Rajdhani'; transition: 0.2s; }
.frp-btn.yes { background: var(--neon-green); color: #000; }
.frp-btn.no { background: rgba(255,0,60,0.1); color: var(--neon-pink); border: 1px solid var(--neon-pink); }

.custom-confirm-popup { position: fixed; top: 85px; left: 50%; transform: translateX(-50%); background: rgba(18, 18, 28, 0.95); backdrop-filter: blur(25px); border: 1px solid rgba(255,255,255,0.1); border-radius: 28px; padding: 25px; z-index: 100000; display: none; flex-direction: column; width: 92%; max-width: 400px; box-shadow: 0 30px 60px rgba(0,0,0,0.8); animation: slideUpPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.custom-confirm-title { color: #fff; font-size: 1.3rem; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; text-align: center; }
.custom-confirm-text { color: #ccc; font-size: 1.05rem; font-weight: 700; text-align: center; margin-bottom: 22px; line-height: 1.4; }
.custom-confirm-btns { display: flex; gap: 12px; width: 100%; }
.custom-confirm-btn { flex: 1; padding: 14px; border-radius: 30px; border: none; font-weight: 900; font-size: 1rem; cursor: pointer; font-family: 'Rajdhani'; transition: 0.2s; }
.custom-confirm-btn.yes { background: rgba(5,255,0,0.15); color: var(--neon-green); border: 1px solid rgba(5,255,0,0.4); }
.custom-confirm-btn.no { background: rgba(255,0,60,0.15); color: var(--neon-pink); border: 1px solid rgba(255,0,60,0.4); }
.custom-confirm-popup.friend-remove { border-top: 2px solid var(--neon-orange); }
.custom-confirm-popup.friend-remove .custom-confirm-title { color: var(--neon-orange); text-shadow: 0 0 15px rgba(255,153,0,0.3); }
.custom-confirm-popup.friend-remove .custom-confirm-btn.yes { background: rgba(255,153,0,0.15); color: var(--neon-orange); border-color: rgba(255,153,0,0.4); }
.custom-confirm-popup.match-invite { border-top: 2px solid var(--neon-blue); }
.custom-confirm-popup.match-invite .custom-confirm-title { color: var(--neon-blue); text-shadow: 0 0 15px rgba(0,240,255,0.3); }
.custom-confirm-popup.match-invite .custom-confirm-btn.yes { background: rgba(0,240,255,0.15); color: var(--neon-blue); border-color: rgba(0,240,255,0.4); }

.game-container { display: none; padding: 45px 15px 15px 15px; border-top: 4px solid var(--neon-blue); margin-top: 90px; margin-bottom: 20px; width: 95%; max-width: 480px; box-sizing: border-box; }
.searching-container { display: none; text-align: center; padding: 40px 20px; margin-top: 90px; }

.radar-box { width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(0, 243, 255, 0.2); position: relative; margin: 0 auto 30px auto; background: radial-gradient(circle, rgba(0,243,255,0.1) 0%, transparent 60%); box-shadow: 0 0 40px rgba(0, 243, 255, 0.1); }
.radar-line { width: 50%; height: 2px; background: linear-gradient(90deg, transparent, var(--neon-blue)); position: absolute; top: 50%; left: 50%; transform-origin: 0 0; animation: radarSpin 1.5s linear infinite; }
@keyframes radarSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.search-text { font-size: 1.8rem; font-weight: 800; margin: 0; color: #fff; }
.search-sub { color: #666; font-size: 1rem; margin-top: 5px; font-weight: 500; }
.cancel-btn { background: transparent; border: 2px solid var(--neon-pink); color: var(--neon-pink); padding: 10px 30px; border-radius: 30px; font-weight: 700; font-size: 0.9rem; cursor: pointer; margin-top: 30px; transition: 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.cancel-btn:hover { background: var(--neon-pink); color: #fff; box-shadow: 0 0 20px var(--neon-pink); }
.match-timer-box { margin-top: 20px; font-size: 1.1rem; font-weight: 800; color: var(--neon-yellow); text-shadow: 0 0 10px rgba(252, 238, 10, 0.4); letter-spacing: 1px; background: rgba(252, 238, 10, 0.05); padding: 8px 20px; border-radius: 20px; border: 1px solid rgba(252, 238, 10, 0.2); display: inline-block; }
.match-timer-box span { font-size: 1.4rem; margin-left: 5px; }

.timer-badge { position: absolute !important; top: -38px !important; left: 50% !important; transform: translateX(-50%) !important; width: 75px !important; height: 75px !important; background-color: #0d0d1a !important; border: 4px solid var(--neon-blue) !important; border-radius: 50% !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 2.4rem !important; font-weight: 900 !important; color: #fff !important; box-shadow: 0 0 25px rgba(0, 240, 255, 0.5), inset 0 0 10px rgba(0, 240, 255, 0.2) !important; z-index: 100 !important; transition: 0.3s !important; }
@media (max-width: 400px) { .timer-badge { width: 65px !important; height: 65px !important; top: -32px !important; font-size: 2rem !important; border-width: 3px !important; } }
.timer-badge.danger { border-color: var(--neon-pink) !important; color: var(--neon-pink) !important; box-shadow: 0 0 40px var(--neon-pink), inset 0 0 15px var(--neon-pink) !important; animation: pulseTimer 0.8s infinite !important; }
.timer-badge.bonus { border-color: var(--neon-green) !important; color: var(--neon-green) !important; box-shadow: 0 0 40px var(--neon-green), inset 0 0 15px var(--neon-green) !important; animation: pulseBonus 0.5s ease-out !important; }

.header { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 12px; background: rgba(0,0,0,0.2); border-radius: 16px; padding: 10px; box-sizing: border-box; }
.player-badge { flex: 1; padding: 8px; display: flex; flex-direction: column; align-items: center; border-radius: 12px; position: relative; min-width: 0;}
.player-badge.me { background: rgba(5, 255, 0, 0.05); border: 1px solid rgba(5, 255, 0, 0.2); }
.player-badge.opp { background: rgba(255, 0, 60, 0.05); border: 1px solid rgba(255, 0, 60, 0.2); }
.p-label { font-size: 0.75rem; font-weight: 800; opacity: 0.8; letter-spacing: 1px; margin-bottom: 2px; }
.score-num { font-size: 2rem; font-weight: 900; line-height: 1; }
.vs-middle { font-style: italic; font-weight: 900; font-size: 1.2rem; color: #444; margin: 0 10px; flex-shrink: 0; }

.img-container { width: 100%; max-width: 340px; height: 22vh; min-height: 160px; max-height: 250px; flex-shrink: 1; background: #0c0c14; border-radius: 16px; overflow: hidden; border: 2px solid #333; box-shadow: 0 10px 30px rgba(0,0,0,0.3); margin: 0 auto 12px auto; position: relative; z-index: 10; }
.img-container img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.5s; }
.img-container.success { border-color: var(--neon-green); box-shadow: 0 0 30px rgba(0, 255, 153, 0.4); }
.img-container.success img { transform: scale(1.03); }

.lives-wrapper { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; width: 100%; }
.heart { font-size: 1.2rem; color: var(--neon-pink); transition: 0.3s; filter: drop-shadow(0 0 5px var(--neon-pink)); }
.heart.lost { color: #333; transform: scale(0.8); filter: none; opacity: 0.5; }

.powerup-bar { display: flex; justify-content: center; gap: 8px; width: 100%; margin-bottom: 12px; }
.pu-btn { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); color: #fff; font-size: 1.1rem; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.2s; flex-shrink: 0; }
.pu-btn:hover:not(:disabled) { background: rgba(255,215,0,0.2); border-color: var(--neon-gold, #ffd700); color: var(--neon-gold, #ffd700); }
.pu-btn:disabled { opacity: 0.3; cursor: not-allowed; filter: grayscale(1); pointer-events: none; }
.pu-count { position: absolute; top: -5px; right: -5px; background: var(--neon-pink); color: #fff; font-size: 0.65rem; font-weight: 900; width: 16px; height: 16px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 0 8px var(--neon-pink); font-family: 'Segoe UI', sans-serif; }

.slots { display: flex; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; min-height: 35px; width: 100%; gap: 4px; box-sizing: border-box;}
.word-wrapper { display: flex; flex-wrap: nowrap; gap: 4px; margin: 0 12px 8px 12px; }
.slot { width: clamp(22px, 5.5vw, 30px); height: clamp(30px, 7vh, 40px); background: #1a1a2e; border-bottom: 3px solid #333; border-radius: 6px; display: flex; justify-content: center; align-items: center; font-size: clamp(1rem, 4vw, 1.3rem); font-weight: 800; color: #fff; transition: 0.2s; font-family: 'Segoe UI', sans-serif; }
.slot.filled { background: rgba(0, 240, 255, 0.1); border-color: var(--neon-blue); color: var(--neon-blue); box-shadow: 0 0 10px rgba(0, 240, 255, 0.2); }

.keyboard { display: grid; grid-template-columns: repeat(8, 1fr); gap: clamp(3px, 1vw, 6px); width: 100%; padding-bottom: 5px; box-sizing: border-box;}
.key { width: 100%; height: clamp(35px, 7.5vh, 45px); background: #252535; color: #ddd; border: none; border-radius: 8px; font-weight: 700; font-size: clamp(1rem, 4vw, 1.2rem); cursor: pointer; box-shadow: 0 4px 0 #151520; transition: 0.1s; font-family: 'Segoe UI', sans-serif; display: flex; justify-content: center; align-items: center; padding: 0; margin: 0; }
.key.correct { background: var(--neon-green); color: #000; box-shadow: 0 4px 0 #00b300; pointer-events: none;}
.key.wrong { background: var(--neon-pink); color: #fff; box-shadow: 0 0 10px var(--neon-pink); transform: scale(0.9); opacity: 0.5; pointer-events: none; }

/* 🔥 EFEKTLER 🔥 */
#keyboard { position: relative; }
#imgBox { position: relative; }

.ice-overlay { position: absolute; inset: -5px; background: rgba(0, 240, 255, 0.4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 20; border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 3.5rem; color: white; cursor: pointer; text-shadow: 0 0 15px #00f0ff; border: 3px solid #00f0ff; box-shadow: inset 0 0 30px #00f0ff; touch-action: manipulation; user-select: none; flex-direction: column; }
.ice-overlay span { font-size: 1rem; text-transform: uppercase; font-family: 'Rajdhani'; font-weight: 900; letter-spacing: 2px; text-shadow: 0 0 10px #000; margin-top: 10px; }

.effect-frozen-key { background: rgba(0,240,255,0.8) !important; color: #fff !important; box-shadow: 0 0 15px #00f0ff, inset 0 0 10px #fff !important; border-color: #fff !important; position: relative; transition: 0.1s; }
.effect-frozen-key::after { content: attr(data-ice); position: absolute; top: -8px; right: -8px; background: var(--neon-pink); color: #fff; width: 20px; height: 20px; font-size: 0.75rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; box-shadow: 0 0 10px var(--neon-pink); }

.blur-overlay { position: absolute; inset: -5px; z-index: 25; border-radius: 16px; cursor: pointer; display: none; flex-direction: column; justify-content: center; align-items: center; color: white; transition: 0.2s; overflow: hidden; touch-action: manipulation; }

.effect-flip-kb { transform: rotate(180deg); transition: 0.5s; }
.locked-label { display: none; color: var(--neon-pink); font-size: 0.75rem; font-weight: 900; margin-top: 4px; animation: blink 1s infinite; letter-spacing: 1px;}

/* SONUÇ EKRANI */
.res-icon { font-size: 6rem; margin-bottom: 20px; filter: drop-shadow(0 0 25px currentColor); }
.res-title { font-size: 3.5rem; margin: 0; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; text-shadow: 0 0 20px currentColor; text-align:center;}
.res-subtitle { font-size: 1.5rem; font-weight: 900; letter-spacing: 1px; margin-bottom: 30px; text-shadow: 0 0 15px currentColor; font-family: 'Segoe UI', sans-serif;}
.scoreboard { display: flex; align-items: center; justify-content: center; gap: 20px; background: rgba(18, 18, 28, 0.7); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.15); padding: 30px 40px; border-radius: 32px; box-shadow: 0 20px 50px rgba(0,0,0,0.8); width: 100%; box-sizing: border-box; max-width: 400px; }
.sb-box { text-align: center; flex: 1; min-width: 0; }
.sb-label { display: block; font-size: 1.1rem; font-weight: 800; letter-spacing: 2px; color: #aaa; margin-bottom: 10px; font-family: 'Segoe UI', sans-serif;}
.sb-score { font-size: clamp(3rem, 10vw, 5rem); font-weight: 900; line-height: 1; text-shadow: 0 0 20px currentColor; }
.sb-vs { font-size: 2rem; font-weight: 900; font-style: italic; color: #555; flex-shrink: 0; }
.res-btn { margin-top: 40px; background: #fff; color: #000; border: none; padding: 18px 50px; font-weight: 900; font-size: 1.2rem; border-radius: 50px; cursor: pointer; transition: 0.3s; font-family: 'Rajdhani'; box-shadow: 0 10px 20px rgba(255,255,255,0.2); margin-bottom: 20px; }
.res-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 15px 30px rgba(255,255,255,0.4); }
@keyframes popIn { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes slideUp { 0% { transform: translateY(50px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }

#toast { visibility: hidden; min-width: 250px; background-color: rgba(18, 18, 28, 0.95); color: #fff; text-align: center; border-radius: 50px; padding: 15px; position: fixed; z-index: 200000; left: 50%; bottom: 100px; transform: translateX(-50%); font-size: 1rem; font-weight: 700; border: 1px solid #444; opacity: 0; transition: 0.3s; backdrop-filter: blur(15px); font-family: 'Segoe UI', sans-serif; box-shadow: 0 15px 30px rgba(0,0,0,0.5);}
#toast.show { visibility: visible; opacity: 1; bottom: 100px; }
#toast.toast-invalid { border-color: var(--neon-pink) !important; color: var(--neon-pink) !important; box-shadow: 0 0 20px rgba(255, 0, 60, 0.4); }
#toast.toast-friend-removed { border-color: var(--neon-orange) !important; color: var(--neon-orange) !important; box-shadow: 0 0 20px rgba(255, 153, 0, 0.4); }