html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    background-color: #1a1a1a;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 1s ease;
    overflow: hidden;
    position: relative;
}

body.liar-mode { background-color: #2b0c0c; }
body.amanda-mode { background-color: #1a364a; }

/* Kaçış Butonu */
.escape-button {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    z-index: 100;
    transition: top 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.amanda-mode .escape-button { top: 30px; }

/* Giriş Kutusu */
.verification-container {
    background-color: #262626;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 450px;
    width: 90%;
    border: 1px solid #333;
    z-index: 10;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.verification-container.fade-out {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.verification-container h2 { font-size: 1.4rem; margin-bottom: 12px; line-height: 1.4; color: #f5f5f5; }
.verification-container p { font-size: 1rem; color: #aaa; margin-bottom: 25px; }
.input-group { display: flex; gap: 10px; justify-content: center; }

#nameInput {
    flex: 1; padding: 12px 16px; border: 2px solid #444; border-radius: 6px;
    background-color: #1f1f1f; color: #fff; font-size: 1rem; outline: none; box-sizing: border-box;
}
#nameInput:focus { border-color: #00adb5; }
#okBtn { padding: 12px 24px; background-color: #00adb5; color: #fff; border: none; border-radius: 6px; font-weight: bold; font-size: 1rem; cursor: pointer; }
#okBtn:hover { background-color: #007a80; }
.error-message { margin-top: 15px; color: #ff4d4d; font-size: 0.9rem; height: 20px; }

/* Dinamik Yazılar */
.liar-text {
    position: absolute; color: #ff3333; font-weight: 900; font-size: 1.4rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8); pointer-events: none; user-select: none;
    animation: popOut 0.2s ease-out; transition: color 0.5s ease, transform 0.5s ease;
}
.liar-text.love-text { color: #66ffb3; font-size: 1.0rem; text-shadow: 0 0 10px rgba(102, 255, 179, 0.5); }

@keyframes popOut {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- GİZLİ KOD (DARE) EFEKTLERİ --- */
.countdown-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85); display: flex; justify-content: center;
    align-items: center; z-index: 1000; opacity: 0; pointer-events: none;
    transition: opacity 0.5s ease;
}
.countdown-overlay.show { opacity: 1; pointer-events: auto; }

.countdown-bubble {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    padding: 40px; border-radius: 24px; text-align: center;
    box-shadow: 0 10px 30px rgba(255, 75, 43, 0.5);
    animation: pulse 2s infinite; max-width: 400px; width: 85%;
}
.countdown-bubble h3 { font-size: 1.6rem; margin-bottom: 20px; color: #fff; text-shadow: 1px 1px 5px rgba(0,0,0,0.3); }
.timer-num { font-size: 4rem; font-weight: 900; color: #fff; }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* --- GİZLİ KOD (DARE) VİDEO SPLASH --- */
.video-splash-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000; display: flex; justify-content: center;
    align-items: center; z-index: 1000; opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}
.video-splash-overlay.show { opacity: 1; pointer-events: auto; }

#splashVideo {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

.tap-to-unmute {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: none;
    z-index: 1001;
    border: 1px solid rgba(255,255,255,0.25);
    animation: pulse 2s infinite;
}
.tap-to-unmute.show { display: block; }

/* Havai Fişek Parçacıkları */
.firework-particle {
    position: absolute; width: 6px; height: 6px; border-radius: 50%;
    pointer-events: none; z-index: 999; animation: explode 1s ease-out forwards;
}
@keyframes explode {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--mx), var(--my)) scale(0); opacity: 0; }
}

/* --- AMANDA MODU İÇİN ORTADA BELİREN ŞEFFAF KUTU --- */
.hint-overlay-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 50px;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    z-index: 200;
    pointer-events: none; /* Arkaya tıklamaya engel olmaması için */
    animation: hintFadeIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hint-overlay-box h3 {
    font-size: 1.4rem;
    color: #66ffb3; /* Senin sevdiğin o güzel yeşil/yeşilimsi ton */
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(102, 255, 179, 0.3);
}

.hint-overlay-box p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

@keyframes hintFadeIn {
    0% { opacity: 0; transform: translate(-50%, -60%) scale(0.9); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.music-bar{
    position:fixed;
    top:18px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 14px;

    background:rgba(255,255,255,.08);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);

    border:1px solid rgba(255,255,255,.12);
    border-radius:40px;

    z-index:9999;
}

/* --- ÇAKIŞMALARI ÖNLEYEN ŞIK MÜZİK BAR --- */
.music-bar {
    position: absolute; /* fixed yerine absolute vererek mektup kutusunun akışına uyum sağlıyoruz */
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 22px;
    border-radius: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    z-index: 100;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Sürgü Çubuğu Tasarımı */
.music-bar input {
    -webkit-appearance: none;
    appearance: none;
    width: 130px;
    height: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
    opacity: .75;
    transition: all 0.3s ease;
}

/* Kırmızı Buton Yuvarlağı (Senin Eklediğin Şıklık) */
.music-bar input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff4b5c;
    box-shadow: 0 0 8px rgba(255, 75, 92, 0.6);
}

.music-bar input::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: #ff4b5c;
    box-shadow: 0 0 8px rgba(255, 75, 92, 0.6);
}

.music-bar span {
    font-size: 15px;
    opacity: .8;
}