:root {
    --bg: #87CEEB; /* رنگ آبی آسمانی */
    --gold: #D4A017;
}

body {
    /* ایجاد یک آسمان آبی گرادیان از تیره به روشن */
    background: linear-gradient(180deg, #1e90ff 0%, #87ceeb 50%, #b0e0e6 100%);
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* جلوگیری از انتخاب متن در کل صفحه */
    user-select: none; 
    -webkit-user-select: none;
}

/* --- بوم ذرات --- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    /* بهینه‌سازی سخت‌افزاری برای رندر سریع‌تر ذرات */
    will-change: transform;
}

/* --- سکه چرخان --- */
.coin-wrapper {
    perspective: 800px;
}

.coin {
    width: 180px;
    height: 180px;
    position: relative;
    transform-style: preserve-3d;
    animation: spinCoin 6s ease-in-out infinite;
    /* بهینه‌سازی سخت‌افزاری برای چرخش نرم‌تر سکه */
    will-change: transform;
}

.coin-face {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden; /* پشتیبانی از مرورگرهای وب‌کیت */
}

.coin-front {
    background: linear-gradient(145deg, #F4D03F 0%, #D4A017 40%, #8B6914 100%);
    box-shadow:
        inset 0 2px 6px rgba(255,255,255,0.35),
        inset 0 -3px 6px rgba(0,0,0,0.35),
        0 0 60px rgba(212,160,23,0.6),
        0 0 120px rgba(212,160,23,0.25);
    border: 3px solid rgba(255,255,255,0.2);
}

.coin-back {
    background: linear-gradient(145deg, #8B6914 0%, #D4A017 60%, #F4D03F 100%);
    transform: rotateY(180deg);
    box-shadow:
        inset 0 2px 6px rgba(255,255,255,0.35),
        inset 0 -3px 6px rgba(0,0,0,0.35),
        0 0 60px rgba(212,160,23,0.6),
        0 0 120px rgba(212,160,23,0.25);
    border: 3px solid rgba(255,255,255,0.2);
}

.coin-icon {
    font-size: 4.5rem;
    color: rgba(7, 11, 20, 0.45);
}

.coin-label {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    color: rgba(7, 11, 20, 0.38);
    letter-spacing: 0.12em;
    margin-top: 4px;
    user-select: none;
}

@keyframes spinCoin {
    0%, 100% { transform: rotateY(0deg) rotateX(8deg); }
    50%      { transform: rotateY(180deg) rotateX(-8deg); }
}