:root {
    --pink: #FF2E93; --cyan: #00F0FF; --lime: #B6FF00; --gold: #FFD700; --black: #0A0A0A;
    --party: transparent;
}
* { box-sizing: border-box; }
body {
    margin: 0; background: var(--black); color: #f3f3f3;
    font-family: 'Chivo Mono', monospace; overflow-x: hidden; min-height: 100vh;
}
body::after {
    content: ''; position: fixed; inset: 0; background: var(--party); mix-blend-mode: screen;
    pointer-events: none; z-index: 5; opacity: .35;
}
.leopard-bg {
    position: fixed; inset: -50px; z-index: 0; opacity: .09;
    background:
        radial-gradient(ellipse 14px 10px at 20px 20px, #000 45%, #d99a3c 50%, transparent 62%),
        radial-gradient(ellipse 10px 14px at 60px 50px, #000 45%, #d99a3c 50%, transparent 62%),
        radial-gradient(ellipse 12px 9px at 35px 75px, #000 45%, #d99a3c 50%, transparent 62%),
        #6b4a1e;
    background-size: 90px 90px;
    animation: leopard 40s linear infinite;
}
@keyframes leopard { to { transform: translate(90px, 90px); } }
.neon-grid {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background-image: linear-gradient(rgba(255,46,147,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0,240,255,.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, transparent, #000 60%);
}

/* Disco */
.disco { position: fixed; top: -10px; right: 24px; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.disco::before { content: ''; width: 2px; height: 40px; background: #888; }
.disco-ball {
    width: 64px; height: 64px; border-radius: 50%;
    background:
        repeating-linear-gradient(0deg, transparent 0 7px, rgba(0,0,0,.45) 7px 8px),
        repeating-linear-gradient(90deg, transparent 0 7px, rgba(0,0,0,.45) 7px 8px),
        radial-gradient(circle at 35% 30%, #fff, #bbb 30%, #556 70%, #223);
    box-shadow: 0 0 30px rgba(255,255,255,.35), 0 0 60px rgba(255,46,147,.3);
    animation: spin 6s linear infinite;
}
.disco-ball.big { width: 110px; height: 110px; animation-duration: 1.5s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Header */
.shades { font-size: 56px; animation: shadesDrop 1.1s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes shadesDrop { from { transform: translateY(-140px) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
.title {
    font-family: 'Bungee Shade', 'Bungee', cursive; font-size: clamp(2.2rem, 8vw, 5.4rem); line-height: .95;
    background: linear-gradient(180deg, #fff 0%, #ccc 40%, #666 50%, #eee 60%, #fff 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(255,46,147,.8)) drop-shadow(0 0 30px rgba(0,240,255,.4));
    animation: rise .8s .2s both;
}
.title-sub { font-family: 'Bungee', cursive; font-size: .5em; letter-spacing: .15em;
    background: linear-gradient(90deg, var(--cyan), var(--pink), var(--lime), var(--cyan)); background-size: 300%;
    -webkit-background-clip: text; animation: hue 4s linear infinite; }
@keyframes hue { to { background-position: 300% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.tagline { color: var(--lime); font-weight: 800; animation: rise .8s .5s both; }

/* Cards */
.card {
    position: relative; padding: 1.5rem; border-radius: 18px;
    background: rgba(18,18,22,.72); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,46,147,.35);
    box-shadow: 0 0 0 1px rgba(0,240,255,.08) inset, 0 10px 40px rgba(0,0,0,.5);
    animation: rise .6s both;
}
.step-title { font-family: 'Bungee', cursive; font-size: 1.2rem; color: var(--pink); text-shadow: 0 0 10px rgba(255,46,147,.6); }

.drop {
    border-radius: 16px; padding: 3rem 1rem; text-align: center; cursor: pointer; position: relative;
    border: 3px dashed transparent;
    background: linear-gradient(#111, #111) padding-box, linear-gradient(90deg, var(--cyan), var(--pink), var(--lime), var(--gold), var(--cyan)) border-box;
    background-size: 100%, 300%; animation: hue 3s linear infinite; transition: transform .2s;
}
.drop.over, .drop:hover { transform: scale(1.015) rotate(-.4deg); }
.bob { animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(6deg); } }

/* Buttons */
button { cursor: pointer; }
.btn-pink {
    font-family: 'Bungee', cursive; font-size: 1.3rem; padding: 1rem 2.2rem; border-radius: 999px;
    background: var(--pink); color: #000; border: 2px solid #fff; transition: transform .15s;
}
.btn-pink.sm { font-size: .95rem; padding: .6rem 1.4rem; }
.btn-pink:hover { transform: scale(1.05) rotate(-2deg); }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 40px var(--pink), 0 0 80px rgba(255,46,147,.4); } }
.btn-ghost {
    font-size: .85rem; font-weight: 800; padding: .55rem 1rem; border-radius: 10px;
    background: rgba(0,0,0,.5); color: var(--cyan); border: 1px solid var(--cyan);
}
.btn-ghost:hover { background: var(--cyan); color: #000; }
.btn-chip { font-size: .75rem; padding: .45rem .8rem; border-radius: 8px; background: #1b1b1f; color: #ccc; border: 1px solid #333; }
.btn-chip.on { border-color: var(--lime); color: var(--lime); box-shadow: 0 0 10px rgba(182,255,0,.4); }
.btn-chrome {
    font-family: 'Bungee', cursive; font-size: clamp(1.3rem, 5vw, 2.3rem); padding: 1.3rem 2.4rem; border-radius: 22px;
    color: #111; border: 3px solid var(--gold);
    background: linear-gradient(120deg, #fff, #9cf, #f9c, #cf9, #fff, #aaa); background-size: 300%;
    animation: hue 3s linear infinite; box-shadow: 0 0 30px rgba(255,215,0,.5);
}
.btn-chrome:hover { animation: hue 3s linear infinite, wiggle .4s ease-in-out infinite; }
@keyframes wiggle { 25% { transform: rotate(-3deg) scale(1.05); } 75% { transform: rotate(3deg) scale(1.05); } }

/* Progress */
.bar { height: 22px; border-radius: 999px; background: #000; border: 1px solid #444; overflow: hidden; }
.bar-fill {
    height: 100%; transition: width .2s;
    background:
        radial-gradient(ellipse 5px 4px at 6px 6px, #000 60%, transparent 70%),
        radial-gradient(ellipse 4px 5px at 16px 14px, #000 60%, transparent 70%),
        linear-gradient(90deg, #d99a3c, #f4c46a);
    background-size: 22px 22px, 22px 22px, 100%;
    animation: slide 1s linear infinite;
    box-shadow: 0 0 14px var(--pink);
}
@keyframes slide { to { background-position: 22px 0, 22px 0, 0 0; } }

.wave { background: #050505; border: 1px solid #333; }
.seg-card { border: 1px solid; border-radius: 12px; padding: .5rem; background: rgba(0,0,0,.4); }
.stat { display: flex; align-items: center; gap: .75rem; background: rgba(0,0,0,.4); padding: .75rem 1rem; border-radius: 12px; }
.stat-num { font-family: 'Bungee', cursive; font-size: 1.3rem; color: var(--cyan); margin-left: auto; }
.gauge { flex: 1; height: 10px; border-radius: 5px; background: #222; overflow: hidden; }
.gauge-fill { height: 100%; background: linear-gradient(90deg, var(--lime), var(--pink)); transition: width 1.2s cubic-bezier(.3,1.5,.5,1); }

/* Pattern */
.tile {
    position: relative; height: 34px; border-radius: 8px; border: 1px solid;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Bungee', cursive; font-size: 13px;
}
.tile.active { transform: translateY(-6px) scale(1.2); }
.wiggle-tile { animation: wiggle .5s ease-in-out infinite; }
.tile-mark { position: absolute; top: -9px; right: -6px; font-size: 9px; background: #000; border-radius: 4px; padding: 0 2px; color: #fff; }
.pat-input { background: #000; border: 1px solid #444; border-radius: 8px; padding: .5rem .75rem; color: var(--lime); font-family: 'Chivo Mono'; letter-spacing: .15em; min-width: 0; }
.slider-row { display: grid; grid-template-columns: 80px 1fr 90px; gap: .75rem; align-items: center; font-size: .75rem; }
.slider-row b { text-align: right; font-family: 'Bungee'; font-weight: 400; }
input[type=range] { accent-color: var(--pink); }

/* Player */
.runway { position: relative; border-radius: 14px; overflow: hidden; background: #000; border: 2px solid var(--cyan); box-shadow: 0 0 25px rgba(0,240,255,.35); }
.runway-idle {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; cursor: pointer;
    font-family: 'Bungee', cursive; font-size: clamp(1rem, 4vw, 1.8rem); color: var(--pink);
    background: rgba(0,0,0,.55); text-shadow: 0 0 14px var(--pink);
}
.scrub { position: relative; height: 14px; background: #111; border-radius: 7px; overflow: hidden; }
.scrub > div:not(.scrub-head) { position: absolute; top: 0; bottom: 0; border-right: 1px solid #000; }
.scrub-head { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; box-shadow: 0 0 8px #fff; }

.gen-shades { position: absolute; left: 50%; top: 50%; font-size: 40px; transform: translate(-50%, -50%); animation: bob .5s ease-in-out infinite; }

.footer { position: relative; z-index: 10; text-align: center; padding: 2rem 1rem; background: #000; margin-top: 2rem; border-top: 2px solid; border-image: linear-gradient(90deg, var(--pink), var(--cyan)) 1; }
.footer p { color: var(--gold); font-family: 'Bungee', cursive; font-size: .85rem; }
.footer a { display: inline-block; margin-top: .5rem; color: var(--cyan); font-size: .8rem; }
.footer a:hover { color: var(--pink); }

.toast {
    position: fixed; bottom: 20px; right: 20px; left: auto; max-width: calc(100vw - 40px); z-index: 100;
    background: #111; color: #fff; border: 2px solid var(--pink); border-radius: 14px; padding: .8rem 1.2rem;
    font-family: 'Bungee', cursive; font-size: .85rem; box-shadow: 0 0 25px rgba(255,46,147,.5);
    animation: toastIn .35s cubic-bezier(.3,1.6,.5,1);
}
@keyframes toastIn { from { transform: translateY(40px) scale(.8); opacity: 0; } }
@media (max-width: 640px) { .disco { right: 8px; transform: scale(.7); transform-origin: top; } }