:root {
    --bg-dark: #07080c;
    --bg-card: rgba(18, 20, 32, 0.78);
    --border-card: rgba(255, 255, 255, 0.15);
    --primary: #ff0055;
    --accent: #9333ea;
    --cyan: #06b6d4;
    --yellow: #f59e0b;
    --text-main: #f8fafc;
}

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

html, body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

#threeCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    display: block;
}

.bg-effects {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.45;
    animation: float 16s ease-in-out infinite alternate;
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #ff0055, transparent);
}

.blob-2 {
    bottom: -15%;
    left: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, var(--accent), transparent);
    animation-delay: -6s;
}

.blob-3 {
    top: 30%;
    left: 35%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--yellow), transparent);
    opacity: 0.25;
    animation-delay: -11s;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -50px) scale(1.1); }
    100% { transform: translate(-30px, 30px) scale(0.9); }
}

.stage-container {
    position: relative;
    z-index: 10;
    perspective: 1000px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    padding: 24px;
    text-align: center;
    border-radius: 32px;
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-card);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    transition: transform 0.15s ease-out;
    transform-style: preserve-3d;
    max-width: 440px;
    width: 100%;
}

.clown-glow-ring {
    position: absolute;
    inset: -14px;
    border-radius: 46px;
    background: linear-gradient(45deg, #ff0055, var(--accent), var(--yellow), var(--cyan));
    filter: blur(28px);
    opacity: 0.75;
    z-index: -1;
    animation: rotateGlow 8s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.clown-img {
    width: 100%;
    max-width: 370px;
    height: auto;
    border-radius: 22px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    display: block;
    margin: 0 auto;
}
