/* --- ბაზისური პარამეტრები და ფონი --- */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background: radial-gradient(circle at center, #0f0c29, #302b63, #24243e);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    overflow: hidden; /* სკროლის ბლოკირება */
    display: flex;
    justify-content: center;
    color: white;
}

.game-container {
    width: 100%;
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 5;
}

/* --- ნეონის სათაური --- */
h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 20px 0 10px;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 5px;
    /* მულტი-შრის ნეონის ნათება */
    text-shadow: 
        0 0 7px #fff,
        0 0 10px #fff,
        0 0 21px #00d2ff,
        0 0 42px #00d2ff,
        0 0 82px #00d2ff;
}

/* --- პროგრესული ტაიმერი --- */
.timer-container {
    width: 300px;
    margin-bottom: 30px;
}

.timer-text {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: #00d2ff;
    margin-bottom: 8px;
    font-weight: bold;
}

.timer-bar {
    height: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 2px solid #00d2ff;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

.timer-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5, #00d2ff);
    background-size: 200% 100%;
    animation: flow 2s linear infinite;
    transition: width 0.1s linear;
}

@keyframes flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* --- სათამაშო არე --- */
.balloon-area {
    width: 100%;
    height: 70vh;
    position: relative;
    cursor: crosshair; /* სამიზნის ფორმის მაუსი */
}

/* --- ბუშტების დიზაინი და სწრაფი მოძრაობა --- */
.balloon {
    position: absolute;
    width: 85px;
    height: 110px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    cursor: pointer;
    /* 3D ეფექტი და ჩრდილები */
    box-shadow: inset -10px -10px 20px rgba(0,0,0,0.4), 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: filter 0.2s, transform 0.1s ease-out;
    
    /* ქაოსური და სწრაფი მოძრაობის ანიმაცია */
    animation: rapidFloat 4s infinite ease-in-out alternate;
}

/* ბრწყინვალება ბუშტზე (Highlight) */
.balloon::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 25px;
    height: 18px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    filter: blur(2px);
}

/* ბუშტის კუდი */
.balloon::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: inherit;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* --- სწრაფი ტივტივის ანიმაცია --- */
@keyframes rapidFloat {
    0% {
        transform: translate(0, 0) rotate(-5deg);
    }
    25% {
        transform: translate(40px, -80px) rotate(8deg);
    }
    50% {
        transform: translate(-30px, -160px) rotate(-10deg);
    }
    75% {
        transform: translate(50px, -240px) rotate(12deg);
    }
    100% {
        transform: translate(-10px, -320px) rotate(-5deg);
    }
}

/* "დასხლტომის" ეფექტი - როცა მაუსს მიიტან, ბუშტი სწრაფად იწევა */
.balloon:hover {
    filter: brightness(1.4) contrast(1.1);
    transform: translate(15px, -15px) scale(1.1) !important;
}

/* --- მოდალური ფანჯრები (Popups) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.modal {
    background: #fff;
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    color: #1a252f;
    width: 360px;
    border: 6px solid #00d2ff;
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.4);
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal.time-up { border-color: #e74c3c; box-shadow: 0 0 40px rgba(231, 76, 60, 0.4); }

.prize-display {
    font-size: 6rem;
    margin: 20px 0;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.1));
}

.claim-btn {
    background: linear-gradient(180deg, #00d2ff 0%, #3a7bd5 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 22px;
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 0 #1c528a;
    transition: 0.1s;
    width: 100%;
}

.claim-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #1c528a;
}

.time-up .claim-btn {
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 6px 0 #7b1d12;
}