#hero {
    position: relative;
    background: linear-gradient(135deg, var(--orange-start), var(--orange-end));
    color: var(--text-light);
    text-align: center;
    padding: 8rem 0 6rem;
    overflow: hidden;
}

#hero img.logo {
    width: 120px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 22px #ffb22244);
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

#hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

#hero a.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--dark);
    color: var(--text-light);
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08), 0 1.5px 8px rgba(255,136,0,0.05);
    transition: transform 0.25s cubic-bezier(.65,-0.3,.55,1.5), background 0.2s, color 0.2s, box-shadow 0.2s;
}

#hero a.btn:hover,
#hero a.btn:focus {
    background: linear-gradient(90deg, var(--orange-end), var(--orange-start));
    color: var(--dark);
    transform: scale(1.09) translateY(-2px) rotate(-1deg);
    box-shadow: 0 6px 28px rgba(255,136,0,0.09), 0 3px 12px rgba(255,136,0,0.08);
}

#hero svg.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1;
    pointer-events: none;
}

.scroll-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(.57,1.32,.58,.96), transform 0.9s cubic-bezier(.57,1.32,.58,.96);
    will-change: opacity, transform;
}

.scroll-fade.visible {
    opacity: 1;
    transform: none;
}

#spoiler {
    background: var(--white);
    color: var(--text-dark);
    padding: 6rem 0;
}

#spoiler h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

#spoiler h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 0.5rem auto 2rem;
    border-radius: 4px;
}

.spoiler-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    transition: box-shadow 0.23s, background 0.2s;
}

.spoiler-row:hover {
    box-shadow: 0 4px 40px rgba(255,168,0,0.11), 0 2px 8px rgba(0,0,0,0.09);
    background: rgba(255,204,0,0.04);
}

.spoiler-text {
    flex: 1 1 300px;
}

.spoiler-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.spoiler-text hr {
    border: none;
    height: 3px;
    width: 60px;
    background: var(--accent);
    margin-bottom: 1rem;
    border-radius: 2px;
}

.spoiler-text p {
    font-size: 1rem;
    line-height: 1.5;
}

.spoiler-img {
    flex: 1 1 300px;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s, transform 0.35s, filter 0.35s;
    filter: grayscale(10%) brightness(0.97);
}

.spoiler-img:hover,
.spoiler-img:focus {
    box-shadow: 0 8px 38px rgba(255,168,0,0.19), 0 4px 16px rgba(0,0,0,0.14);
    transform: scale(1.04) rotate(-1.5deg);
    filter: none;
}

#rules {
    background: var(--dark);
    color: var(--text-light);
    padding: 6rem 0;
}

#rules h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

#rules h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 0.5rem auto 2rem;
    border-radius: 4px;
}

#rules ul {
    max-width: 700px;
    margin: 0 auto;
    list-style: none;
    padding-left: 1.5rem;
}

#rules ul li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    transition: color 0.2s;
}

#rules ul li::before {
    content: '✘';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 1.2em;
}

#rules ul li:hover {
    color: var(--accent);
}

@media (max-width: 800px) {
    .spoiler-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .spoiler-img {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 600px) {
    #hero h1 {
        font-size: 2rem;
    }

    #hero {
        padding: 4rem 0 3rem;
    }

    #spoiler h2,
    #rules h2 {
        font-size: 1.5rem;
    }
}