/* styles.css - GÜNCELLENMİŞ */

:root {
    --glass-bg: rgba(20, 20, 20, 0.8);
    --border-light: rgba(255, 255, 255, 0.15);
    --c-orange: #ff9900;
    --c-blue: #00ccff;
    --c-purple: #9b59b6;
    --c-yellow: #f1c40f;
    --c-green: #2ecc71;
    --c-red: #ff4757;
    --font-main: 'Rajdhani', sans-serif;
}

/* RENK KÖRLÜĞÜ MODU (GLOBAL) */
body.colorblind-mode {
    --c-green: #0077b6 !important; /* Mavi */
    --c-orange: #d90429 !important; /* Koyu Kırmızı */
    --c-red: #d90429 !important;
}

/* Renk körlüğü için override sınıfları */
body.colorblind-mode .correct { 
    background-color: var(--c-green) !important; 
    border-color: var(--c-green) !important; 
    box-shadow: 0 0 15px var(--c-green) !important;
}
body.colorblind-mode .incorrect { 
    background-color: var(--c-red) !important; 
    border-color: var(--c-red) !important; 
}
body.colorblind-mode .simple-result.correct { border-color: var(--c-green) !important; background: rgba(0, 119, 182, 0.2); }
body.colorblind-mode .simple-result.wrong { border-color: var(--c-red) !important; background: rgba(217, 4, 41, 0.2); }


* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; -webkit-tap-highlight-color: transparent; }

body {
    background-image: url('../img/background.webp');
    background-color: #050505;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    font-family: var(--font-main);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px; /* SABİT PADDING */
}

/* --- LOGO SABİTLEME --- */
.main-container {
    width: 100%;
    max-width: 500px; /* Genişliği biraz artırdım */
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    position: relative;
}

.logo-wrapper {
    flex: 0 0 100px; /* Logo alanı sabit yükseklik */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    z-index: 10;
}

.game-logo {
    height: 80px; /* Logo sabit boy */
    width: auto;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.8));
    transition: transform 0.3s;
}
.game-logo:hover { transform: scale(1.05); }

/* --- GLOBAL POP-UP ZAFER EKRANI (OVERLAY) --- */
.victory-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none; /* JS ile flex yapılacak */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeIn 0.4s ease-out;
}

.victory-content {
    background: #1a1a1a;
    border: 2px solid var(--c-green);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 50px rgba(46, 204, 113, 0.3);
    position: relative;
}

.victory-title {
    color: var(--c-green);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.victory-img {
    width: 150px;
    height: 150px;
    border-radius: 15px;
    border: 3px solid var(--c-green);
    object-fit: cover;
    margin: 0 auto 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.victory-name {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.victory-details {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.victory-btn {
    background: var(--c-green);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.2s;
}

.victory-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--c-green);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Diğer mevcut CSS kodların (glass-panel vs.) buranın altında kalabilir... */
/* ... (Buraya styles.css'in geri kalanını kopyalayabilirsin, ama üstteki tanımlar kritik) ... */


* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; -webkit-tap-highlight-color: transparent; }

body {
    background-image: url('../img/background.webp');
    background-color: #050505;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    font-family: var(--font-main);
    height: 100vh;
    height: 100dvh; /* Mobilde tam ekran için */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px; 
}

.bg-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(4px);
    z-index: -1;
}

.main-container {
    width: 100%;
    max-width: 450px;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: auto;
}

.logo-wrapper {
    text-align: center;
    margin-bottom: 0;
    z-index: 2;
    animation: floatLogo 4s ease-in-out infinite;
}
 floatLogo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.game-logo {
    width: 260px;
    max-width: 85%;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.8));
    transition: transform 0.3s;
}
.game-logo:hover { transform: scale(1.02); }

.glass-panel {
    background: rgba(25, 25, 25, 0.75);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    display: flex; flex-direction: column;
    gap: 10px;
}

.glass-card {
    display: flex; align-items: center; text-decoration: none;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 15px;
    transition: all 0.2s ease; overflow: hidden;
}
.glass-card:hover { background: rgba(255, 255, 255, 0.08); transform: translateX(3px); }

