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

body {
    font-family: 'Fredoka', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 3s ease;
    opacity: 0;
    transition: opacity .4s ease;
}

body.loaded {
    opacity: 1;
}

html {
    scroll-behavior: smooth;
}

.actions.single {
    display: flex;
    justify-content: center;
}

.actions.single .big-btn {
    width: 220px;
}

/* ========================= */
/* REVIEWS */
/* ========================= */

#reviews {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.review-card {
    width: 100%;
    max-width: 650px;

    margin-top: 20px;
    padding: 25px;

    background: rgba(255,255,255,.06);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 30px;

    border: 1px solid rgba(255,255,255,.08);

    text-align: center;
}


.review-card .pill {
    margin: 0 auto 15px;
}


.review-card .description {
    text-align: center;
}


.review-card p {
    margin-top: 10px;
}

/* ========================= */
/* USERNAME INPUT */
/* ========================= */

#username {
    width: 100%;
    height: 55px;
    margin-bottom: 20px;

    border-radius: 18px;
    padding: 0 18px;

    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    font-weight: 600;

    background: rgba(255,255,255,.08);
    color: white;

    border: 1px solid rgba(255,255,255,.15);
    outline: none;

    transition: .25s ease;
}

#username::placeholder {
    color: rgba(255,255,255,.55);
}

#username:focus {
    border-color: #68d247;
    background: rgba(255,255,255,.12);

    box-shadow: 
        0 0 0 3px rgba(104,210,71,.25);
}

#username:hover {
    border-color: rgba(255,255,255,.35);
}

/* ========================= */
/* FIX LAYERS */
/* ========================= */

/* Background always behind */
.sky {
    position: fixed;
    inset: 0;
    z-index: -10;
}


/* Main content above background */
.topbar,
.wrapper {
    position: relative;
    z-index: 1;
}


/* Popup above absolutely everything */
.rating-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
}


/* Make button work correctly */
.big-btn {
    border: none;
    cursor: pointer;
    font-family: 'Fredoka', sans-serif;
}

/* ========================= */
/* RATING POPUP */
/* ========================= */

.rating-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.rating-card {
    width: 420px;
    max-width: 90%;
    background: rgba(20,26,57,.9);
    border-radius: 35px;
    padding: 35px;
    text-align: center;
    color: white;
    border: 2px solid rgba(255,255,255,.1);
}

.rating-card h2 {
    font-size: 32px;
    margin-bottom: 25px;
}

.rating-stars {
    font-size: 50px;
    color: #ffd74d;
    cursor: pointer;
    letter-spacing: 5px;
    margin-bottom: 25px;
}

.rating-card textarea {
    width: 100%;
    height: 120px;
    resize: none;
    border-radius: 20px;
    padding: 15px;
    font-family: inherit;
    font-size: 18px;
    background: rgba(255,255,255,.08);
    color: white;
    border: 1px solid rgba(255,255,255,.15);
    outline: none;
}

.submit-rating,
.close-rating {
    margin-top: 20px;
    padding: 14px 25px;
    border-radius: 18px;
    border: none;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.submit-rating {
    background: linear-gradient(#93e65f,#68c93d);
    color:white;
}

.close-rating {
    background: rgba(255,255,255,.1);
    color:white;
    margin-left:10px;
}

/* ========================= */
/* NAVBAR */
/* ========================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    background: rgba(20, 26, 57, 0.35); /* Transparent */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px); /* Safari */

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-btn {
    text-decoration: none;
    color: white;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 14px;
}

.login-small {
    background: #5371ff;
}

.vote-small {
    background: #68d247;
}

.guild-small {
    background: #ffc948;
    color: #312400;
}

/* ========================= */
/* MAIN WRAPPER */
/* ========================= */

.wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

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

.card {
    width: 820px;
    max-width: 95%;
    background: rgba(20, 26, 57, .68);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 42px;
    padding: 40px;
    position: relative;
    text-align: center;
}

.card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 44px;
    border: 2px solid rgba(255, 255, 255, .08);
    pointer-events: none;
}

