:root {
    --primary-blue: #001f3f;
    --primary-gold: #ffcc00;
    --dark-gold: #b8860b;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --error-red: #ff4444;
}

* { box-sizing: border-box; }

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    color: white;
    overflow: hidden;
    background: #0b1120;
    touch-action: none; /* Prevent scrolling while scratching on mobile */
}

/* --- BACKGROUND --- */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.9)), url('1X.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* --- FLOATING COINS --- */
.coin-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1; 
}

.coin-floating {
    position: absolute;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 20px 20px rgba(0,0,0,0.5)); 
    transform-origin: center;
    will-change: transform;
}

@keyframes zeroGravity {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(15deg); }
    66% { transform: translate(-20px, -80px) rotate(-10deg); }
    100% { transform: translate(10px, -30px) rotate(5deg); }
}

/* --- MAIN CARD --- */
.content-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 25px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    max-width: 450px;
    width: 90%;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 5px 0;
    color: #fff;
    line-height: 1;
}

/* --- SCRATCH CARD STYLES --- */
.scratch-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 15px 0 25px 0;
}

.scratch-container {
    position: relative;
    width: 280px;
    height: 70px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
    border: 2px dashed rgba(255,255,255,0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.secret-code {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
    background: #2d3748;
    z-index: 1;
    letter-spacing: 2px;
}

canvas#scratchCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewport="0 0 24 24" fill="white"><circle cx="12" cy="12" r="10"/></svg>') 12 12, auto;
    touch-action: none;
}

/* --- BUTTON & SOCIALS --- */
.cta-button {
    background: linear-gradient(90deg, #28a745, #218838);
    color: white;
    padding: 15px 50px;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    text-transform: uppercase;
    transition: 0.3s;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(40, 167, 69, 0.6); }

.social-icons { margin-top: 25px; opacity: 0.6; }
.social-icons i { margin: 0 12px; font-size: 1.2rem; cursor: pointer; transition: 0.3s; }
.social-icons i:hover { color: var(--primary-gold); opacity: 1; }

/* --- BOTTOM TOAST --- */
#bottomToast {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 420px;
    background: #fff;
    color: #333;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    transition: bottom 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
    border-top: 5px solid #d32f2f;
}
#bottomToast.show { bottom: 20px; }
.toast-content { display: flex; align-items: center; justify-content: space-between; }
.toast-icon { font-size: 2rem; color: #d32f2f; margin-right: 15px; animation: pulse 1.5s infinite; }
.text-group { flex: 1; text-align: left; }
.toast-msg { font-size: 0.95rem; font-weight: 700; margin-bottom: 5px; line-height: 1.3; }
.timer-display { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 900; color: #d32f2f; background: #fdf2f2; padding: 2px 10px; border-radius: 5px; display: inline-block; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* --- FIREWORKS --- */
.particle { position: absolute; pointer-events: none; animation: shoot 0.8s ease-out forwards; z-index: 999; }
@keyframes shoot {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}