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

body {
    min-height: 100vh;
}

/* ========================================
   HERO SECTION - Sand Reveal
   ======================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    cursor: crosshair;
}

/* Bottom layer - the hidden treasure content */
.hero__revealed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #2d1b4e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero__revealed h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    text-align: center;
    background: linear-gradient(135deg, #ffd700, #ffec8b, #daa520);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
    margin-bottom: 1rem;
}

.hero__revealed p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    text-align: center;
    color: #c9b896;
    max-width: 600px;
    line-height: 1.6;
}

/* Treasure items scattered around */
.treasure-item {
    position: absolute;
    font-size: 3rem;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    animation: float 3s ease-in-out infinite;
}

.treasure-item:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.treasure-item:nth-child(2) { top: 20%; right: 15%; animation-delay: 0.5s; }
.treasure-item:nth-child(3) { bottom: 25%; left: 20%; animation-delay: 1s; }
.treasure-item:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 1.5s; }
.treasure-item:nth-child(5) { top: 50%; left: 5%; animation-delay: 0.3s; }
.treasure-item:nth-child(6) { top: 40%; right: 8%; animation-delay: 0.8s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* The sand canvas layer */
.hero__sand {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Let clicks pass through to handle on container */
}

/* Instruction overlay */
.hero__instructions {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #fff;
    backdrop-filter: blur(10px);
    transition: opacity 0.5s ease;
    z-index: 10;
}

.hero__instructions.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Progress indicator */
.hero__progress {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #ffd700;
    backdrop-filter: blur(10px);
    z-index: 10;
}

/* Reset button */
.hero__reset {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 1);
    border: 1px solid #ffd700;
    color: #ffd700;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.hero__reset:hover {
    background: rgba(255, 215, 0, 0.4);
}

/* ========================================
   REST OF PAGE (Demo content)
   ======================================== */
.content {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.content h2 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.content p {
    color: #c9b896;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ========================================
   MOBILE STYLES
   ======================================== */
@media (max-width: 768px) {
    .treasure-item {
        font-size: 2rem;
    }
    
    .hero__instructions {
        bottom: 1rem;
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}