﻿
:root {
    --brand-yellow: #ffd54f; /* banner-like */
    --brand-orange: #ff9a00; /* provided */
    --brand-magenta: #d84b8a;
    --brand-blue: #2b6fb3;
    --bg: #ffc98e;
    --glass: rgba(255,255,255,0.55);
    --card-shadow: 0 10px 30px rgba(33,33,33,0.08);
    --accent: var(--brand-orange);
    font-family: 'Poppins', 'Nunito', system-ui, sans-serif;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: linear-gradient(360deg, var(--bg), #fff7e9);
    color: #1b2230;
}

/* subtle textured dots background */
.dots-bg {
    position: fixed;
    inset: 0;
    pointer-events: auto;
    z-index: 0;
    opacity: 0.35;
    filter: blur(2px);
}

    .dots-bg span {
        position: absolute;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        mix-blend-mode: screen;
        transition: transform .35s ease, filter .35s ease;
        transform: scale(1);
    }

        .dots-bg span:nth-child(1) {
            left: 10%;
            top: 8%;
            background: var(--brand-orange);
            animation-duration: 8s
        }

        .dots-bg span:nth-child(2) {
            left: 20%;
            top: 30%;
            background: var(--brand-magenta);
            animation-duration: 10s
        }

        .dots-bg span:nth-child(3) {
            left: 75%;
            top: 12%;
            background: var(--brand-blue);
            animation-duration: 7s
        }

        .dots-bg span:nth-child(4) {
            left: 85%;
            top: 55%;
            background: var(--brand-orange);
            animation-duration: 9s
        }

        .dots-bg span:nth-child(5) {
            left: 45%;
            top: 80%;
            background: var(--brand-magenta);
            animation-duration: 11s
        }

        .dots-bg span:nth-child(6) {
            left: 60%;
            top: 40%;
            background: var(--brand-blue);
            animation-duration: 12s
        }

@keyframes float {
    0% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-20px)
    }

    100% {
        transform: translateY(0)
    }
}

{
    0%

{
    transform: translateY(0) scale(1)
}

50% {
    transform: translateY(-30px) scale(.85)
}

100% {
    transform: translateY(0) scale(1)
}

}

/* page container */
.container {
    max-width: 1200px;
    margin: 36px auto;
    padding: 28px;
    position: relative;
    z-index: 2
}

.card {
    background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.45));
    backdrop-filter: blur(6px);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--card-shadow)
}

/* top section layout */
.top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start
}

.banner-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08)
}

    .banner-wrap img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        cursor: pointer;
        transition: transform .35s ease;
    }

        .banner-wrap img:hover {
            transform: scale(1.03);
        }

.about {
    padding: 18px
}

    .about h1 {
        font-size: 34px;
        margin: 0 0 8px;
        color: var(--brand-blue);
        letter-spacing: -1px;
    }

        .about h1.one span {
            display: inline-block;
        }
/* animation one (provided) */
.one span {
    color: var(--brand-blue);
    opacity: 0;
    transform: translate(-150px,-50px) rotate(-180deg) scale(3);
    animation: revolveScale .45s forwards;
}

    .one span:nth-child(1) {
        animation-delay: .05s;
    }

    .one span:nth-child(2) {
        animation-delay: .12s;
    }

    .one span:nth-child(3) {
        animation-delay: .19s;
    }

@keyframes revolveScale {
    60% {
        transform: translate(20px,20px) rotate(30deg) scale(.3);
    }

    100% {
        transform: translate(0) rotate(0) scale(1);
        opacity: 1;
    }
}

.about p {
    line-height: 1.6;
    text-align: justify;
    color: #243142;
}

.quick-instr {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.instr {
    flex: 1 1 calc(50% - 12px);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    background: var(--glass);
    border-radius: 10px;
}

    .instr i {
        font-size: 22px;
        color: var(--brand-orange);
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(180deg,#fff, rgba(255,255,255,0.8));
        border-radius: 10px;
        box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    }

    .instr span {
        font-weight: 600;
        color: #183049;
    }

/* second section - steps */
.steps-section {
    margin-top: 20px;
    padding: 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(250,245,235,0.8), rgba(255,255,255,0.5));
    box-shadow: var(--card-shadow)
}

.steps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .steps-header h2 {
        margin: 0;
        font-size: 22px;
        color: var(--brand-magenta)
    }

.steps-list {
    margin-top: 14px;
}

    .steps-list ol {
        padding-left: 1.2rem;
    }

    .steps-list li {
        padding: 10px 6px;
        border-left: 4px solid rgba(0,0,0,0.04);
        margin-bottom: 8px;
        background: rgba(255,255,255,0.5);
        border-radius: 8px;
    }

/* rules table */
.rules {
    margin-top: 18px;
}

    .rules table {
        width: 100%;
        border-collapse: collapse;
    }

    .rules th, .rules td {
        padding: 10px 12px;
        border: 1px solid rgba(0,0,0,0.06);
        vertical-align: top;
        text-align: justify;
    }

    .rules th {
        background: linear-gradient(90deg, rgba(255,154,0,0.13), rgba(216,75,138,0.08));
        color: #1b2230;
        text-align: left;
    }

/* Apply button fizzy */
.apply-wrap {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.fizzy-btn {
    position: relative;
    display: inline-block;
    padding: 14px 26px;
    border-radius: 40px;
    font-weight: 800;
    background: linear-gradient(90deg,var(--brand-orange),var(--brand-magenta));
    color: white;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .8px;
    box-shadow: 0 10px 30px rgba(217,73,120,0.18);
    overflow: hidden;
}

    .fizzy-btn:before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.25), rgba(255,255,255,0));
        opacity: .4;
        mix-blend-mode: overlay;
    }

    .fizzy-btn .spark {
        position: absolute;
        left: -30%;
        top: -40%;
        width: 140%;
        height: 180%;
        background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.12) 50%, transparent 80%);
        transform: skewX(-18deg);
        transition: all .6s ease;
    }

    .fizzy-btn:hover .spark {
        left: 60%;
    }

    .fizzy-btn:active {
        transform: translateY(2px);
    }

/* modal for full-width image */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
}

    .modal img {
        max-width: 95%;
        max-height: 90%;
        border-radius: 10px;
        box-shadow: 0 16px 60px rgba(0,0,0,0.6);
    }

    .modal.open {
        display: flex;
    }

/* decorations */
.corner-deco {
    position: absolute;
    right: 8px;
    top: 8px;
    opacity: .12;
    font-size: 110px;
    color: var(--brand-orange);
    transform: rotate(-12deg);
    pointer-events: none;
}

/* responsive */
@media (max-width:900px) {
    .top-grid {
        grid-template-columns: 1fr;
    }

    .instr {
        flex: 1 1 100%;
    }

    .about h1 {
        font-size: 26px;
    }
}

@media (max-width:480px) {
    .container {
        padding: 14px;
    }

    .about p {
        font-size: 14px;
    }

    .instr i {
        width: 40px;
        height: 40px;
    }
}

.dots-bg span:hover {
    transform: scale(2.1);
    filter: blur(0px);
}