@import url("https://fonts.googleapis.com/css2?family=Lilita+One&family=Nunito+Sans:ital,opsz,wdth,wght,YTLC@0,6..12,75..125,200..1000,440..540;1,6..12,75..125,200..1000,440..540&display=swap");

:root {
    --ink: #ffd000;
    --muted: #ff8c00;
    --accent: #3df478;
    --accent-2: #7dff50;
    --card: #b26131;
    --glass: rgba(255, 255, 255, 0.9);
    --border: #4a3326;
    --shadow: 0 12px 28px rgba(36, 54, 35, 0.08);
    --radius: 16px;
    --fast: 160ms ease;
}

a {
    text-decoration: none;
    color: inherit;
}

* {
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 6px;
    background-color: #e3ffe3;
}

::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 6px;
    height: 45px;
}

::-webkit-scrollbar-track {
    background-color: #e3ffe5;
    border-radius: 6px;
}

::-webkit-scrollbar-corner {
    background-color: transparent;
}

:focus {
    outline: none;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 28px);
}

img {
    max-width: 100%;
    height: auto;
}

html,
body {
    margin: 0;
    font-family: "Nunito Sans", sans-serif;
    font-synthesis: none;
    font-size: clamp(16px, 1rem + 0.25vw, 18px);
    font-weight: 500;
    line-height: 1.6;
    color: var(--ink);
    background: #337c74;
    overflow-x: hidden;
    position: relative;
}

.wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1 {
    font-family: "Lilita One", sans-serif;
}

.section-title {
    font-size: 22px;
    margin: 0;
}

h3 {
    font-family: "Lilita One", sans-serif;
    font-size: 32px;
    margin: 0;
}

.header {
    background: var(--card);
    border-bottom: 4px solid var(--border);
    font-family: "Lilita One", sans-serif;
    position: sticky;
    top: 0;
    z-index: 30;
}

.header_banner {
    text-align: center;
    padding: 8px 16px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-size: 12px;
    background: #7c4322;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header_nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header_logo img {
    width: 220px;
    height: 80px;
}

.nav_list {
    padding-left: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn {
    padding: 10px;
    background: #d8e3e9;
    color: #6bcd4c;
    font-size: 28px;
    border-radius: 12px;
    border: 2px solid #88959c;
    font-family: "Lilita One", sans-serif;
    transition:
        transform 0.3s,
        box-shadow 0.3s,
        background 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}

.section-left {
    display: grid;
    grid-template-columns: minmax(320px, 1.5fr) minmax(260px, 0.9fr);
    align-items: center;
    gap: 20px;
    padding: 60px 0;
}

.content-grin {
    background: rgba(216, 227, 233, 0.3);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0px 1px 28px rgb(22 180 13 / 48%);
    color: #4a3326;
}

.hero-title {
    margin: 0;
}

.hero-img {
    text-align: center;
    width: 300px;
}

.hero-list {
    padding-left: 20px;
}

.btn-wrap {
    padding: 10px 20px;
    transition:
        transform 0.3s,
        box-shadow 0.3s,
        background 0.3s;
}

.btn-wrap:hover {
    transform: scale(1.05);
}

.hero-btn {
    padding: 10px 40px;
}

.section-right {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.5fr);
    align-items: center;
    gap: 20px;
    padding: 60px 0;
}

.about-img {
    text-align: center;
}

.content-blue {
    background: rgba(216, 227, 233, 0.3);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0px 1px 28px rgb(0 200 255 / 48%);
    color: #4a3326;
}

dt {
    font-weight: 700;
}

dd {
    font-weight: 400;
}

.rules {
    padding: 60px 0;
}

.rules-list {
    padding-left: 20px;
}

.rules-img img {
    border-radius: 12px;
    text-align: center;
}