.card::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, .04);
    pointer-events: none;
}

/* ========================= */
/* SHOP CARD (1100px) */
/* ========================= */

.shopcard {
    width: 1100px;
    max-width: 95%;
    background: rgba(20, 26, 57, .68);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 42px;
    padding: 40px;
    position: relative;
    text-align: center;
}

.shopcard::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 44px;
    border: 2px solid rgba(255, 255, 255, .08);
    pointer-events: none;
}

.shopcard::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, .04);
    pointer-events: none;
}

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

.logo {
    margin-bottom: 25px;
}

.logo-top {
    font-size: 92px;
    font-weight: 700;
    line-height: .9;
    color: white;
    text-shadow: 0 4px 0 #d4d4d4, 0 8px 14px rgba(0, 0, 0, .3);
}

.logo-bottom {
    font-size: 92px;
    font-weight: 700;
    line-height: .9;
    color: #56cd53;
    text-shadow: 0 4px 0 #3f9f3a, 0 8px 14px rgba(0, 0, 0, .3);
}

.pot {
    display: inline-block;
    transform: rotate(-12deg) translateY(6px);
}

.two {
    font-size: 125px;
}

/* ========================= */
/* TEXT */
/* ========================= */

.description {
    color: white;
    font-size: 23px;
    line-height: 1.5;
    max-width: 700px;
    margin: auto;
}

.highlight {
    color: #ffd74d;
}

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

.actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 35px;
    width: 100%;
}

.big-btn {
    width: 100%;
    aspect-ratio: 1.8 / 1;

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

    text-decoration: none;
    border-radius: 30px;
    font-size: clamp(18px, 2.5vw, 30px);
    font-weight: 700;

    transition: transform .2s, box-shadow .2s;
    box-shadow:
        inset 0 3px rgba(255,255,255,.25),
        0 10px 0 rgba(0,0,0,.18);
}

.big-btn:hover {
    transform: translateY(-6px) scale(1.03);
}

.big-btn:active {
    transform: translateY(4px) scale(.98);
}

