:root {
    --c-green: #27ae60;
    --c-red: #ff4757; 
    --font-main: 'Rajdhani', sans-serif;
}

html, body { 
    overflow-x: hidden !important; 
    overflow-y: auto !important; 
    height: auto !important;
    min-height: 100vh !important;
}

.main-container, .game-container { 
    padding-bottom: 50px !important; 
    height: auto !important;
}

.glass-panel { 
    height: auto !important; 
    min-height: fit-content !important;
    max-height: none !important;
    overflow: visible !important; 
    padding-bottom: 25px !important; 
}

.game-panel { 
    font-family: 'Rajdhani', sans-serif !important; 
    color: #ffffff !important; 
    display: flex !important;
    flex-direction: column !important;
}

.search-area-wrapper { margin-top: 15px; position: relative; z-index: 10; }

.silhouette-wrapper {
    width: 100%; height: 200px; display: flex; justify-content: center; align-items: center;
    margin-bottom: 15px; background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 16px;
    position: relative; overflow: hidden; z-index: 1; 
}
.character-silhouette { max-height: 180px; max-width: 90%; object-fit: contain; filter: brightness(0); transition: filter 0.5s ease; }
.character-reveal { filter: none !important; }

/* --- ŞALTER VE AYARLAR --- */
.in-game-settings-wrapper {
    width: 100%; display: flex; flex-direction: column; align-items: center; 
    margin-bottom: 15px; background: rgba(0,0,0,0.4); padding: 12px 15px; 
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.05);
}
.quick-toggle-group { display: flex; align-items: center; gap: 12px; }
.quick-label { font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; font-weight: 800; color: #888; transition: color 0.3s; letter-spacing: 0.5px; }
.quick-label.active-color { color: #FF8C00; }

.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #444; transition: .3s; border-radius: 26px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: white; transition: .3s; border-radius: 50%; }
input:checked + .slider { background-color: #FF8C00; }
input:checked + .slider:before { transform: translateX(24px); }

.quick-difficulty-box {
    display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 250px;
    border-top: 1px solid rgba(255,255,255,0.1); margin-top: 12px; padding-top: 12px;
}
.sil-radio-label {
    display: flex; align-items: center; gap: 10px; cursor: pointer; 
    font-family: 'Rajdhani', sans-serif; font-size: 1rem; color: #ccc; font-weight: 700;
}
.sil-radio-label input { display: none; }
.custom-radio {
    width: 18px; height: 18px; border-radius: 50%; border: 2px solid #888; 
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.sil-radio-label input:checked + .custom-radio { border-color: #FF8C00; }
.sil-radio-label input:checked + .custom-radio::after {
    content: ''; width: 10px; height: 10px; background: #FF8C00; border-radius: 50%;
}
.sil-radio-label input:checked ~ .radio-text { color: #FF8C00; }

/* --- TAHMİN KARTLARI --- */
.simple-results-grid {
    width: 100%; height: auto !important; max-height: none !important;
    overflow: visible !important;  display: flex; flex-direction: column; flex-wrap: nowrap; gap: 8px;
    margin-top: 15px; padding-bottom: 10px;
}

div.guess-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; height: 85px; min-height: 85px; flex-shrink: 0;   
    padding: 5px; border-radius: 10px; background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.05); animation: slideIn 0.3s ease;
}

div.guess-card .card-icon-box {
    width: 45px; height: 45px; min-width: 45px; min-height: 45px; border-radius: 8px; overflow: hidden;
    margin-bottom: 5px; border: 2px solid rgba(255, 255, 255, 0.2); background-color: #000;
}
div.guess-card .card-icon-box img { width: 100%; height: 100%; object-fit: cover; }

div.guess-card .card-name { font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; font-weight: 800; color: white; text-transform: uppercase; text-align: center; margin: 0; }
div.guess-card.correct { background: var(--c-green, #27ae60); border: 1px solid var(--c-green, #27ae60); }
div.guess-card.incorrect { background: var(--c-red, #ff4757); border: 1px solid var(--c-red, #ff4757); }
@keyframes slideIn { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* --- KAZANMA EKRANI --- */
.win-section { margin-top: 15px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 15px; animation: fadeIn 0.5s ease; width: 100%; }
.win-header { font-size: 2.2rem; font-weight: 900; color: var(--c-green, #27ae60); margin-bottom: 15px; text-transform: lowercase; letter-spacing: 2px; }
.win-char-info { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 15px; margin-bottom: 20px; background: rgba(255, 255, 255, 0.05); padding: 15px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); max-width: 100%; }
.win-char-info img { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; border: 2px solid white; flex-shrink: 0; }
.win-char-texts { display: flex; flex-direction: column; text-align: left; }
.win-text { font-size: 1rem; color: #bbb; }
.win-name { font-size: 1.5rem; font-weight: 800; margin: 0; color: #fff; text-transform: uppercase; }
.win-stats p { margin: 10px 0; font-size: 1.1rem; color: #ddd; }
.win-stats strong { color: white; font-size: 1.2rem; }
.win-timer-box { margin: 15px 0; width: 100%; }
.win-timer-title { font-size: 1.2rem; color: #ddd; }
.win-timer { font-size: 2.5rem; font-weight: 900; letter-spacing: 2px; color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.4); margin: 5px 0; }
.win-timer-sub { font-size: 0.8rem; color: #aaa; font-style: italic; }
.win-divider-line { width: 80%; height: 1px; background: rgba(255,255,255,0.15); margin: 15px 0; }
.win-next-modes-container { width: 100%; text-align: center; }
.win-next-title { font-size: 1.2rem; color: #aaa; margin-bottom: 10px; }
.mode-boxes-row { display: flex; flex-direction: row; justify-content: center; gap: 8px; width: 100%; }
.mode-box-square { flex: 1; aspect-ratio: 1; max-width: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; text-decoration: none; position: relative; overflow: hidden; transition: all 0.3s ease; }
.mode-box-square:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.3); }
.mode-box-square img { width: 28px; height: 28px; object-fit: contain; margin-bottom: 4px; z-index: 2; }
.mode-box-square span { font-size: 0.7rem; font-weight: 800; color: #fff; z-index: 2; text-transform: uppercase; }
.mode-box-square.correct { border-bottom: 4px solid var(--c-green, #27ae60); }
.mode-box-square.correct::before { content: ''; position: absolute; top:0; left:0; right:0; bottom:0; background: linear-gradient(0deg, rgba(39, 174, 96, 0.3) 0%, transparent 100%); }
.mode-box-square.incomplete { border-bottom: 4px solid var(--c-red, #ff4757); }
.mode-box-square.incomplete::before { content: ''; position: absolute; top:0; left:0; right:0; bottom:0; background: linear-gradient(0deg, rgba(255, 71, 87, 0.3) 0%, transparent 100%); }

/* --- SİLÜET TEKLİ İPUCU KUTUSU --- */
.sil-hints-row {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 15px;
}

.sil-hint-box {
    width: 100%;
    max-width: 300px; /* Çok uzayıp çirkin durmaması için kısıtladık */
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 5px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
}

.sil-hint-box.unlocked {
    border-color: #FF8C00;
    background: rgba(255, 140, 0, 0.08);
    cursor: pointer;
}

.sil-hint-box.unlocked:hover {
    background: rgba(255, 140, 0, 0.15);
}

.sil-hint-box .hint-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    color: #888;
    font-weight: 900;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.sil-hint-box.unlocked .hint-title { color: #FF8C00; }

.sil-hint-box .hint-content {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    color: #666;
    font-weight: 800;
    font-style: normal;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.sil-hint-box.unlocked .hint-content {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 140, 0, 0.3);
    animation: popIn 0.3s ease forwards;
}

.sil-hint-box.unlocked .hint-content span {
    color: #FF8C00;
    font-weight: 900;
    font-size: 1.3rem; /* Baş harfi büyük ve belirgin göster */
}

/* KUTU GİZLEME (COLLAPSE) EFEKTLERİ */
.sil-hint-box.collapsed .hint-actual { display: none; }
.sil-hint-box.collapsed .hint-tap-msg { display: block; color: #888; font-size: 0.9rem; margin-top: 2px; }
.sil-hint-box:not(.collapsed) .hint-tap-msg { display: none; }

@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
