/* ============================
   KANYE CLICKER
   PART 2A
============================ */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    user-select:none;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#181818;
    color:white;
    overflow:hidden;
}

/* ============================
   TOP BAR
============================ */

#topBar{
    width:100%;
    height:95px;
    background:#111;
    border-bottom:3px solid #caa542;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    box-shadow:0 0 25px rgba(0,0,0,.5);
}

#topBar h1{
    color:#ffd64a;
    font-size:40px;
    letter-spacing:4px;
    text-shadow:0 0 12px gold;
}

#newsTicker{
    margin-top:8px;
    width:90%;
    height:26px;
    overflow:hidden;
    background:#262626;
    border-radius:8px;
    border:1px solid #555;
}

#newsText{
    display:inline-block;
    padding-left:100%;
    line-height:26px;
    white-space:nowrap;
}

/* ============================
   GAME LAYOUT
============================ */

#game{
    display:flex;
    height:calc(100vh - 145px);
}

/* ============================
   LEFT PANEL
============================ */

#leftPanel{
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    position:relative;
}

.counter{
    margin-bottom:25px;
    text-align:center;
}

#yeezyCount{
    font-size:52px;
    color:#ffd54d;
}

#cps{
    margin-top:8px;
    color:#bdbdbd;
    font-weight:normal;
}

/* ============================
   CLICK AREA
============================ */

#clickArea{
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
}

#kanye{
    width:340px;
    cursor:pointer;
    transition:.12s;
    filter:drop-shadow(0 0 20px rgba(255,215,0,.3));
}

#kanye:hover{
    transform:scale(1.03);
}

#kanye:active{
    transform:scale(.95);
}

#floatingContainer{
    position:absolute;
    width:100%;
    height:100%;
    pointer-events:none;
}

/* ============================
   SHOP
============================ */

#shop{
    width:380px;
    background:#202020;
    border-left:3px solid #444;
    overflow-y:auto;
}

#shop h2{
    background:#111;
    color:#ffd54d;
    text-align:center;
    padding:18px;
    border-bottom:2px solid #444;
}

#shopItems{
    padding:15px;
}

/* Shop Item */

.shopItem{

    background:#2b2b2b;

    border:2px solid #444;

    border-radius:12px;

    padding:15px;

    margin-bottom:12px;

    cursor:pointer;

    transition:.15s;

}

.shopItem:hover{

    background:#363636;

    border-color:#ffd54d;

}

.shopTitle{

    font-size:22px;

    color:#ffd54d;

}

.shopDescription{

    margin-top:5px;

    color:#cfcfcf;

    font-size:14px;

}

.shopCost{

    margin-top:8px;

    font-weight:bold;

    color:#90ee90;

}

.shopOwned{

    margin-top:6px;

    color:#aaa;

}

/* ============================
   BOTTOM MENU
============================ */

#bottomMenu{

    position:fixed;

    bottom:0;

    width:100%;

    height:50px;

    background:#111;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:15px;

    border-top:2px solid #333;

}

#bottomMenu button{

    background:#2d2d2d;

    color:white;

    border:none;

    padding:10px 20px;

    border-radius:10px;

    cursor:pointer;

    transition:.2s;

    font-size:15px;

}

#bottomMenu button:hover{

    background:#ffd54d;

    color:black;

}

/* ============================
   POPUP WINDOWS
============================ */

.window{

    position:fixed;

    top:50%;

    left:50%;

    transform:translate(-50%,-50%);

    width:650px;

    max-height:80vh;

    overflow-y:auto;

    background:#252525;

    border:3px solid #ffd54d;

    border-radius:15px;

    z-index:1000;

    box-shadow:0 0 35px rgba(0,0,0,.6);

}

.hidden{

    display:none;

}

.windowHeader{

    background:#111;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px;

}

.windowHeader h2{

    color:#ffd54d;

}

.close{

    background:#c0392b;

    color:white;

    border:none;

    width:35px;

    height:35px;

    border-radius:8px;

    cursor:pointer;

}

