:root {
    --neon-red: #ff0000;
    --neon-green: #39ff14;
    --neon-cyan: #00ffff;
    --neon-magenta: #ff00ff;
    --bg-black: #050505;
    --text-white: #ffffff;
    --font-meme: 'Comic Neue', cursive;
    --font-impact: 'Rubik Mono One', sans-serif;
    --font-hand: 'Permanent Marker', cursive;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.cursed-body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-meme);
    overflow: hidden;
    height: 100vh;
    height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Allow scrolling ONLY if absolutely necessary on very small screens */
@media (max-height: 500px) {
    body.cursed-body { overflow-y: auto; align-items: flex-start; }
}

/* MS Paint blobs */
.neon-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 10% 20%, var(--neon-magenta) 0%, transparent 20%),
        radial-gradient(circle at 80% 10%, var(--neon-green) 0%, transparent 15%),
        radial-gradient(circle at 50% 90%, var(--neon-cyan) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, var(--neon-red) 0%, transparent 15%);
    filter: blur(40px);
    opacity: 0.12;
}

.cursed-container {
    max-width: 760px;
    width: 100%;
    height: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

/* Shrink elements when game is active */
.game-active .artist-name { font-size: 1.8rem; }
.game-active .location { font-size: 0.8rem; }
.game-active .meme-trigger-zone { max-width: 410px; }
.game-active .meme-stage { max-width: 250px; }
.game-active .cursed-links { gap: 0.4rem; }
.game-active .cursed-btn { padding: 8px; font-size: 0.9rem; }
.game-active #dj-console { transform: scale(0.9); }

header {
    transform: rotate(-2deg);
    margin-bottom: 0.2rem;
}

.artist-name {
    font-family: var(--font-impact);
    font-size: clamp(1.8rem, 10vw, 3.5rem);
    color: var(--text-white);
    text-shadow: 4px 4px 0px var(--neon-red), -2px -2px 0px var(--neon-cyan);
    line-height: 0.9;
    margin-bottom: 0.25rem;
}

.location {
    font-family: var(--font-hand);
    font-size: 0.9rem;
    color: var(--neon-cyan);
    text-shadow: 2px 2px 0px black;
}

.meme-trigger-zone {
    position: relative;
    width: 100%;
    max-width: 610px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 1;
    min-height: 0;
}

.meme-stage {
    position: relative;
    width: min(100%, 380px);
    flex: 0 0 auto;
    max-width: 380px;
    padding: 10px;
    border: 5px solid white;
    background: black;
    box-shadow: 10px 10px 0px var(--neon-magenta);
    overflow: visible;
    pointer-events: none;
}

.meme-trigger {
    appearance: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.meme-trigger:focus-visible {
    outline: 6px dashed var(--neon-cyan);
    outline-offset: 7px;
}

.meme-trigger:active {
    transform: rotate(-0.7deg) translate(4px, 4px);
    box-shadow: 6px 6px 0px var(--neon-magenta);
}

.main-meme {
    width: 100%;
    height: auto;
    display: block;
    filter: contrast(1.1) brightness(1.1);
    pointer-events: none;
}

.deck-hitbox {
    position: absolute;
    right: 14%;
    bottom: 18%;
    width: 28%;
    height: 26%;
    z-index: 4;
    cursor: pointer;
    pointer-events: auto;
    /* invisible but clickable */
}


.deck-callout {
    position: absolute;
    left: 80%;
    bottom: 30%;
    color: var(--neon-cyan);
    font-family: var(--font-hand);
    font-size: clamp(0.95rem, 2.6vw, 1.45rem);
    line-height: 0.95;
    text-transform: uppercase;
    text-align: center;
    pointer-events: none;
    -webkit-text-stroke: 2px black;
    text-shadow:
        3px 3px 0 black,
        -2px 2px 0 black,
        2px -2px 0 black;
}

.warning {
    color: var(--neon-red);
    font-weight: bold;
}

.cursed-links {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cursed-btn {
    text-decoration: none;
    font-family: var(--font-impact);
    font-size: 1.2rem;
    padding: 12px;
    text-align: center;
    border: 4px solid black;
    box-shadow: 6px 6px 0px black;
    transition: all 0.1s;
    position: relative;
}

.cursed-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0px black;
}

.cursed-btn.sc { background: var(--neon-red); color: white; transform: rotate(-1deg); }
.cursed-btn.ig { background: var(--neon-magenta); color: white; transform: rotate(1deg); }
.cursed-btn.mail { background: var(--neon-cyan); color: black; transform: rotate(-0.5deg); }

.cursed-btn:hover {
    filter: brightness(1.2) saturate(1.5);
    z-index: 2;
}

/* Game Section */
.game-section {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#dj-console {
    background: #222;
    border: 4px solid white;
    padding: 10px;
    box-shadow: 8px 8px 0px var(--neon-cyan);
    width: 100%;
    max-width: 400px;
}

.console-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.deck {
    width: 100px;
    height: 100px;
    background: #111;
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.platter {
    width: 80%;
    height: 80%;
    border: 2px dashed white;
    border-radius: 50%;
    background: radial-gradient(circle, #333 30%, transparent 31%);
}

.spinning .platter {
    animation: spin 1s infinite linear;
}

.mixer {
    flex: 1;
    height: 100px;
    border: 2px solid white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.fader {
    width: 40px;
    height: 10px;
    background: var(--neon-red);
    border: 2px solid white;
}
.fx-btn {
    font-family: var(--font-impact);
    background: var(--neon-magenta);
    color: white;
    padding: 4px;
    border: 2px solid black;
    font-size: 0.7rem;
    cursor: pointer;
}

/* Temptation Buttons */
.console-body {
    position: relative; /* For absolute buttons */
}

.temptation-btn {
    position: absolute;
    font-family: var(--font-impact);
    font-size: 0.6rem;
    padding: 4px 8px;
    border: 2px solid black;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
    box-shadow: 3px 3px 0px black;
}

#dj-console:hover .temptation-btn {
    opacity: 1;
    pointer-events: auto;
    animation: wobble-btn 0.5s infinite alternate;
}

.b-1 { top: -10px; left: 10%; background: var(--neon-red); color: white; transform: rotate(-10deg); }
.b-2 { top: -15px; right: 15%; background: var(--neon-green); color: black; transform: rotate(15deg); }
.b-3 { bottom: -10px; left: 20%; background: var(--neon-cyan); color: black; transform: rotate(5deg); }
.b-4 { bottom: -15px; right: 10%; background: var(--neon-magenta); color: white; transform: rotate(-5deg); }

@keyframes wobble-btn {
    from { transform: rotate(-5deg) scale(1); }
    to { transform: rotate(5deg) scale(1.1); }
}

/* Intense Party Elements */
.strobe-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 500;
    pointer-events: none;
    mix-blend-mode: color-dodge;
    animation: strobe-party 0.1s infinite;
}

.reflectors {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

.reflector {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2000px;
    height: 100px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform-origin: left center;
    filter: blur(10px);
}

.r-1 { transform: rotate(0deg) translate(0, -50%); animation: rotate-ref 4s infinite linear; background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent); }
.r-2 { transform: rotate(90deg) translate(0, -50%); animation: rotate-ref 4s infinite linear reverse; background: linear-gradient(90deg, transparent, var(--neon-magenta), transparent); }
.r-3 { transform: rotate(180deg) translate(0, -50%); animation: rotate-ref 3s infinite linear; background: linear-gradient(90deg, transparent, var(--neon-green), transparent); }
.r-4 { transform: rotate(270deg) translate(0, -50%); animation: rotate-ref 5s infinite linear reverse; background: linear-gradient(90deg, transparent, var(--neon-red), transparent); }

@keyframes rotate-ref { from { transform: rotate(0deg) translate(0, -50%); } to { transform: rotate(360deg) translate(0, -50%); } }

@keyframes strobe-party {
    0% { background: rgba(255,0,0,0.1); }
    33% { background: rgba(0,255,0,0.1); }
    66% { background: rgba(0,0,255,0.1); }
    100% { background: rgba(255,255,255,0.1); }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    color: black;
    padding: 1.5rem;
    border: 12px solid black;
    border-radius: 0;
    box-shadow: 14px 11px 0px var(--neon-magenta), -6px -4px 0px var(--neon-green);
    max-width: 500px;
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    max-height: 90vh;
    overflow-y: auto;
    transform: rotate(-1.4deg) skew(-0.6deg);
    clip-path: polygon(1% 0, 99% 1%, 100% 97%, 96% 100%, 2% 98%, 0 4%);
    animation: cursed-card-wobble 0.9s infinite steps(2, end);
}

@keyframes cursed-card-wobble {
    0% { transform: rotate(-1.4deg) skew(-0.6deg); }
    50% { transform: rotate(-0.6deg) skew(0.4deg); }
    100% { transform: rotate(-1.4deg) skew(-0.6deg); }
}

.congrats {
    font-family: var(--font-impact);
    font-size: clamp(0.95rem, 4.4vw, 1.65rem);
    line-height: 1.05;
    color: var(--neon-red);
    text-align: center;
    text-transform: uppercase;
    width: 100%;
    padding: 0.35rem 0.2rem;
    border: 5px solid black;
    background: var(--neon-green);
    box-shadow: 6px 5px 0px black;
    transform: rotate(1.5deg);
    white-space: nowrap;
    animation: flash-text 0.25s infinite steps(1, end);
    -webkit-text-stroke: 1px black;
}

@keyframes flash-text {
    0% { color: var(--neon-red); background: var(--neon-green); }
    50% { color: var(--neon-magenta); background: var(--neon-cyan); }
    100% { color: var(--neon-red); background: var(--neon-green); }
}

.status-msg {
    font-family: var(--font-hand);
    font-size: 1rem;
    text-align: center;
}

.diploma-container {
    width: 100%;
    border: 5px solid black;
    box-shadow: 5px 5px 0px black;
    transform: rotate(0.7deg);
    line-height: 0;
}

.diploma-img {
    width: 100%;
    height: auto;
    display: block;
}

#ok-dj-now {
    background: var(--neon-cyan);
    color: black;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

#stop-dj {
    margin-top: 10px;
    background: white;
    border: 2px solid black;
    font-family: var(--font-meme);
    padding: 4px 8px;
    cursor: pointer;
}

.hidden { display: none !important; }

/* Animations */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@keyframes flash-bg {
    0% { background: var(--bg-black); }
    25% { background: var(--neon-red); }
    50% { background: var(--neon-magenta); }
    75% { background: var(--neon-cyan); }
    100% { background: var(--bg-black); }
}

@keyframes flash-border {
    from { box-shadow: 0 0 5px var(--neon-green); }
    to { box-shadow: 0 0 25px var(--neon-green); }
}

.party-mode {
    background-color: var(--bg-black);
    animation: flash-bg 0.35s steps(1, end) 1 !important;
}

@media (prefers-reduced-motion: reduce) {
    .party-mode, .loading-fill, .spinning .platter {
        animation: none !important;
    }
}

footer {
    width: 100%;
    max-width: 500px;
}

.footer-text {
    font-family: var(--font-hand);
    color: var(--neon-green);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.loading-bar {
    width: 100px;
    height: 15px;
    border: 2px solid white;
    margin: 0 auto;
    background: black;
}

.loading-fill {
    width: 40%;
    height: 100%;
    background: var(--neon-red);
    animation: loading 2s infinite linear;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 80%; }
    100% { width: 0%; }
}

@media (max-height: 700px) {
    .artist-name { font-size: 1.8rem; }
    .meme-trigger-zone { max-width: 520px; }
    .meme-stage { max-width: 280px; }
    .cursed-btn { padding: 8px; font-size: 1rem; }
}

@media (max-width: 720px) {
    .meme-trigger-zone {
        max-width: 380px;
        display: block;
    }

    .deck-callout {
        position: absolute;
        left: 72%;
        bottom: 48%;
        width: auto;
        font-size: clamp(1.05rem, 5.2vw, 1.65rem);
        text-align: center;
        transform: none;
    }

    .deck-hitbox {
        right: 12%;
        bottom: 17%;
        width: 30%;
        height: 28%;
        pointer-events: auto;
    }

