/* =========================================================
   PART OF THE PLOT
   Main Stylesheet
   Site-wide styles only
   ========================================================= */


/* =========================================================
   1. ROOT VARIABLES
   ========================================================= */

:root {

    /* -----------------------------------------------------
       Colors
       ----------------------------------------------------- */

    --dark: #0d1017;
    --dark-blue: #151a27;
    --darker: #080a0f;

    --purple: #51406f;
    --deep-purple: #292139;

    --gold: #c6a15b;
    --light-gold: #e2c989;

    --cream: #eee9df;
    --muted: #aaa59c;


    /* -----------------------------------------------------
       Borders
       ----------------------------------------------------- */

    --border: rgba(198, 161, 91, 0.20);
    --border-strong: rgba(198, 161, 91, 0.40);


    /* -----------------------------------------------------
       Shared Backgrounds
       ----------------------------------------------------- */

    --page-gradient:
        radial-gradient(
            circle at center,
            #293041 0%,
            #171c28 42%,
            #10131a 85%
        );

    --page-atmosphere:
        linear-gradient(
            135deg,
            transparent 0%,
            rgba(198, 161, 91, 0.05) 50%,
            transparent 100%
        );
}


/* =========================================================
   2. RESET & BASE
   ========================================================= */

* {
    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    background: var(--dark);
    color: var(--cream);

    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
}


img {
    display: block;

    max-width: 100%;
}


button,
input,
select,
textarea {
    font: inherit;
}


a {
    color: inherit;
}


/* =========================================================
   3. GLOBAL TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3 {
    font-family: 'Cinzel', serif;
}


h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}


/* ---------------------------------------------------------
   Eyebrow
   --------------------------------------------------------- */

.eyebrow {
    margin-bottom: 20px;

    color: var(--gold);

    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;

    letter-spacing: 4px;
    line-height: 1.4;

    text-transform: uppercase;
}


/* ---------------------------------------------------------
   Section Heading
   --------------------------------------------------------- */

.section-heading {
    width: 100%;
    max-width: 700px;

    margin: 0 auto 70px;

    text-align: center;
}


.section-heading h2 {
    margin-bottom: 25px;

    color: var(--cream);

    font-family: 'Cinzel', serif;
    font-size: clamp(35px, 5vw, 55px);
    font-weight: 500;

    line-height: 1.2;
}


.section-heading > p:last-child {
    color: var(--muted);

    line-height: 1.8;
}


/* =========================================================
   4. BUTTONS
   ========================================================= */

.button {
    display: inline-block;

    padding: 14px 30px;

    background: transparent;
    color: var(--cream);

    border: 1px solid var(--gold);

    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;

    letter-spacing: 2px;
    line-height: 1.4;

    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}


.button:hover {
    background: var(--gold);
    color: var(--dark);

    border-color: var(--gold);

    transform: translateY(-2px);
}


.button-light {
    background: var(--gold);
    color: var(--dark);

    border-color: var(--gold);
}


.button-light:hover {
    background: var(--light-gold);
    color: var(--dark);

    border-color: var(--light-gold);
}


.button-outline {
    background: transparent;
    color: var(--cream);

    border: 1px solid var(--gold);
}


/* ---------------------------------------------------------
   Disabled Buttons
   --------------------------------------------------------- */

.button:disabled,
.button.disabled-button {
    background: transparent;
    color: #777;

    border-color: rgba(198, 161, 91, 0.20);

    cursor: default;

    transform: none;
}


.button:disabled:hover,
.button.disabled-button:hover {
    background: transparent;
    color: #777;

    border-color: rgba(198, 161, 91, 0.20);

    transform: none;
}


/* =========================================================
   5. NAVIGATION
   ========================================================= */

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    z-index: 1000;

    width: 100%;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6%;

    background: rgba(16, 19, 26, 0.94);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(10px);
}


/* ---------------------------------------------------------
   Logo
   --------------------------------------------------------- */

.logo {
    display: flex;
    align-items: center;

    color: var(--gold);

    font-family: 'Cinzel', serif;

    line-height: 1;

    text-decoration: none;
}


.logo span {
    display: block;

    font-size: 10px;

    letter-spacing: 4px;
}


.logo strong {
    font-size: 22px;

    letter-spacing: 3px;
}


.logo img {
    display: block;

    width: auto;
    height: 55px;
}


/* ---------------------------------------------------------
   Navigation Links
   --------------------------------------------------------- */

.navbar nav {
    display: flex;
    align-items: center;

    gap: 30px;
}


