/* =========================================================
   ENERAY WEBSITE — HOME
========================================================= */

/* =========================================================
   BACKGROUND
========================================================= */

.home-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #08050f;
}

.background {
    position: fixed;
    inset: -30px;
    background-image: url("../images/bg.jpg");
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    transform: scale(1.05);
    z-index: -3;
}

.overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        rgba(10, 5, 20, .6),
        rgba(5, 5, 15, .75)
    );
    z-index: -2;
}

.shape {
    position: fixed;
    width: 45vw;
    height: 45vw;
    background: rgba(140, 70, 255, .08);
    clip-path: polygon(0 0, 100% 20%, 70% 100%, 10% 70%);
    z-index: -1;
}

.shape.one {
    top: -15vw;
    left: -10vw;
}

.shape.two {
    right: -10vw;
    bottom: -20vw;
    background: rgba(50, 220, 255, .08);
}

/* =========================================================
   MAIN CARD
========================================================= */

.home-page .container {
    position: fixed;
    left: 50%;
    top: 50%;
    width: min(92vw, 1000px);
    padding: 40px 55px;
    text-align: center;

    background: rgba(15, 10, 25, .48);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(180, 100, 255, .55);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);

    transform: translate(-50%, -50%);
    cursor: grab;

    animation: homeCardAppear .8s ease;
}

@keyframes homeCardAppear {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 12px));
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.home-page .container.dragging {
    cursor: grabbing;
    user-select: none;
}

.home-page .container.shaking {
    pointer-events: none;
}

/* =========================================================
   LOGO
========================================================= */

.home-page .logo {
    width: min(55%, 360px);
    margin-bottom: 25px;
    cursor: pointer;
    transition: transform .35s ease, filter .35s ease;
}

.home-page .logo:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 20px rgba(150, 80, 255, .45));
}

.line {
    width: 65%;
    height: 2px;
    margin: 0 auto 30px;
    background: linear-gradient(90deg, #8f4cff, #36d9ff);
    border-radius: 10px;
}

.welcome {
    margin-bottom: 25px;
    color: rgba(255, 255, 255, .8);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: .2px;
}

/* =========================================================
   MAIN BUTTONS
========================================================= */

.main-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
}

.main-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 80px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 15px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .2px;
    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.main-button:hover {
    transform: scale(1.035);
    background: linear-gradient(
        90deg,
        rgba(143, 76, 255, .3),
        rgba(54, 217, 255, .2)
    );
    border-color: rgba(180, 120, 255, .5);
    box-shadow: 0 10px 35px rgba(100, 60, 255, .2);
}

/* =========================================================
   SOCIALS
========================================================= */

.socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.social {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    text-decoration: none;
    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.social:hover {
    transform: translateY(-5px) scale(1.12);
    background: rgba(255, 255, 255, .17);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .25);
}