.list-wrap {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rules-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq {
    background: rgba(216, 227, 233, 0.3);
    border-radius: 12px;
    padding: 60px 20px;
    box-shadow: 0px 1px 28px rgba(13, 144, 180, 0.48);
    color: #4a3326;
}

.faq details {
    background: rgba(216, 227, 233, 0.8);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
}

.faq p {
    margin: 6px 0 0;
    color: var(--muted);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form label {
    display: grid;
    gap: 6px;
    font-weight: 700;
    color: #4a3326;
}

.contact-form input,
.contact-form textarea {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    background: rgba(216, 227, 233, 0.8);
    box-shadow: none;
}

.contact-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.contact-img {
    text-align: center;
}

.responsible {
    background: rgba(216, 227, 233, 0.3);
    border-radius: 12px;
    padding: 60px 20px;
    box-shadow: 0px 1px 28px rgba(13, 144, 180, 0.48);
    color: #4a3326;
}

.footer {
    margin-top: 40px;
    background: var(--card);
    border-top: 4px solid var(--border);
    font-family: "Lilita One", sans-serif;
}

.footer-wrap {
    display: flex;
    gap: 20px;
    padding: 30px;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.footer-poster {
    max-width: 360px;
    background: rgba(216, 227, 233, 0.3);
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-bange {
    padding: 5px;
    background: #7c4322;
    border-radius: 12px;
    font-size: 30px;
}

.footer-list {
    list-style: none;
    padding-left: 0;
}

.partners-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.partners-list li {
    background: rgba(216, 227, 233, 0.3);
    padding: 5px;
    border-radius: 12px;
}

.footer-rights {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.age-bar {
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-size: 12px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    display: block;
}

.scroll-top {
    position: fixed;
    right: clamp(14px, 3vw, 26px);
    bottom: clamp(14px, 3vw, 26px);
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(42, 35, 54, 0.18);
    opacity: 0;
    transform: translateY(12px) scale(0.95);
    transition:
        opacity var(--fast),
        transform var(--fast);
    z-index: 40;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.scroll-top:active {
    transform: translateY(2px) scale(0.97);
    box-shadow: 0 10px 18px rgba(42, 35, 54, 0.18);
}

.no-scroll {
    overflow: hidden;
}

.age-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
        to right bottom,
        #0a3e41,
        #093c45,
        #083f49,
        #07474e,
        #064a52,
        #084d5c,
        #095165,
        #0b606f,
        #117281,
        #167893,
        #1c90a5,
        #21a1b8
    );
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 10000;
}

.age-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.age-modal-content {
    position: relative;
    background-color: rgb(255, 247, 239, 0.8);
    padding: 40px 30px 30px 30px;
    text-align: center;
    max-width: 600px;
    transform: translateY(-50px);
    animation: slideFadeIn 0.5s forwards;
    border: 1px solid rgb(255, 255, 255, 0.5);
    border-radius: 20px;
}

@media (max-width: 700px) {
    .age-modal-content {
        max-width: 90%;
    }
}

@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.age-modal-content h2 {
    color: #3f2103;
    font-size: 20px !important;
    margin-bottom: 15px;
    text-align: center;
}

.age-modal-content p {
    font-size: 15px;
    color: #211200;
    margin-bottom: 25px;
    line-height: 1.6;
}

.age-modal-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.age-btn {
    max-width: 220px;
    font-size: 1rem;
    padding: 10px;
    border: none;
    background-color: #3f2703;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    border-radius: 100px;
    transition:
        transform 0.3s,
        box-shadow 0.3s,
        background 0.3s;
    margin: 0;
}

.age-btn:hover {
    transform: scale(1.05);
}

.age-btn-no {
    background: transparent;
    border: 1px solid #3f2103;
    color: #3f2303;
}

.age-btn-no:hover {
    transform: scale(1.05);
}

.cookie-modal {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    background-color: rgb(255, 247, 239, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 3;
    border: 1px solid rgb(255, 255, 255, 0.5);
    border-radius: 8px;
}

.cookie-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal-content {
    position: relative;
    padding: 20px 25px 20px 25px;
    text-align: left;
    width: 100%;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}

.cookie-modal-content h2 {
    color: #263f03;
    font-size: 20px !important;
    margin-bottom: 5px;
}

.cookie-modal-content p {
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.5;
    color: #002114;
}

.cookie-modal-content a {
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.5;
    color: #002114 !important;
}

.cookie-modal-buttons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.cookie-btn {
    max-width: 160px;
    font-size: 0.9rem;
    padding: 8px;
    border: none;
    background-color: #263f03;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    border-radius: 100px;
    transition:
        transform 0.3s,
        box-shadow 0.3s,
        background 0.3s;
    margin: 0;
}

.cookie-btn:hover {
    transform: scale(1.05);
}

.cookie-btn-decline {
    background: transparent;
    border: 1px solid #263f03;
    color: #263f03 !important;
}

.game-page {
    background: var(--bg);
}

.game-viewport {
    min-height: 100vh;
    display: grid;
    align-items: stretch;
}

.game-iframe {
    width: 100%;
    height: calc(100vh - 38px);
    border: none;
    border-radius: 0;
    background: #ffffff;
}

.legal-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(32px, 6vw, 52px) clamp(18px, 5vw, 28px) 60px;
}

.legal-card {
    background: rgba(216, 227, 233, 0.3);
    border-radius: var(--radius);
    padding: clamp(22px, 4vw, 32px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: grid;
    gap: 14px;
    color: #4a3326;
}

.legal-card h1 {
    margin-bottom: 10px;
    font-size: 30px;
}

.legal-card h2 {
    font-size: 25px;
    margin-top: 15px;
}

.legal-card p,
.legal-card li {
    margin: 0;
}

.legal-card ul {
    padding-left: 20px;
    display: grid;
    gap: 6px;
}

.legal-eyebrow {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    font-size: 12px;
    color: var(--ink);
    margin: 0;
}

@media (max-width: 900px) {
    .header_nav {
        display: none;
        position: absolute;
        right: 0;
        top: 70px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 14px;
        flex-direction: column;
        width: 80%;
        padding: 14px;
        box-shadow: var(--shadow);
    }

    .header_nav.open {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 800px) {
    .section-left {
        grid-template-columns: 1fr;
        position: relative;
    }

    .hero-img {
        position: absolute;
        bottom: -93px;
        right: -38px;
        z-index: 1;
    }

    .hero-img img {
        width: 200px;
    }

    .section-right {
        grid-template-columns: 1fr;
        position: relative;
    }

    .about-img {
        position: absolute;
        bottom: -114px;
        right: 6px;
    }

    .about-img img {
        width: 200px;
    }

    .list-wrap {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .rules-img {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }

    .contact-img img {
        width: 150px;
    }

    .contact-img {
        position: absolute;
        bottom: -160px;
        right: 30px;
    }

    .footer-wrap {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-items: center;
    }

    .footer-partners {
        grid-column: 1/3;
    }
}

@media (max-width: 600px) {
    .header_logo img {
        width: 180px;
        height: auto;
    }

    .contact-img {
        bottom: -122px;
        right: -19px;
    }

    .rules-img img {
        width: 350px;
    }

    .btn {
        font-size: 22px;
    }
    .nav-cta {
        font-size: 16px;
    }
}

@media (max-width: 452px) {
    .hero-img img {
        width: 180px;
    }

    .hero-img {
        right: -62px;
    }

    .contact-meta {
        font-size: 14px;
    }

    .footer-wrap {
        grid-template-columns: 1fr;
    }

    .footer-partners {
        grid-column: 1/2;
    }
}