.navbar nav a {
    color: var(--cream);

    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;

    letter-spacing: 1px;

    text-decoration: none;
    text-transform: uppercase;

    transition: color 0.3s ease;
}


.navbar nav a:hover {
    color: var(--gold);
}


/* ---------------------------------------------------------
   Mobile Menu Toggle
   --------------------------------------------------------- */

.menu-toggle {
    display: none;

    padding: 0;

    background: transparent;
    color: var(--cream);

    border: none;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}


.menu-toggle:hover {
    color: var(--gold);
}


/* =========================================================
   6. GAMES NAVIGATION DROPDOWN
   ========================================================= */

.nav-dropdown {
    position: relative;
}


.nav-dropdown-title {
    display: flex !important;
    align-items: center;

    gap: 6px;
}


.nav-dropdown-title span {
    color: var(--gold);

    font-size: 10px;

    transition: transform 0.3s ease;
}


.nav-dropdown-menu {
    position: absolute;

    top: 100%;
    left: 50%;

    min-width: 190px;

    padding: 10px 0;

    background: rgba(16, 19, 26, 0.98);

    border: 1px solid var(--border);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.35);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(-50%);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


.nav-dropdown-menu a {
    display: block !important;

    width: 100%;

    padding: 12px 20px;

    color: var(--cream);

    font-size: 11px !important;

    letter-spacing: 1px !important;

    text-decoration: none;
    text-transform: uppercase;

    white-space: nowrap;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}


.nav-dropdown-menu a:hover {
    background: rgba(198, 161, 91, 0.08);

    color: var(--gold);
}


/* ---------------------------------------------------------
   Desktop Dropdown
   --------------------------------------------------------- */

@media (min-width: 901px) {

    .nav-dropdown:hover .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }


    .nav-dropdown:hover .nav-dropdown-title span {
        transform: rotate(180deg);
    }

}


/* =========================================================
   7. GENERAL SECTIONS
   ========================================================= */

.section {
    padding: 120px 8%;
}


.section-content {
    width: 100%;
    max-width: 600px;
}


.section-content h2 {
    margin-bottom: 30px;

    color: var(--cream);

    font-family: 'Cinzel', serif;
    font-size: 50px;
    font-weight: 500;

    line-height: 1.2;
}


.section-content h2 span {
    color: var(--gold);
}


.section-content p {
    margin-bottom: 20px;

    color: var(--muted);
}


.text-link {
    display: inline-block;

    margin-top: 15px;
    padding-bottom: 4px;

    color: var(--gold);

    text-decoration: none;

    border-bottom: 1px solid var(--gold);

    transition:
        color 0.25s ease,
        border-color 0.25s ease;
}


.text-link:hover {
    color: var(--light-gold);

    border-color: var(--light-gold);
}


/* =========================================================
   8. HOW IT WORKS / STEPS
   ========================================================= */

.steps {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 30px;
}


/* =========================================================
   9. SHARED GAME INFORMATION
   ========================================================= */

/*
   Game-card layout and game-specific styling belong in
   games.css.

   These classes remain here only because they are shared
   across the site's game pages.
*/


.game-card-price {
    font-size: 1.1rem;
    font-weight: 600;
}


.game-card-price span {
    font-size: 0.7rem;
    font-weight: 400;
    font-style: italic;

    opacity: 0.75;
}


.game-credit {
    width: 100%;
    max-width: 800px;

    margin: 0 auto;
    padding: 80px 30px;

    text-align: center;
}


.game-credit h2 {
    margin-bottom: 20px;
}


.game-credit p {
    max-width: 650px;

    margin-left: auto;
    margin-right: auto;
}


.game-credit-note {
    margin-top: 15px;

    font-size: 0.85rem;

    opacity: 0.75;
}


.game-credit a {
    display: inline-block;

    margin-top: 20px;

    text-decoration: none;
}


.game-copyright {
    width: 100%;
    max-width: 850px;

    margin: 45px auto;
    padding: 0 25px;

    color: #666;

    font-size: 10px;

    letter-spacing: 0.5px;

    text-align: center;
}


.game-copyright a {
    color: #888;

    text-decoration: none;
}


.game-copyright a:hover {
    color: var(--gold);
}


/* =========================================================
   10. FOOTER
   ========================================================= */

footer {
    padding: 60px 30px;

    background: var(--darker);
    color: var(--muted);

    text-align: center;
}


.footer-logo {
    margin-bottom: 10px;

    color: var(--gold);

    font-family: 'Cinzel', serif;

    letter-spacing: 3px;
}


