:root {
    --dark: #1A1420;
    --light: #F8F0D8;
    --text-light: #F0E8D0;
    --text-dark: #2A1A30;
    --gold: #C9A84C;
    --gold-bright: #E8C840;
    --fortune-red: #D44040;
    --pearl: #FFFDF5;
    --dusty-rose: #B8928C;
}

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

body {
    background-color: var(--dark);
    color: var(--text-light);
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
}

/* Background wheel */
.bg-wheel {
    position: fixed;
    width: 240px;
    height: 240px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
    z-index: 0;
    animation: wheel-spin 360s linear infinite;
    pointer-events: none;
}

.bg-wheel.reveal {
    opacity: 0.15;
    transition: opacity 2s ease;
}

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

/* Hex grid pattern */
.hex-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='46'%3E%3Cpath d='M20,0 L40,11.5 L40,34.5 L20,46 L0,34.5 L0,11.5 Z' stroke='%23C9A84C' stroke-width='0.5' fill='none' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Shimmer effect */
.shimmer-text {
    background: linear-gradient(
        110deg,
        var(--gold) 0%,
        var(--gold) 40%,
        var(--pearl) 50%,
        var(--gold) 60%,
        var(--gold) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 8s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes shimmer {
    0%, 60% { background-position: 200% center; }
    80%, 100% { background-position: -200% center; }
}

/* Sections */
.section {
    position: relative;
    z-index: 2;
}

/* Section 1: The Anticipation */
.section-anticipation {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark);
    overflow: hidden;
}

.radiating-lines {
    position: absolute;
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
}

.ray {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: draw-ray 1.5s ease forwards;
}

.ray:nth-child(1) { animation-delay: 0.05s; }
.ray:nth-child(2) { animation-delay: 0.1s; }
.ray:nth-child(3) { animation-delay: 0.15s; }
.ray:nth-child(4) { animation-delay: 0.2s; }
.ray:nth-child(5) { animation-delay: 0.25s; }
.ray:nth-child(6) { animation-delay: 0.3s; }
.ray:nth-child(7) { animation-delay: 0.35s; }
.ray:nth-child(8) { animation-delay: 0.4s; }
.ray:nth-child(9) { animation-delay: 0.45s; }
.ray:nth-child(10) { animation-delay: 0.5s; }
.ray:nth-child(11) { animation-delay: 0.55s; }
.ray:nth-child(12) { animation-delay: 0.6s; }
.ray:nth-child(13) { animation-delay: 0.65s; }
.ray:nth-child(14) { animation-delay: 0.7s; }
.ray:nth-child(15) { animation-delay: 0.75s; }
.ray:nth-child(16) { animation-delay: 0.8s; }
.ray:nth-child(17) { animation-delay: 0.85s; }
.ray:nth-child(18) { animation-delay: 0.9s; }
.ray:nth-child(19) { animation-delay: 0.95s; }
.ray:nth-child(20) { animation-delay: 1.0s; }
.ray:nth-child(21) { animation-delay: 1.05s; }
.ray:nth-child(22) { animation-delay: 1.1s; }
.ray:nth-child(23) { animation-delay: 1.15s; }
.ray:nth-child(24) { animation-delay: 1.2s; }

@keyframes draw-ray {
    to { stroke-dashoffset: 0; }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(2rem, 4.5vw, 4rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: var(--dusty-rose);
    max-width: 480px;
    margin: 0 auto;
}

/* Diagonal dividers */
.diagonal-divider {
    height: 80px;
    position: relative;
    z-index: 3;
}

.dark-to-light {
    background-color: var(--light);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.dark-to-light::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.light-to-split {
    background: linear-gradient(90deg, var(--dark) 50%, var(--light) 50%);
    clip-path: polygon(0 0, 100% 100%, 100% 0);
}

.light-to-split::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light);
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.split-to-dark {
    background-color: var(--dark);
    clip-path: polygon(0 0, 100% 100%, 100% 0);
}

.split-to-dark::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--dark) 50%, var(--light) 50%);
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.dark-to-gold {
    background: linear-gradient(135deg, var(--light) 0%, var(--pearl) 100%);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.dark-to-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* Section 2: Morning Fortune */
.section-morning {
    min-height: 160vh;
    background-color: var(--light);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.deco-fan {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 120px;
    height: 120px;
}

.content-column {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.big-number {
    margin-bottom: 48px;
    text-align: center;
}

.playfair-number {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--gold);
}

.text-block {
    margin-bottom: 32px;
}

.body-text {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.75;
}

.light-text { color: var(--text-light); }
.dark-text { color: var(--text-dark); }

/* Section 3: The Split */
.section-split {
    min-height: 140vh;
    display: flex;
    position: relative;
}

.split-panel {
    flex: 1;
    padding: 80px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.split-dark {
    background-color: var(--dark);
}

.split-light {
    background-color: var(--light);
}

.split-content {
    max-width: 320px;
}

.split-heading {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.dice-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.lucky-dice {
    width: 60px;
    height: 50px;
}

/* Section 4: The Streak */
.section-streak {
    min-height: 120vh;
    background-color: var(--dark);
    padding: 80px 20px;
    display: flex;
    align-items: center;
}

.lucky-card {
    perspective: 800px;
    margin-bottom: 40px;
}

.card-inner {
    padding: 32px;
    border: 1px solid var(--gold);
    position: relative;
    transform: rotateY(90deg);
    transition: transform 0.6s ease;
}

.card-inner.flipped {
    transform: rotateY(0deg);
}

.card-text {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-light);
}

/* Section 5: The Jackpot */
.section-jackpot {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light) 0%, var(--pearl) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jackpot-content {
    text-align: center;
}

.jackpot-title {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.fortune-underline {
    display: block;
    width: 80px;
    height: 2px;
    background-color: var(--fortune-red);
    margin: 0 auto 24px;
}

.jackpot-subtitle {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: var(--text-dark);
}

/* Fade-in */
[data-fade] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-fade].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
    .section-split {
        flex-direction: column;
    }

    .split-panel {
        padding: 60px 24px;
    }

    .split-content {
        max-width: 100%;
    }

    .dice-container {
        display: none;
    }

    .radiating-lines {
        width: 400px;
        height: 400px;
    }

    .content-column {
        padding: 0 4px;
    }
}