.vote {
    background: linear-gradient(#93e65f, #68c93d);
    color: white;
}

.guild {
    background: linear-gradient(#ffd95d, #f4b127);
    color: #332300;
}

.login {
    background: linear-gradient(#6c86ff, #4d68f0);
    color: white;
}

/* ========================= */
/* PILLS */
/* ========================= */

.pill {
    width: fit-content;
    max-width: 90%;

    margin: 16px auto;
    padding: 12px 26px;

    border-radius: 999px;

    color: white;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);

    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
}

.green {
    color: #66e26a;
}

/* ========================= */
/* DIVIDER */
/* ========================= */

.divider {
    height: 1px;
    background: rgba(255, 255, 255, .08);
    margin: 22px 0;
}

/* ========================= */
/* EDGE BOX */
/* ========================= */

.edge {
    background: rgba(55, 110, 70, .65);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    padding: 20px;
    color: white;
    font-size: 28px;
    font-weight: 700;
}

/* ========================= */
/* SHOP GRID */
/* ========================= */

.shop {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 35px;
}

/* ========================= */
/* SHOP ITEM (PRODUCT CARD) */
/* ========================= */

.shop-item {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.shop-item:hover {
    transform: translateY(-8px);
    border-color: rgba(122, 201, 255, .5);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.shop-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform .45s ease;
}

.shop-item:hover img {
    transform: scale(1.08);
}

.shop-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}

.shop-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.shop-price {
    font-size: 18px;
    font-weight: 600;
    color: #74f38a;
    margin-bottom: 18px;
}

.discount {
    color: #888;
    text-decoration: line-through;
    text-decoration-thickness: 3px;
    margin-right: 8px;
}

/* ========================= */
/* SHOP BUY BUTTON */
/* ========================= */

.shop-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    text-decoration: none;
    background: linear-gradient(135deg, #5b8cff, #3d6eff);
    color: white;
    font-size: 16px;
    font-weight: 700;
    transition: transform .25s, box-shadow .25s, background .25s;
}

.shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(61, 110, 255, .45);
}

.shop-btn:active {
    transform: scale(.97);
}

/* ========================= */
/* RESPONSIVE - TABLET */
/* ========================= */

@media (max-width: 900px) {
    .shop {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .logo-top,
    .logo-bottom {
        font-size: 56px;
    }

    .two {
        font-size: 70px;
    }

    .description {
        font-size: 18px;
    }

    .card,
    .shopcard {
        padding: 22px;
        border-radius: 28px;
    }

    .shop {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .shop-title {
        font-size: 16px;
    }

    .shop-price {
        font-size: 15px;
    }

    .shop-btn {
        padding: 11px;
        font-size: 15px;
    }
}

/* ========================= */
/* RESPONSIVE - MOBILE */
/* ========================= */

@media (max-width: 420px) {
    .logo-top,
    .logo-bottom {
        font-size: 56px;
    }

    .two {
        font-size: 70px;
    }

    .description {
        font-size: 18px;
    }

    .shop {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .shop-content {
        padding: 12px;
    }

    .shop-btn {
        padding: 10px;
        font-size: 14px;
    }

        .rating-card {
        padding:25px;
    }

    #username {
        height:50px;
        font-size:16px;
    }

}
/* ========================= */
/* RESPONSIVE BUTTONS */
/* ========================= */

@media (max-width: 768px) {
    .actions {
        gap: 14px;
    }

    .big-btn {
        border-radius: 22px;
        font-size: clamp(14px, 3vw, 22px);
    }
}

@media (max-width: 480px) {
    .actions {
        gap: 8px;
    }

    .big-btn {
        border-radius: 18px;
        font-size: 14px;
        aspect-ratio: 1.4 / 1;
    }
}

/* ========================= */
/* FOOTER */
/* ========================= */

footer {
    position: relative;
    z-index: 1;

    width: 100%;
    margin-top: 50px;

    padding: 35px 20px;

    background: rgba(20, 26, 57, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-top: 1px solid rgba(255,255,255,.08);

    text-align: center;
    color: white;
}


/* FOOTER NAVIGATION */

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 25px;
}


.footer-nav a {
    text-decoration: none;

    color: white;

    font-family: 'Fredoka', sans-serif;
    font-size: 17px;
    font-weight: 700;

    padding: 12px 22px;

    border-radius: 14px;

    background: rgba(255,255,255,.08);

    transition: .25s ease;
}


.footer-nav a:hover {
    background: rgba(104,210,71,.35);
    transform: translateY(-3px);
}


/* CONTACT */

.footer-contact {
    color: white;

    font-size: 18px;
    line-height: 1.8;

    margin-bottom: 20px;
}


.footer-contact a {
    color: #ffd74d;

    text-decoration: none;
    font-weight: 700;
}


.footer-contact a:hover {
    text-decoration: underline;
}


/* COPYRIGHT */

.footer-bottom {
    color: rgba(255,255,255,.55);

    font-size: 14px;
}


/* MOBILE */

@media (max-width: 600px) {

    footer {
        padding: 25px 15px;
    }


    .footer-nav {
        gap: 8px;
    }


    .footer-nav a {
        font-size: 15px;
        padding: 10px 15px;
    }


    .footer-contact {
        font-size: 16px;
    }

}

/* ========================= */
/* RATE BUTTON MOBILE */
/* ========================= */

@media (max-width: 600px) {

    .actions.single .big-btn {
        width: 160px;
        aspect-ratio: auto;
        height: 60px;

        font-size: 20px;
        border-radius: 20px;
    }

}
@media (max-width: 420px) {

    .actions.single .big-btn {
        width: 140px;
        height: 55px;

        font-size: 18px;
    }

}