.close:hover{

    background:#e74c3c;

}

.windowContent{

    padding:25px;

}

.windowContent p{

    margin-bottom:15px;

    font-size:18px;

}

/* ============================
   SETTINGS
============================ */

.windowContent button{

    width:100%;

    margin-top:10px;

    padding:12px;

    font-size:16px;

    cursor:pointer;

    border:none;

    border-radius:10px;

    background:#333;

    color:white;

}

.windowContent button:hover{

    background:#ffd54d;

    color:black;

}

.windowContent input[type=range]{

    width:100%;

    margin-top:12px;

    margin-bottom:20px;

}

/* ============================
   ACHIEVEMENTS
============================ */

#achievementList{

    padding:20px;

}

/* ============================
   GOLDEN YEEZY
============================ */

#goldenYeezy{

    position:fixed;

    font-size:70px;

    cursor:pointer;

    z-index:500;

}

/* ============================
   RESPONSIVE
============================ */

@media(max-width:950px){

#game{

    flex-direction:column;

}

#shop{

    width:100%;

    height:300px;

    border-left:none;

    border-top:3px solid #444;

}

#kanye{

    width:240px;

}

#yeezyCount{

    font-size:38px;

}

.window{

    width:92%;

}

}/* ===========================================
   PART 2B-1
   ANIMATIONS & VISUAL EFFECTS
=========================================== */

/* ---------- Floating Numbers ---------- */

.floatingText{
    position:absolute;
    color:#ffd54d;
    font-size:32px;
    font-weight:bold;
    text-shadow:
        0 0 8px gold,
        0 0 15px gold;
    pointer-events:none;
    animation:floatUp .9s ease-out forwards;
    z-index:25;
}

@keyframes floatUp{

    0%{
        opacity:1;
        transform:translateY(0px) scale(1);
    }

    100%{
        opacity:0;
        transform:translateY(-120px) scale(1.6);
    }

}

/* ---------- Kanye Click Pulse ---------- */

.clicked{

    animation:kanyePulse .12s ease;

}

@keyframes kanyePulse{

    0%{

        transform:scale(1);

    }

    50%{

        transform:scale(.92);

    }

    100%{

        transform:scale(1);

    }

}

/* ---------- Idle Glow ---------- */

#kanye{

    animation:idleGlow 3s ease-in-out infinite;

}

@keyframes idleGlow{

    0%{

        filter:drop-shadow(0 0 12px rgba(255,215,0,.25));

    }

    50%{

        filter:drop-shadow(0 0 30px rgba(255,215,0,.6));

    }

    100%{

        filter:drop-shadow(0 0 12px rgba(255,215,0,.25));

    }

}

/* ---------- Counter Glow ---------- */

#yeezyCount{

    animation:moneyGlow 2.5s infinite;

}

@keyframes moneyGlow{

    0%{

        text-shadow:0 0 6px gold;

    }

    50%{

        text-shadow:
            0 0 15px gold,
            0 0 35px gold;

    }

    100%{

        text-shadow:0 0 6px gold;

    }

}

/* ---------- CPS ---------- */

#cps{

    transition:.3s;

}

/* ---------- Shop Hover ---------- */

.shopItem{

    position:relative;
    overflow:hidden;

}

.shopItem::before{

    content:"";

    position:absolute;

    left:-120%;

    top:0;

    width:80px;

    height:100%;

    background:

    linear-gradient(

        90deg,

        transparent,

        rgba(255,255,255,.15),

        transparent

    );

    transition:.45s;

}

.shopItem:hover::before{

    left:120%;

}

.shopItem:hover{

    transform:translateX(-4px);

    box-shadow:

        0 0 18px rgba(255,215,0,.3);

}

/* ---------- Buttons ---------- */

button{

    transition:

        background .2s,

        transform .12s,

        box-shadow .2s;

}

button:hover{

    box-shadow:

        0 0 18px rgba(255,215,0,.45);

}

button:active{

    transform:scale(.95);

}

/* ---------- News Ticker ---------- */

