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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #18392b 0%, #050b08 55%, #020403 100%);
    color: #f5f3e8;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(to bottom, rgba(5, 15, 10, 0.95), rgba(5, 15, 10, 0.9));
    border-bottom: 1px solid rgba(226, 177, 60, 0.3);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 5px;
}

.logo {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo-main {
    color: #f6e6bf;
}

.logo-accent {
    color: #e2b13c;
}

.main-nav {
    display: flex;
    gap: 1.75rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nav-link {
    position: relative;
    padding-bottom: 0.1rem;
    opacity: 0.8;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e2b13c, #5fc5a5);
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: #f6e6bf;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fdf7e3;
    background-image: url("images/hero-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(21, 80, 54, 0.7), rgba(3, 6, 5, 0.96));
}

.hero-content {
    position: relative;
    padding: 6rem 0 4rem;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.hero-kicker {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: #f5e1a4;
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1rem;
    max-width: 32rem;
    color: #f9f2dd;
    margin-bottom: 1.75rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.7rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    white-space: nowrap;
}

.primary-btn {
    background: linear-gradient(135deg, #e2b13c, #f5cf6a);
    color: #261a06;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
}

.secondary-btn {
    background: transparent;
    border: 1px solid rgba(226, 177, 60, 0.7);
    color: #f2e0b0;
}

.secondary-btn:hover {
    background: rgba(226, 177, 60, 0.1);
    transform: translateY(-1px);
}

.full-width {
    width: 100%;
}

.scroll-down {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: #f5e1a4;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0.85;
}

.scroll-down .scroll-icon {
    font-size: 1.2rem;
    animation: floatDown 1.4s infinite;
}

.scroll-down:hover {
    opacity: 1;
}

@keyframes floatDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Sections */

.section {
    padding: 4.5rem 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.section-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: #f6e6bf;
}

.section-header p {
    color: #d4ceba;
    font-size: 0.98rem;
}

/* About cards */

.about {
    background: radial-gradient(circle at top, #1c3a2a 0%, #050806 70%);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.info-card {
    background: radial-gradient(circle at top left, rgba(41, 97, 70, 0.35), rgba(8, 16, 11, 0.95));
    border-radius: 1.4rem;
    padding: 1.5rem 1.6rem 1.6rem;
    border: 1px solid rgba(161, 206, 157, 0.15);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.icon-image {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    background: radial-gradient(circle at top, #f5cf6a, #945f1f);
    padding: 0.25rem;
}

.card-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 999px;
}

.info-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
    color: #f6e6bf;
}

.info-card p {
    font-size: 0.95rem;
    color: #ddd4c0;
}

.checklist {
    margin-top: 0.4rem;
    padding-left: 0;
}

.checklist li {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    color: #ddd4c0;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.9rem;
    color: #f5cf6a;
}

/* Feature section */

.feature {
    background: radial-gradient(circle at top, #21392d 0%, #050806 70%);
}

.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
    gap: 2.5rem;
    align-items: center;
}

.feature-text h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: #f6e6bf;
}

.feature-text p {
    font-size: 0.97rem;
    color: #e0d7c3;
    margin-bottom: 0.75rem;
}

.feature-list {
    margin: 0.6rem 0 1.5rem;
    padding-left: 1.1rem;
}

.feature-list li {
    list-style: disc;
    font-size: 0.95rem;
    color: #ddd4c0;
    margin-bottom: 0.35rem;
}

.feature-text .btn.secondary-btn {
    display: block;
    margin: 0 auto;
    text-align: center;
}

.feature-media {
    display: flex;
    justify-content: center;
}

.feature-card {
    background: radial-gradient(circle at top, rgba(52, 110, 82, 0.55), rgba(9, 18, 13, 0.98));
    border-radius: 1.6rem;
    padding: 1.2rem 1.3rem 1.5rem;
    border: 1px solid rgba(120, 192, 154, 0.25);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 360px;
}

.feature-inventory {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
}

.inventory-item {
    flex: 1;
    background: rgba(6, 16, 11, 0.85);
    border-radius: 0.9rem;
    padding: 0.55rem 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.inventory-icon {
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
}

.inventory-label {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #cfd6c3;
}

.gem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.gem {
    width: 100%;
    padding-top: 100%;
    border-radius: 0.8rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.gem::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 55%);
    mix-blend-mode: screen;
}

.gem.ruby {
    background: linear-gradient(135deg, #a3123a, #f34b6b);
}

.gem.emerald {
    background: linear-gradient(135deg, #0b7b47, #23d68a);
}

.gem.sapphire {
    background: linear-gradient(135deg, #1358b5, #39a3ff);
}

.gem.topaz {
    background: linear-gradient(135deg, #b96b11, #ffd672);
}

.feature-caption {
    font-size: 0.9rem;
    color: #e4dcc8;
}

.feature-image {
    border-radius: 1.6rem;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(120, 192, 154, 0.25);
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* FAQ */

.faq {
    background: radial-gradient(circle at top, #23352b 0%, #050806 70%);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.faq-item {
    background: rgba(8, 17, 12, 0.95);
    border-radius: 1rem;
    border: 1px solid rgba(143, 193, 155, 0.25);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: #f5f0e4;
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.98rem;
    cursor: pointer;
}

.faq-toggle {
    margin-left: 0.75rem;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease;
    padding: 0 1.1rem;
}

.faq-answer p {
    padding-bottom: 0.9rem;
    font-size: 0.92rem;
    color: #dcd3bf;
}

.faq-item.active .faq-answer {
    max-height: 260px;
}

/* Game page */

.game-page h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: #f6e6bf;
    text-align: center;
}

.game-intro,
.game-note {
    font-size: 0.96rem;
    color: #ded5c1;
    max-width: 640px;
    margin-bottom: 1rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.game-frame-wrapper {
    position: relative;
    border-radius: 1.4rem;
    overflow: hidden;
    border: 1px solid rgba(120, 192, 154, 0.3);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.75);
    margin-bottom: 1.4rem;
    background: #000;
}

.game-iframe {
    width: 100%;
    height: 640px;
    border: none;
}

/* Contact page */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.contact-text h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.9rem;
    margin-bottom: 0.9rem;
    color: #f6e6bf;
}

.contact-text p {
    font-size: 0.97rem;
    color: #ded5c1;
    margin-bottom: 0.7rem;
}

.contact-details {
    margin-top: 0.5rem;
}

.contact-details li {
    font-size: 0.95rem;
    color: #e0d7c3;
    margin-bottom: 0.35rem;
}

.contact-form-wrapper {
    background: radial-gradient(circle at top left, rgba(52, 110, 82, 0.5), rgba(6, 12, 8, 0.98));
    border-radius: 1.5rem;
    padding: 1.5rem 1.6rem;
    border: 1px solid rgba(132, 195, 153, 0.25);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.7);
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f5e0b1;
    margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid rgba(222, 207, 168, 0.6);
    background: rgba(6, 12, 8, 0.9);
    color: #f5f0e4;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(223, 212, 184, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #f5cf6a;
    box-shadow: 0 0 0 1px rgba(245, 207, 106, 0.6);
    background: rgba(7, 16, 11, 0.95);
}

/* Legal pages */

.legal-page h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.9rem;
    margin-bottom: 0.9rem;
    color: #f6e6bf;
}

.legal-page h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    margin: 1.4rem 0 0.6rem;
    color: #f6e0b0;
}

.legal-page p,
.legal-page li {
    font-size: 0.95rem;
    color: #e0d7c3;
}

.legal-page ul {
    margin-left: 1.2rem;
    margin-bottom: 0.75rem;
}

.legal-page ul li {
    list-style: disc;
    margin-bottom: 0.3rem;
}

.legal-updated {
    font-size: 0.9rem;
    color: #d0c7b4;
    margin-bottom: 1.1rem;
}

/* Cookie Consent Popup */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: radial-gradient(circle at top, rgba(54, 112, 84, 0.95), rgba(6, 12, 8, 0.98));
    border: 1px solid rgba(132, 195, 153, 0.4);
    border-radius: 1.4rem;
    padding: 1.5rem;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    max-width: 420px;
}

.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-content p {
    font-size: 0.95rem;
    color: #e0d7c3;
    margin: 0;
}

.cookie-content a {
    color: #f5cf6a;
    text-decoration: underline;
}

.cookie-content a:hover {
    color: #f6e6bf;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.cookie-buttons .btn {
    padding: 0.65rem 1.2rem;
    font-size: 0.9rem;
}

/* Modal */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 30;
}

.modal-backdrop.visible {
    display: flex;
}

.modal {
    background: radial-gradient(circle at top, rgba(54, 112, 84, 0.9), rgba(6, 12, 8, 0.98));
    padding: 1.8rem 2rem;
    border-radius: 1.4rem;
    max-width: 420px;
    width: 100%;
    border: 1px solid rgba(132, 195, 153, 0.4);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.modal h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    color: #f6e6bf;
}

.modal p {
    font-size: 0.95rem;
    color: #e0d7c3;
    margin-bottom: 1.2rem;
}

/* Footer */

.site-footer {
    background: #040806;
    border-top: 1px solid rgba(226, 177, 60, 0.3);
    margin-top: 2rem;
}

.footer-inner {
    padding: 2.5rem 0 1.5rem;
}

.footer-disclaimer {
    margin-bottom: 2.2rem;
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 2px solid #f5cf6a;
    color: #f5cf6a;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.footer-disclaimer p {
    font-size: 0.9rem;
    color: #d8cfbd;
    max-width: 760px;
}

.footer-disclaimer p + p {
    margin-top: 0.6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.footer-column h4 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #f6e6bf;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.partner-logos img {
    width: 77px;
    height: 32px;
    object-fit: contain;
    filter: grayscale(0.1);
    opacity: 0.85;
}

.footer-links li {
    margin-bottom: 0.25rem;
}

.footer-links a {
    font-size: 0.92rem;
    color: #d9cfbb;
}

.footer-links a:hover {
    color: #f5cf6a;
}

.footer-column p {
    font-size: 0.92rem;
    color: #d9cfbb;
}

.footer-bottom {
    margin-top: 2rem;
    border-top: 1px solid rgba(120, 192, 154, 0.25);
    padding-top: 0.9rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.86rem;
    color: #bfb4a2;
}

/* Responsive */

@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: space-evenly;
    }

    .main-nav {
        gap: 1.1rem;
        font-size: 0.86rem;
    }

    .cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature-layout {
        grid-template-columns: 1fr;
    }

    .game-iframe {
        height: 520px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero {
        text-align: left;
    }

    .hero-content {
        padding-top: 5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        max-width: 100%;
    }

    .game-iframe {
        height: 460px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-column h4 {
        text-align: center;
    }

    .partner-logos {
        justify-content: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .footer-inner {
        padding: 2.5rem 1.5rem 1.2rem;
    }

    .section {
        padding: 3.5rem 0;
    }
}