.social svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.footer {
    margin-top: 22px;
    color: rgba(255, 255, 255, .5);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* =========================================================
   RESET BUTTON
========================================================= */

.reset-button {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    width: 65px;
    height: 65px;
    align-items: center;
    justify-content: center;

    transform: translate(-50%, -50%);

    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(15, 10, 25, .7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 32px;
    cursor: pointer;
    z-index: 5000;

    box-shadow: 0 10px 35px rgba(0, 0, 0, .35);
    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease,
        opacity .25s ease;
}

.reset-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: linear-gradient(
        135deg,
        rgba(143, 76, 255, .45),
        rgba(54, 217, 255, .3)
    );
    box-shadow: 0 12px 40px rgba(100, 60, 255, .3);
}

.physics-item {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    margin: 0 !important;
}

/* =========================================================
   LOGO ROULETTE
========================================================= */

.logo-roulette {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(5, 3, 12, .45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    z-index: 6000;
    opacity: 0;
    transition: opacity .3s ease;
}

.logo-roulette.visible {
    display: flex;
    opacity: 1;
}

.logo-roulette-box {
    position: relative;
    width: min(90vw, 500px);
    padding: 35px;
    text-align: center;

    background: rgba(15, 10, 25, .82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(180, 100, 255, .5);
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);

    transform: scale(.9);
    transition: transform .3s ease;
}

.logo-roulette.visible .logo-roulette-box {
    transform: scale(1);
}

.logo-roulette-box h2 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.logo-roulette-box p {
    margin-bottom: 25px;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
}

.logo-roulette-close {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 34px;
    height: 34px;

    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .65);

    font-size: 28px;
    line-height: 1;
    cursor: pointer;

    transition: color .2s ease, transform .2s ease;
}

.logo-roulette-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.roulette-logo-container {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.roulette-logo-container img {
    max-width: 80%;
    max-height: 160px;
    object-fit: contain;
}

.spin-button {
    width: 100%;
    padding: 13px 20px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    background: linear-gradient(
        90deg,
        rgba(143, 76, 255, .25),
        rgba(54, 217, 255, .18)
    );
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.spin-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(
        90deg,
        rgba(143, 76, 255, .38),
        rgba(54, 217, 255, .28)
    );
    box-shadow: 0 8px 25px rgba(100, 60, 255, .2);
}

.spin-button:disabled {
    opacity: .55;
    cursor: wait;
}

/* =========================================================
   COOKIE NOTICE
========================================================= */

.cookie-button {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 42px;
    height: 42px;

    display: none;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: rgba(15, 10, 25, .72);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 4000;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .25);
    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.cookie-button:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(
        135deg,
        rgba(143, 76, 255, .35),
        rgba(54, 217, 255, .2)
    );
    box-shadow: 0 10px 30px rgba(100, 60, 255, .2);
}

.cookie-popup {
    position: fixed;
    left: 50%;
    bottom: 25px;
    transform: translateX(-50%);

    width: min(520px, 90vw);
    padding: 20px;

    background: rgba(15, 10, 25, .82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(180, 100, 255, .45);
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, .4);

    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 1.5;

    z-index: 4500;
    animation: cookieAppear .5s ease;
}

.cookie-popup h2 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

.cookie-popup p {
    margin-bottom: 15px;
}

.cookie-popup a {
    color: rgba(255, 255, 255, .85);
    text-decoration: underline;
    text-decoration-color: rgba(143, 76, 255, .6);
}

.cookie-popup a:hover {
    color: #fff;
    text-decoration-color: #36d9ff;
}

.cookie-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.cookie-confirm {
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.cookie-confirm:hover {
    transform: translateY(-2px);
    background: linear-gradient(
        90deg,
        rgba(143, 76, 255, .3),
        rgba(54, 217, 255, .2)
    );
    box-shadow: 0 6px 20px rgba(100, 60, 255, .2);
}

@keyframes cookieAppear {
    from {
        opacity: 0;
        transform: translate(-50%, 15px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes resetButtonAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.5);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
    .home-page .container {
        width: 92vw;
        padding: 30px 20px;
        border-radius: 20px;
    }

    .home-page .logo {
        width: 75%;
    }

    .main-buttons {
        flex-direction: column;
    }

    .main-button {
        min-height: 70px;
        font-size: 20px;
    }

    .socials {
        gap: 10px;
    }

    .social {
        width: 43px;
        height: 43px;
    }

    .reset-button.visible {
        display: flex;
        animation: resetButtonAppear .5s ease;
    }

    .logo-roulette-box {
        width: 92vw;
        padding: 28px 20px;
    }

    .roulette-logo-container {
        height: 150px;
    }

    .roulette-logo-container img {
        max-height: 135px;
    }

    .cookie-popup {
        bottom: 12px;
        width: 92vw;
        padding: 17px;
    }

    .cookie-actions {
        justify-content: center;
    }

    .cookie-confirm {
        width: 100%;
    }

    .cookie-button {
        left: 12px;
        bottom: 12px;
    }
}