#newsText{

    animation:scrollNews 22s linear infinite;

}

@keyframes scrollNews{

    0%{

        transform:translateX(0);

    }

    100%{

        transform:translateX(-200%);

    }

}

/* ---------- Screen Shake ---------- */

.shake{

    animation:shake .25s;

}

@keyframes shake{

    0%{

        transform:translate(0);

    }

    15%{

        transform:translate(-5px,2px);

    }

    30%{

        transform:translate(5px,-3px);

    }

    45%{

        transform:translate(-3px,4px);

    }

    60%{

        transform:translate(4px,-2px);

    }

    75%{

        transform:translate(-2px,-3px);

    }

    100%{

        transform:translate(0);

    }

}

/* ---------- Counter Bounce ---------- */

.moneyBounce{

    animation:bounce .22s;

}

@keyframes bounce{

    0%{

        transform:scale(1);

    }

    40%{

        transform:scale(1.12);

    }

    100%{

        transform:scale(1);

    }

}

/* ---------- Shop Purchase Flash ---------- */

.purchased{

    animation:purchaseFlash .35s;

}

@keyframes purchaseFlash{

    0%{

        background:#4caf50;

    }

    100%{

        background:#2b2b2b;

    }

}

/* ---------- Disabled Shop ---------- */

.disabled{

    opacity:.45;

    filter:grayscale(100%);

    cursor:not-allowed;

}

.disabled:hover{

    transform:none;

    box-shadow:none;

}

/* ---------- Window Animation ---------- */

.window{

    animation:windowOpen .18s ease;

}

@keyframes windowOpen{

    from{

        opacity:0;

        transform:

        translate(-50%,-50%)

        scale(.9);

    }

    to{

        opacity:1;

        transform:

        translate(-50%,-50%)

        scale(1);

    }

}

/* ---------- Bottom Menu ---------- */

#bottomMenu button{

    position:relative;

    overflow:hidden;

}

#bottomMenu button::after{

    content:"";

    position:absolute;

    inset:0;

    background:

        linear-gradient(

            90deg,

            transparent,

            rgba(255,255,255,.08),

            transparent

        );

    transform:translateX(-120%);

}

#bottomMenu button:hover::after{

    animation:shine .6s;

}

@keyframes shine{

    to{

        transform:translateX(120%);

    }

}

/* ---------- Hover Lift ---------- */

.lift:hover{

    transform:

        translateY(-3px);

}

/* ---------- Fade Utilities ---------- */

.fadeIn{

    animation:fadeIn .35s;

}

.fadeOut{

    animation:fadeOut .35s forwards;

}

@keyframes fadeIn{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}

@keyframes fadeOut{

    from{

        opacity:1;

    }

    to{

        opacity:0;

    }

}/* ==========================================
   PART 2B-2
   FINAL POLISH
========================================== */

/* ---------- Golden Yeezy ---------- */

#goldenYeezy{

    width:90px;
    height:90px;

    display:flex;
    justify-content:center;
    align-items:center;

    border-radius:50%;

    background:radial-gradient(circle,#fff6a5,#ffd700,#f5a700);

    box-shadow:
        0 0 15px gold,
        0 0 40px gold,
        0 0 70px rgba(255,215,0,.5);

    animation:
        goldenPulse 1.4s infinite,
        goldenFloat 2.6s ease-in-out infinite;

    transition:.2s;
}

#goldenYeezy:hover{

    transform:scale(1.15);

    box-shadow:
        0 0 30px gold,
        0 0 60px gold,
        0 0 100px gold;

}

@keyframes goldenPulse{

    0%{

        filter:brightness(1);

    }

    50%{

        filter:brightness(1.35);

    }

    100%{

        filter:brightness(1);

    }

}

@keyframes goldenFloat{

    0%{

        transform:translateY(0px);

    }

    50%{

        transform:translateY(-8px);

    }

    100%{

        transform:translateY(0px);

    }

}

/* ---------- Achievement Cards ---------- */

