/* PREMIUM CYBER-SPIN STYLESHEET
   Author: Gemini AI for Odilbek
   Version: 3.0 (Full Responsive & Ultra Premium)
*/

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;500;700&display=swap');

:root {
    --p-green: #00ff88;
    --p-green-glow: rgba(0, 255, 136, 0.4);
    --p-gold: #ffcc00;
    --p-gold-glow: rgba(255, 204, 0, 0.4);
    --p-red: #ff4d4d;
    --p-bg: #05070a;
    --p-card: rgba(20, 25, 33, 0.8);
    --p-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background: var(--p-bg);
    color: white;
    font-family: 'Rajdhani', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 255, 136, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 255, 136, 0.05) 0%, transparent 40%);
}

/* 1. ASOSIY WRAPPER */
.main-wrapper {
    width: 100%;
    max-width: 500px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 2. TEPADA CHIQADIGAN HEADER */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.back-link {
    color: var(--p-red);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    border: 1px solid rgba(255, 77, 77, 0.2);
    padding: 8px 15px;
    border-radius: 8px;
    background: rgba(255, 77, 77, 0.05);
}

.back-link:hover {
    background: rgba(255, 77, 77, 0.2);
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.3);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo span {
    color: var(--p-green);
    text-shadow: 0 0 10px var(--p-green-glow);
}

/* 3. BARABAN HUDUDI (O'rtaga tekis joylash) */
.wheel-area {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

/* Qiyshiq joylashishni davolaymiz */
.indicator {
    position: absolute;
    top: -35px; /* Dinamik joylashuv */
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    filter: drop-shadow(0 0 15px var(--p-green));
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.wheel-outer-ring {
    position: relative;
    width: 90vw;
    max-width: 420px;
    height: 90vw;
    max-width: 420px;
    border: 12px solid #1a1f26;
    border-radius: 50%;
    box-shadow: 
        0 0 50px rgba(0,0,0,0.8),
        0 0 30px var(--p-green-glow),
        inset 0 0 20px rgba(0,0,0,0.5);
    background: #0f1218;
    display: flex;
    justify-content: center;
    align-items: center;
}

#wheelCanvas {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
}

/* Markaziy tugma dizayni */
.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #000;
    border-radius: 50%;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid #1c222b;
    box-shadow: 0 0 20px #000;
}

#spinBtn {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--p-green), #00cc6e);
    border: none;
    border-radius: 50%;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    color: #000;
    cursor: pointer;
    box-shadow: 0 0 15px var(--p-green);
    transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#spinBtn:active {
    transform: scale(0.9);
}

#spinBtn:disabled {
    filter: grayscale(1);
    box-shadow: none;
    cursor: not-allowed;
}

/* 4. MODAL (YUTUQ OYNASI) - PREMIUM GLASS */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-card {
    background: var(--p-card);
    border: 1px solid var(--p-border);
    padding: 30px;
    border-radius: 24px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: modalIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.8) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.prize-icon {
    font-size: 60px;
    color: var(--p-gold);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px var(--p-gold-glow));
}

.modal-card h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, var(--p-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.prize-name {
    font-size: 42px;
    font-weight: 900;
    color: var(--p-gold);
    margin: 15px 0;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 20px var(--p-gold-glow);
}

/* ID KIRITISH INPUTI - MODERNIY */
.input-container {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--p-border);
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0;
    transition: 0.3s;
}

.input-container:focus-within {
    border-color: var(--p-green);
    box-shadow: 0 0 15px var(--p-green-glow);
}

.input-container i { color: var(--p-green); }

.input-container input {
    background: none;
    border: none;
    color: #fff;
    width: 100%;
    font-size: 16px;
    outline: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

/* YUTUQNI OLISH TUGMASI */
.btn-claim {
    width: 100%;
    padding: 16px;
    background: var(--p-green);
    color: #000;
    border: none;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-claim:hover {
    box-shadow: 0 0 25px var(--p-green);
    transform: translateY(-2px);
}

.timer-note {
    margin-top: 15px;
    font-size: 13px;
    color: #888;
}

/* 5. FOOOTER MA'LUMOTI */
.info-footer {
    padding-bottom: 20px;
}

.info-footer p {
    font-size: 14px;
    color: #666;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
}

/* 6. MOBILE ADAPTATSIYA (QIYSHIQ JOYLAShUVNI TUZATISH) */
@media (max-width: 400px) {
    .wheel-outer-ring {
        width: 85vw;
        height: 85vw;
    }
    .prize-name { font-size: 32px; }
    .indicator { top: -30px; }
}