.orange-glow:hover { border-left: 3px solid var(--c-orange); box-shadow: -5px 0 15px rgba(255, 153, 0, 0.1); }
.blue-glow:hover { border-left: 3px solid var(--c-blue); box-shadow: -5px 0 15px rgba(0, 204, 255, 0.1); }
.purple-glow:hover { border-left: 3px solid var(--c-purple); box-shadow: -5px 0 15px rgba(155, 89, 182, 0.1); }
.yellow-glow:hover { border-left: 3px solid var(--c-yellow); box-shadow: -5px 0 15px rgba(241, 196, 15, 0.1); }

.icon-box { 
    width: 45px; height: 45px; margin-right: 12px; 
    display: flex; justify-content: center; align-items: center; flex-shrink: 0; 
}
.mode-icon {
    width: 100%; height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    transition: transform 0.3s;
}
.glass-card:hover .mode-icon { transform: rotate(10deg) scale(1.1); }

.text-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.mode-title { color: #fff; font-size: 1.1rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 1px; }
.mode-desc { color: rgba(255,255,255,0.5); font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.arrow-icon { color: rgba(255,255,255,0.2); font-size: 1rem; transition: 0.3s; }

.footer-row { display: flex; gap: 15px; margin-top: 5px; }

.mini-glass {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ddd;
    text-decoration: none;
    padding: 16px 10px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 800;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.mini-glass:hover { 
    background: rgba(255,255,255,0.08); 
    color: #fff; 
    border-color: rgba(255,255,255,0.3); 
    transform: translateY(-2px);
}

.mini-icon { 
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6)); 
    object-fit: contain;
}

.footer-action {
    display: flex; justify-content: center; gap: 20px;
    margin-top: 10px; 
}
.footer-btn {
    width: 45px; height: 45px;
    border-radius: 50%; background: rgba(25, 25, 25, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; cursor: pointer;
    display: flex; justify-content: center; align-items: center;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); backdrop-filter: blur(8px);
}
.footer-btn svg { width: 20px; height: 20px; fill: currentColor; }
.icon-i { font-family: 'Times New Roman', serif; font-weight: bold; font-size: 1.3rem; font-style: italic; }
.info-main { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); }
.footer-btn:hover { background: var(--c-orange); color: #000; transform: translateY(-3px) scale(1.1); border-color: var(--c-orange); box-shadow: 0 0 15px rgba(255, 153, 0, 0.6); }

/* --- KESİN ÇÖZÜM: GRID İLE ORTALAMA & SCROLLBAR GİZLEME --- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh; /* Mobilde tam ekran garantisi */
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.glass-modal {
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 24px;
    padding: 20px;
    width: 100%;
    max-width: 450px;
    max-height: 85vh; 
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    margin: 0; 
    overflow-y: auto;
    transform: translateZ(0);
}

.glass-modal { scrollbar-width: none; }
.glass-modal::-webkit-scrollbar { display: none; width: 0 !important; height: 0 !important; background: transparent; }

.close-modal-x {
    position: absolute; top: 15px; right: 20px; background: none; border: none; color: #666;
    font-size: 1.8rem; cursor: pointer; z-index: 10; line-height: 1;
}
.close-modal-x:hover { color: #fff; }

.modal-title { 
    color: var(--c-orange); font-size: 1.3rem; font-weight: 900; 
    margin-bottom: 20px; letter-spacing: 2px; text-transform: uppercase; text-align: center; 
}

.divider-line { 
    width: 100%; height: 1px; 
    background: rgba(255,255,255,0.15);
    margin: 15px 0; 
}

.legal-section { width: 100%; text-align: center; }
.legal-text { font-size: 0.75rem; color: #aaa; margin-bottom: 8px; line-height: 1.4; font-weight: 500; }
.legal-sub { font-size: 0.65rem; color: #666; font-style: italic; margin-bottom: 5px; }

.social-section { width: 100%; display: flex; flex-direction: column; align-items: center; }
.section-label { 
    display: block; font-size: 0.8rem; color: var(--c-blue); 
    margin-bottom: 10px; font-weight: 700; letter-spacing: 0.5px; text-align: center; 
}
.social-icons { display: flex; gap: 20px; justify-content: center; width: 100%; margin-bottom: 5px; }
.social-btn { width: 45px; height: 45px; border-radius: 50%; background: #1a1a1a; border: 1px solid #444; color: #fff; display: flex; justify-content: center; align-items: center; text-decoration: none; transition: 0.3s; }
.social-btn svg { width: 22px; height: 22px; }
.social-btn:hover { border-color: #fff; background: #fff; color: #000; transform: translateY(-3px); }
.handle { 
    font-size: 0.85rem; 
    color: #888; 
    margin-top: 5px; 
    font-weight: 500; 
    font-style: italic;
}

.inspiration-box { width: 100%; text-align: center; margin-bottom: 15px; }
.mini-label { font-size: 0.65rem; color: #666; display: block; margin-bottom: 5px; font-weight: 700; letter-spacing: 1px; }
.link-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.link-tags a { color: #ccc; font-size: 0.7rem; text-decoration: none; border: 1px solid #333; padding: 5px 10px; border-radius: 8px; transition: 0.2s; background: #1a1a1a; font-weight: 600; }
.link-tags a:hover { border-color: var(--c-blue); color: var(--c-blue); }

.tribute-message { background: rgba(243, 156, 18, 0.08); border: 1px solid rgba(243, 156, 18, 0.3); border-radius: 12px; padding: 10px; width: 100%; text-align: center; }
.toriyama-name { color: var(--c-orange); font-weight: 800; font-size: 0.9rem; display: block; }
.rip-date { color: #777; font-size: 0.7rem; display: block; margin-bottom: 3px; }
.tribute-message p { font-size: 0.75rem; color: #bbb; line-height: 1.3; margin: 0; }

.settings-content { width: 100%; }
.setting-label { 
    color: #666; font-size: 0.75rem; font-weight: 800; display: block; 
    margin-bottom: 15px; letter-spacing: 1px; text-transform: uppercase;
    text-align: center; width: 100%;
}
.lang-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) {
    .glass-modal { max-width: 650px; }
    .lang-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

.lang-btn { padding: 12px 5px; background: #1a1a1a; border: 1px solid #333; color: #999; border-radius: 8px; font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: 0.2s; display: flex; justify-content: center; align-items: center; gap: 6px; white-space: nowrap; }
.lang-btn:hover { border-color: #777; color: #fff; }
.lang-btn.active { background: var(--c-orange); color: #000; border-color: var(--c-orange); box-shadow: 0 0 10px rgba(255, 153, 0, 0.4); }

.stats-box { width: 100%; }
.stats-grid { display: flex; gap: 15px; width: 100%; margin-bottom: 20px; }
.stat-item { flex: 1; background: #161616; border: 1px solid #333; border-radius: 16px; padding: 20px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stat-icon { font-size: 1.8rem; margin-bottom: 10px; }
.stat-value { font-size: 2.2rem; font-weight: 900; color: #fff; line-height: 1; }
.stat-name { font-size: 0.7rem; color: #777; font-weight: 700; margin-top: 8px; letter-spacing: 1px; text-transform: uppercase; }

.achievements-btn { width: 100%; padding: 18px; background: linear-gradient(90deg, rgba(46, 204, 113, 0.15), rgba(39, 174, 96, 0.15)); border: 1px solid var(--c-green); color: var(--c-green); border-radius: 12px; font-weight: 800; font-size: 1rem; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 1px; }
.achievements-btn:hover { background: var(--c-green); color: #000; box-shadow: 0 0 20px rgba(46, 204, 113, 0.4); }

.achievement-box { width: 100%; }
.achievement-box.no-padding-bottom { padding-bottom: 20px; }
.ach-layout-container { display: flex; flex-direction: column; gap: 20px; width: 100%; overflow: visible; }
.ach-column { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.col-title { text-align: center; font-size: 0.85rem; color: var(--c-blue); font-weight: 800; letter-spacing: 1.5px; border-bottom: 1px solid #333; padding-bottom: 8px; margin-bottom: 5px; }
.ach-list-vertical { display: flex; flex-direction: column; gap: 10px; }
.ach-centered-row { width: 100%; margin-top: 20px; display: flex; justify-content: center; }
.ach-centered-row .ach-item { width: 100%; background: rgba(20, 20, 20, 0.5); border-color: #333; }
.ach-centered-row .ach-item.unlocked { background: rgba(46, 204, 113, 0.1); border-color: var(--c-green); }

.ach-item { display: flex; align-items: center; gap: 15px; background: #161616; border: 1px solid #2a2a2a; border-radius: 12px; padding: 12px 15px; width: 100%; min-height: 65px; transition: 0.3s; }
.ach-item.locked { opacity: 0.5; }
.ach-item.unlocked { background: rgba(255, 153, 0, 0.08); border-color: var(--c-orange); opacity: 1; }
.ach-icon-wrapper { width: 42px; height: 42px; border-radius: 50%; background: #000; border: 1px solid #333; display: flex; justify-content: center; align-items: center; flex-shrink: 0; overflow: hidden; }
.emoji-icon { font-size: 1.4rem; }
.ach-img { width: 100%; height: 100%; object-fit: cover; }
.ach-details { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.ach-header { display: flex; justify-content: space-between; align-items: baseline; }
.ach-header h4 { font-size: 0.9rem; color: #fff; font-weight: 700; margin: 0; }
.ach-counter { font-size: 0.8rem; color: #777; font-family: monospace; font-weight: bold; }
.ach-desc { font-size: 0.75rem; color: #999; line-height: 1.2; }
.progress-container { width: 100%; height: 4px; background: #222; margin-top: 6px; border-radius: 2px; }
.progress-bar { height: 100%; background: var(--c-orange); width: 0%; transition: width 0.5s; }
.ach-item.unlocked .progress-bar { background: var(--c-green); }

@media (min-width: 768px) {
    body { padding-top: 60px; align-items: flex-start; }
    .main-container { max-width: 550px; }
    .glass-panel { padding: 25px; gap: 15px; }
    .glass-card { padding: 15px 20px; }
    .glass-modal { max-width: 650px; padding: 35px; }
    .ach-layout-container { flex-direction: row; gap: 30px; }
    .ach-column { flex: 1; }
    .ach-centered-row .ach-item { max-width: 60%; }
}

/* ==========================================================================
   AYARLAR & TRANSFER TASARIMI
========================================================================== */
.transfer-box { background: rgba(0, 0, 0, 0.4); border: 1px dashed rgba(255, 255, 255, 0.2); border-radius: 12px; padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.transfer-desc { font-size: 0.75rem; color: #aaa; text-align: center; margin: 0; line-height: 1.4; }
.generated-code { font-family: 'Rajdhani', monospace; font-size: 1.8rem; letter-spacing: 4px; color: #ff9900; font-weight: 900; background: rgba(0, 0, 0, 0.6); border: 2px dashed #ff9900; padding: 12px; border-radius: 8px; text-align: center; margin-bottom: 5px; cursor: pointer; user-select: none; transition: all 0.2s ease; text-shadow: 0 0 10px rgba(255, 153, 0, 0.3); }
.generated-code:active { transform: scale(0.96); background: #ff9900; color: #000; }
.transfer-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.transfer-row { display: flex; gap: 8px; width: 100%; justify-content: center; align-items: center; }
.trans-input { flex: 1; background: #111; border: 1px solid #444; color: #fff; padding: 12px; border-radius: 8px; text-align: center; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: 2px; text-transform: uppercase; outline: none; min-width: 0; }
.trans-input:focus { border-color: #ff9900; background: #000; }
.trans-btn { border: none; border-radius: 8px; font-weight: 800; cursor: pointer; font-family: 'Rajdhani', sans-serif; text-transform: uppercase; transition: 0.2s; display: flex; justify-content: center; align-items: center; }
.trans-btn.gen { width: 100%; padding: 12px; background: #00ccff; color: #000; letter-spacing: 1px; box-shadow: 0 4px 10px rgba(0, 204, 255, 0.2); }
.trans-btn.gen:hover { background: #33d6ff; transform: translateY(-2px); }
.trans-btn.use { width: 70px; background: #2ecc71; color: #000; font-size: 1rem; padding: 12px; }
.trans-btn.use:hover { background: #27ae60; transform: translateY(-2px); }
.tribute-message.danger-style { background: rgba(231, 76, 60, 0.1) !important; border: 1px solid #e74c3c !important; margin-top: 20px; padding: 15px; border-radius: 16px; text-align: center; }
.danger-title { color: #ff4757 !important; font-weight: 900; letter-spacing: 2px; }
.btn-reset { background: #e74c3c; color: white; border: none; padding: 12px 20px; border-radius: 8px; font-weight: 800; cursor: pointer; width: 100%; text-transform: uppercase; letter-spacing: 1px; transition: 0.2s; }
.btn-reset:hover { background: #c0392b; box-shadow: 0 0 10px rgba(231, 76, 60, 0.4); }
.system-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; height: 100dvh; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px); z-index: 20000; display: flex; justify-content: center; align-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: 0.2s; }
.system-modal-overlay.active { opacity: 1; visibility: visible; }
.system-modal-content { background: #111; border: 1px solid #333; border-radius: 16px; padding: 25px; width: 100%; max-width: 350px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.8); transform: scale(0.9); transition: 0.2s; }
.system-modal-overlay.active .system-modal-content { transform: scale(1); }
.sys-title { color: #fff; font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; text-transform: uppercase; }
.sys-msg { color: #aaa; font-size: 0.9rem; margin-bottom: 20px; line-height: 1.4; }
.sys-btns { display: flex; gap: 10px; justify-content: center; width: 100%; }
.sys-btn { flex: 1; padding: 12px; border-radius: 8px; font-weight: 800; border: none; cursor: pointer; text-transform: uppercase; }
.sys-btn.cancel { background: #333; color: #fff; }
.sys-btn.confirm { background: var(--c-orange); color: #000; }
.danger-mode { border-color: #ff4757 !important; box-shadow: 0 0 30px rgba(255, 71, 87, 0.2) !important; }
.danger-mode .sys-title { color: #ff4757 !important; }
.danger-mode .sys-btn.confirm { background: #ff4757 !important; color: #fff !important; }
.success-mode { border-color: #2ecc71 !important; }
.success-mode .sys-title { color: #2ecc71 !important; }
.success-mode .sys-btn.confirm { background: #2ecc71 !important; color: #000 !important; }
.code-display-hidden { display: none; opacity: 0; transform: translateY(-10px); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); margin-bottom: 15px; }
.code-display-hidden.active { display: block; opacity: 1; transform: translateY(0); }
.code-hints { display: flex; justify-content: space-between; margin-top: 8px; padding: 0 5px; }
.hint-text { font-size: 0.7rem; color: #888; font-weight: 600; text-transform: uppercase; }
.hint-timer { font-size: 0.7rem; color: #e74c3c; font-weight: 700; text-transform: uppercase; animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 0.7; } 50% { opacity: 1; } 100% { opacity: 0.7; } }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 5px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.toggle-row span { color: #ccc; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.5px; }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #333; transition: .4s; border-radius: 22px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--c-orange); }
input:checked + .slider:before { transform: translateX(18px); }
body.no-anim * { animation: none !important; transition: none !important; }

/* --- ERİŞİLEBİLİRLİK (RENK KÖRLÜĞÜ) --- */
/* BURAYA DİKKAT: .correct ve .incorrect sınıflarına filter ekledim */
/* Çünkü classic.css'deki maskeleme, box-shadow'u yok ediyor. */
body.colorblind-mode {
    --c-green: #0077b6 !important;
    --c-orange: #d90429 !important;
}
body.colorblind-mode .correct { 
    background-color: #0077b6 !important; 
    border-color: #0077b6 !important; 
    /* Box-shadow yerine filter kullanarak parlamayı kurtarıyoruz */
    filter: drop-shadow(0 0 8px #0077b6) !important;
    box-shadow: none !important; 
}
body.colorblind-mode .incorrect { 
    background-color: #d90429 !important; 
    border-color: #d90429 !important; 
    box-shadow: none !important;
}
body.colorblind-mode .hint-up { background: linear-gradient(to top, #d90429, #0077b6) !important; }
body.colorblind-mode .hint-down { background: linear-gradient(to bottom, #d90429, #0077b6) !important; }

/* =========================================
   YENİ SONUÇ KUTULARI (YUMUŞAK KARELER)
========================================= */
.simple-results-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 25px; width: 100%; padding: 10px; }
.simple-result { width: 70px; height: 70px; border-radius: 16px; display: flex; justify-content: center; align-items: center; background: rgba(30, 30, 30, 0.6); border: 3px solid rgba(255, 255, 255, 0.1); padding: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); animation: popIn 0.4s ease forwards; }
.simple-result.correct { border-color: #2ecc71; background: rgba(46, 204, 113, 0.15); box-shadow: 0 0 20px rgba(46, 204, 113, 0.4); transform: scale(1.1); z-index: 2; }
.simple-result.wrong { border-color: #ff4757; background: rgba(255, 71, 87, 0.1); opacity: 0.9; }
.result-icon { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
@keyframes popIn { 0% { transform: scale(0) translateY(20px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }

/* Menü butonlarını ve ana paneli GPU üzerinden işleterek donmayı engeller */
.tab-btn, .game-panel, .glass-panel-mini {
    transform: translateZ(0); /* Donanım hızlandırmayı açar */
    backface-visibility: hidden;
    perspective: 1000px;
}
/* --- KESİN ZAFER EKRANI STİLİ (SİMETRİK) --- */
.victory-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 20000;
    display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(15px);
}
.victory-content {
    background: #151515;
    border: 2px solid; /* JS ile renk verilecek */
    border-radius: 16px; 
    padding: 40px;
    text-align: center; 
    width: 90%; 
    max-width: 420px;
    box-shadow: 0 0 60px rgba(0,0,0,0.9);
    position: relative;
}
.victory-title {
    font-size: 2.2rem; font-weight: 900; 
    margin-bottom: 20px; letter-spacing: 2px;
    text-transform: uppercase;
}
.victory-img {
    width: 160px; height: 160px;
    border-radius: 50%; /* Tam yuvarlak */
    border: 5px solid; /* JS ile renk verilecek */
    object-fit: cover; 
    margin: 0 auto 25px auto; 
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.victory-name {
    font-size: 2rem; font-weight: 800; color: #fff;
    margin-bottom: 30px; text-transform: uppercase;
    letter-spacing: 1px;
}
.victory-btn-group { 
    display: flex; gap: 15px; width: 100%; 
    justify-content: space-between;
}
.victory-btn {
    flex: 1; /* EŞİT GENİŞLİK */
    padding: 18px 0; 
    border: none; border-radius: 8px;
    font-weight: 900; cursor: pointer; color: #fff;
    font-family: 'Rajdhani', sans-serif; font-size: 1.1rem;
    text-transform: uppercase; 
    transition: transform 0.2s, filter 0.2s;
}
.victory-btn:hover { transform: translateY(-4px); filter: brightness(1.1); }
.victory-btn:active { transform: translateY(0); }
.victory-btn.secondary { background: #333; border: 1px solid #555; color: #ccc; }
/* .primary rengi JS'den gelecek */

/* Üst menü donmasını engelle */
.top-bar { z-index: 20001 !important; position: relative; }

/* --- SYSTEM ALERT MODAL (ÖZEL UYARI KUTUSU) --- */
.system-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Arka planı karart */
    display: none; /* Varsayılan olarak gizli */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* En üstte durmalı */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* JS ile .active sınıfı eklenince görünür olacak */
.system-modal-overlay.active {
    display: flex !important;
    opacity: 1;
}

.system-modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2d3436);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.system-modal-overlay.active .system-modal-content {
    transform: scale(1);
}

.sys-title {
    font-size: 1.8rem;
    color: #ff9900;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 800;
}

.sys-msg {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.sys-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.sys-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.2s;
}

.sys-btn.confirm {
    background: #ff9900;
    color: #000;
}
.sys-btn.confirm:hover {
    background: #ffaa33;
    transform: translateY(-2px);
}

.sys-btn.cancel {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #aaa;
}
.sys-btn.cancel:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* =========================================
   3'LÜ ALT MENÜ HİZALAMASI (FIX)
========================================= */

/* Kapsayıcıyı esnek kutu yap ve elemanları yay */
.footer-row {
    display: flex;
    justify-content: space-between; /* Eşit aralık */
    align-items: stretch; /* Yükseklikleri eşitle */
    gap: 10px; /* Butonlar arası boşluk */
    width: 100%;
    margin-top: 15px;
    padding: 0 5px;
}

/* Her bir mini kart (Endless, Ranking, Speedrun) */
.mini-glass {
    flex: 1; /* Hepsi eşit genişliği paylaşsın */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 5px;
    min-height: 85px; /* Standart yükseklik */
    text-align: center;
    /* Metin taşmasını önlemek için */
    white-space: nowrap; 
    overflow: hidden;
}

/* İkon ve Emojiler */
.mini-glass .mini-icon, 
.mini-glass span[style*="font-size"] { 
    margin-bottom: 8px;
    display: block;
    /* İkon boyutunu sabitle */
    width: 24px; 
    height: 24px;
    object-fit: contain;
}

/* Altındaki Yazılar */
.mini-glass span[data-i18n] {
    font-size: 0.75rem; /* Yazı boyutu */
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Mobil için özel ayar (Ekran çok darsa) */
@media (max-width: 360px) {
    .mini-glass span[data-i18n] {
        font-size: 0.65rem;
    }
}

/* --- SİLÜET AYARLARI (ANA MENÜ İÇİN) --- */

.sys-btn {
    padding: 10px;
    border: 1px solid #444;
    background: transparent;
    color: #888;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: bold;
    transition: 0.2s;
}

.sys-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Seçili buton yeşil yanar */
.sys-btn.active-mode {
    background: #27ae60 !important; /* Yeşil */
    color: white !important;
    border-color: #27ae60 !important;
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.4);
}

/* Radyo Butonları */
.radio-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
}

.radio-row input {
    margin-right: 10px;
    accent-color: #27ae60; /* Yeşil Tik */
    transform: scale(1.2);
}

.radio-text {
    color: #ddd;
    font-size: 0.95rem;
}

/* ================================================= */
/* RENK DÜZELTMESİ (HER YERDE BEYAZ YAZI İÇİN)      */
/* ================================================= */

/* 1. Arama Sonuçlarındaki (Dropdown) İsimler */
.search-item {
    color: #ffffff !important;
}

.search-name {
    color: #ffffff !important; /* İsimler kesinlikle BEYAZ */
    font-weight: 800; /* Daha kalın ve okunaklı */
}

.search-alias {
    color: #cccccc !important; /* Alt isimler (Alias) açık gri */
}

/* Hover (Üzerine gelince) okunabilirliği koru */
.search-item:hover .search-name {
    color: #000000 !important; /* Arka plan turuncu olunca yazı siyah olsun */
}
.search-item:hover .search-alias {
    color: #333333 !important;
}

/* 2. Tahmin Kartlarındaki (Kutu içindeki) İsimler */
.card-name {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); /* Okunabilirlik için gölge */
}

/* 3. Arama Kutusunun İçine Yazılan Yazı */
.search-input {
    color: #ffffff !important;
}

/* 4. Placeholder (İpucu yazısı) Rengi */
::placeholder {
    color: #aaaaaa !important;
    opacity: 1;
}