.achievement{

    background:#2d2d2d;

    border:2px solid #444;

    border-radius:12px;

    margin-bottom:12px;

    padding:15px;

    transition:.2s;

}

.achievement:hover{

    border-color:#ffd54d;

    transform:translateX(4px);

}

.achievementUnlocked{

    background:#3d5f2a;

    border-color:#8cff65;

    color:white;

    box-shadow:

        0 0 12px rgba(140,255,101,.4);

}

.achievementTitle{

    font-size:20px;

    color:#ffd54d;

}

.achievementDesc{

    margin-top:5px;

    color:#d4d4d4;

    font-size:14px;

}

/* ---------- Prestige ---------- */

#prestigeWindow{

    border-color:#c86eff;

}

#prestigeConfirm{

    background:#7d3cff;

    color:white;

    font-weight:bold;

}

#prestigeConfirm:hover{

    background:#9957ff;

    box-shadow:

        0 0 18px #b275ff;

}

/* ---------- Notification ---------- */

.notification{

    position:fixed;

    top:120px;

    right:30px;

    background:#2f2f2f;

    color:white;

    border-left:6px solid gold;

    padding:15px 20px;

    border-radius:12px;

    box-shadow:

        0 0 20px rgba(0,0,0,.5);

    animation:slideIn .4s ease;

    z-index:3000;

}

@keyframes slideIn{

    from{

        opacity:0;

        transform:translateX(100px);

    }

    to{

        opacity:1;

        transform:translateX(0);

    }

}

/* ---------- Sparkles ---------- */

.sparkle{

    position:absolute;

    width:10px;

    height:10px;

    border-radius:50%;

    background:white;

    animation:sparkle 1s linear forwards;

    pointer-events:none;

}

@keyframes sparkle{

    from{

        opacity:1;

        transform:scale(1);

    }

    to{

        opacity:0;

        transform:

            translateY(-60px)

            scale(0);

    }

}

/* ---------- Custom Scrollbar ---------- */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#1d1d1d;

}

::-webkit-scrollbar-thumb{

    background:#555;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#ffd54d;

}

/* Firefox */

*{

    scrollbar-width:thin;

    scrollbar-color:#666 #1d1d1d;

}

/* ---------- Shop Locked ---------- */

.shopLocked{

    opacity:.35;

    filter:blur(.5px);

}

/* ---------- Counter Flash ---------- */

.flashGold{

    animation:flashGold .35s;

}

@keyframes flashGold{

    0%{

        color:white;

    }

    50%{

        color:#fff78b;

    }

    100%{

        color:#ffd54d;

    }

}

/* ---------- Rainbow Bonus ---------- */

.rainbow{

    animation:rainbow 2s linear infinite;

}

@keyframes rainbow{

    0%{color:#ff4444;}

    16%{color:#ff9f43;}

    33%{color:#ffee58;}

    50%{color:#66ff99;}

    66%{color:#66d9ff;}

    83%{color:#b388ff;}

    100%{color:#ff4444;}

}

/* ---------- Utility Classes ---------- */

.hidden{

    display:none !important;

}

.center{

    display:flex;

    justify-content:center;

    align-items:center;

}

.glow{

    box-shadow:

        0 0 15px gold,

        0 0 35px rgba(255,215,0,.4);

}

.blur{

    filter:blur(2px);

}

.noPointer{

    pointer-events:none;

}

.bold{

    font-weight:bold;

}

/* ---------- Background Overlay ---------- */

#overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    opacity:0;

    pointer-events:none;

    transition:.25s;

    z-index:900;

}

#overlay.active{

    opacity:1;

    pointer-events:auto;

}

/* ---------- End Game Glow ---------- */

.endgame{

    animation:endgameGlow 3s infinite;

}

@keyframes endgameGlow{

    0%{

        filter:hue-rotate(0deg);

    }

    100%{

        filter:hue-rotate(360deg);

    }

}

/* ---------- Footer ---------- */

.footer{

    text-align:center;

    color:#777;

    padding:10px;

    font-size:12px;

}