.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 25px;

    margin: 25px 0;
}


.footer-links a {
    color: var(--muted);

    font-size: 11px;

    letter-spacing: 1px;

    text-decoration: none;
    text-transform: uppercase;

    transition: color 0.3s ease;
}


.footer-links a:hover {
    color: var(--gold);
}


.copyright {
    color: #666;

    font-size: 10px;
}


/* =========================================================
   11. ANIMATIONS
   ========================================================= */

@keyframes fadeUp {

    from {
        opacity: 0;

        transform:
            translateY(30px);
    }


    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


@keyframes successFadeIn {

    from {
        opacity: 0;

        transform:
            translateY(-8px);
    }


    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


@keyframes heroArrowBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }


    40% {
        transform: translateY(6px);
    }


    60% {
        transform: translateY(3px);
    }

}


/* =========================================================
   12. TABLET — 900px AND BELOW
   ========================================================= */

@media (max-width: 900px) {

    /* -----------------------------------------------------
       Mobile Navigation
       ----------------------------------------------------- */

    .navbar nav {
        position: absolute;

        top: 80px;
        left: 0;

        width: 100%;

        display: none;
        flex-direction: column;

        gap: 0;

        background: var(--dark);

        border-bottom: 1px solid var(--border);
    }


    .navbar nav.active {
        display: flex;
    }


    .navbar nav > a {
        width: 100%;

        padding: 18px 30px;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.05);
    }


    .menu-toggle {
        display: block;
    }


    /* -----------------------------------------------------
       Mobile Dropdown
       ----------------------------------------------------- */

    .nav-dropdown {
        width: 100%;
    }


    .nav-dropdown-title {
        width: 100%;

        padding: 18px 30px;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.05);

        cursor: pointer;
    }


    .nav-dropdown-title span {
        margin-left: auto;
    }


    .nav-dropdown-menu {
        position: static;

        width: 100%;
        min-width: 0;

        display: none;

        padding: 0;

        background: #0d1016;

        border: none;

        box-shadow: none;

        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: none;
    }


    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }


    .nav-dropdown-menu a {
        width: 100%;

        padding: 15px 45px;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.04);

        font-size: 10px !important;
    }


    .nav-dropdown.active .nav-dropdown-title span {
        transform: rotate(180deg);
    }


    /* -----------------------------------------------------
       Shared Layouts
       ----------------------------------------------------- */

    .steps {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   13. MOBILE — 700px AND BELOW
   ========================================================= */

@media (max-width: 700px) {

    .section-content h2 {
        font-size: 42px;
    }

}


/* =========================================================
   14. MOBILE — 600px AND BELOW
   ========================================================= */

@media (max-width: 600px) {

    /* -----------------------------------------------------
       Navigation
       ----------------------------------------------------- */

    .navbar {
        padding: 0 20px;
    }


    .logo img {
        height: 50px;
    }


    /* -----------------------------------------------------
       General Sections
       ----------------------------------------------------- */

    .section,
    .how-it-works {
        padding: 80px 20px;
    }


    /* -----------------------------------------------------
       Section Heading
       ----------------------------------------------------- */

    .section-heading {
        margin-bottom: 50px;
    }


    .section-heading h2 {
        font-size: clamp(32px, 9vw, 45px);
    }


    /* -----------------------------------------------------
       Section Content
       ----------------------------------------------------- */

    .section-content h2 {
        font-size: 38px;
    }


    /* -----------------------------------------------------
       How It Works
       ----------------------------------------------------- */

    .steps {
        grid-template-columns: 1fr;
    }


    /* -----------------------------------------------------
       Game Credit
       ----------------------------------------------------- */

    .game-credit {
        padding: 60px 20px;
    }


    /* -----------------------------------------------------
       Footer
       ----------------------------------------------------- */

    footer {
        padding: 50px 20px;
    }


    .footer-links {
        gap: 18px;
    }

}


/* =========================================================
   15. VERY SMALL PHONES — 380px AND BELOW
   ========================================================= */

@media (max-width: 380px) {

    .navbar {
        padding: 0 15px;
    }


    .logo img {
        height: 46px;
    }


    .section,
    .how-it-works {
        padding-left: 15px;
        padding-right: 15px;
    }


    .section-content h2 {
        font-size: 34px;
    }


    .footer-links {
        flex-direction: column;

        gap: 12px;
    }

}


/* =========================================================
   END OF MAIN STYLESHEET
   ========================================================= */