@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;800&display=swap');

/* ==========================================================================
   CSS Variables & Typography (Playful / Game UI Theme)
   ========================================================================== */
:root {
    --bg-main: #f4fdf4;
    /* Very light green tinted white */
    --text-main: #2d3748;
    --text-muted: #4a5568;

    /* Vibrant Game Accents */
    --color-grass: #38A169;
    /* Rich Green */
    --color-sky: #63B3ED;
    /* Bright Blue */
    --color-warning: #F6AD55;
    /* Orange/Yellow */
    --color-danger: #F56565;
    /* Bomb Red */

    /* UI borders and shadows for Neo-brutalism/Cartoon look */
    --border-thick: 3px solid #1a202c;
    --shadow-solid: 6px 6px 0px #1a202c;
    --shadow-solid-hover: 2px 2px 0px #1a202c;
    --radius-lg: 16px;
    --radius-md: 12px;
}

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

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle grid background to look like a blueprint/golf course map */
    background-image:
        linear-gradient(rgba(56, 161, 105, 0.05) 2px, transparent 2px),
        linear-gradient(90deg, rgba(56, 161, 105, 0.05) 2px, transparent 2px);
    background-size: 40px 40px;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Fredoka One', cursive;
    /* Chunky, playful font */
    letter-spacing: 0.5px;
    color: #1a202c;
}

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

/* ==========================================================================
   Utility Classes (Cartoon UI blocks)
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.highlight-text {
    color: var(--color-grass);
    text-shadow: 2px 2px 0px #1a202c;
}

/* Replaced glass-card with a solid, cartoony card */
.glass-card {
    background: #ffffff;
    border: var(--border-thick);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-solid);
}

.glass-frame {
    background: #ffffff;
    border: var(--border-thick);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: var(--shadow-solid);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 1.1rem;
    font-family: 'Fredoka One', cursive;
    transition: all 0.15s ease;
    cursor: pointer;
    text-align: center;
    border: var(--border-thick);
    box-shadow: var(--shadow-solid);
    text-transform: uppercase;
}

.btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #1a202c;
}

.btn-primary {
    background: var(--color-warning);
    color: #1a202c;
}

.btn-primary:hover {
    background: #ED8936;
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px #1a202c;
}

.btn-secondary {
    background: #ffffff;
    color: #1a202c;
}

.btn-secondary:hover {
    background: #E2E8F0;
}

/* Steam Button specific */
.btn-steam {
    background: #171a21;
    color: #ffffff;
    font-size: 0.9rem;
    padding: 10px 20px;
}

.btn-steam:hover {
    background: #2a475e;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: var(--border-thick);
    padding: 16px 0;
    box-shadow: 0 4px 0px rgba(26, 32, 44, 1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    color: #1a202c;
    text-shadow: 2px 2px 0px #E2E8F0;
}

.logo .highlight {
    color: var(--color-grass);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 800;
    font-size: 1rem;
    transition: color 0.1s;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1a202c;
}

/* ==========================================================================
   Hero Section (Fullscreen Video Background)
   ========================================================================== */
.hero {
    position: relative;
    padding: 180px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Game video background */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    /* Fallback image while video loads */
    background-image: url('https://images.squarespace-cdn.com/content/v1/58906dc2f7e0ab3023e28e15/1770750616127-ECE1WCPWUNPUWLNRPQEA/20260210163012_2.jpg');
    background-size: cover;
    background-position: center;
}

.hero-video-bg iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: 0;
}

/* Dark overlay to make text readable */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    /* Light overlay for bright feel */
    z-index: 1;
}

.hero-container {
    display: block;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content {
    padding: 48px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--border-thick);
    border-radius: var(--radius-lg);
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.8);
    /* Adding a subtle rotation for a chaotic vibe */
    transform: rotate(-1deg);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-sky);
    border: 2px solid #1a202c;
    color: #1a202c;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: 'Fredoka One', cursive;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 2px 2px 0px #1a202c;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #1a202c;
}

.hero-content h1 .highlight-text {
    color: #fff;
    -webkit-text-stroke: 2px #1a202c;
    /* Outline effect for cartoony look */
    text-shadow: 4px 4px 0px var(--color-grass);
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
}

/* Hide the hero-visual image from before since we have a video background now */
.hero-visual {
    display: none;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */
.seo-content-section {
    padding: 80px 0;
}

.padding-lg {
    padding: 60px;
}

.text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.text-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--color-warning);
    border: 2px solid #1a202c;
    border-radius: 4px;
}

.text-content h3 {
    font-size: 1.8rem;
    margin: 40px 0 16px;
}

.text-content p {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Features Section (Cards)
   ========================================================================== */
.features-section {
    padding: 80px 0;
    background: var(--color-sky);
    border-top: var(--border-thick);
    border-bottom: var(--border-thick);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #fff;
    text-shadow: 3px 3px 0px #1a202c;
    -webkit-text-stroke: 1px #1a202c;
}

.section-header p {
    color: #1a202c;
    font-weight: 800;
    font-size: 1.2rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 40px 32px;
    background: #fff;
    border: var(--border-thick);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-solid);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hover-lift:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0px #1a202c;
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: #1a202c;
}

.feature-card p {
    color: var(--text-main);
    flex-grow: 1;
    font-weight: 600;
}

.card-image-mini {
    margin-top: 24px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #1a202c;
}

.card-image-mini img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Showcase Section
   ========================================================================== */
.showcase-section {
    padding: 100px 0;
    background: #ffffff;
}

.showcase-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.showcase-text h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 24px;
}

.showcase-text p {
    color: var(--text-main);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 32px;
}

.check-list {
    list-style: none;
}

.check-list li {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a202c;
}

.check-list span {
    color: #1a202c;
    background: var(--color-grass);
    border: 2px solid #1a202c;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 900;
}

.showcase-gallery {
    position: relative;
    height: 500px;
}

.showcase-gallery img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.rotate-left {
    position: absolute;
    top: 20px;
    left: 0;
    width: 70%;
    transform: rotate(-4deg);
    z-index: 1;
}

.rotate-right {
    position: absolute;
    bottom: 20px;
    right: 0;
    width: 75%;
    transform: rotate(6deg);
    z-index: 2;
}

/* Float animation */
@keyframes hover-bob {
    0% {
        transform: translateY(0px) rotate(6deg);
    }

    50% {
        transform: translateY(-10px) rotate(6deg);
    }

    100% {
        transform: translateY(0px) rotate(6deg);
    }
}

.float-effect {
    animation: hover-bob 4s ease-in-out infinite;
}

/* ==========================================================================
   Footer & Disclaimer
   ========================================================================== */
footer {
    border-top: var(--border-thick);
    margin-top: 60px;
    background: #ffffff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding: 64px 24px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .tagline {
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 16px;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.link-column h4 {
    color: #1a202c;
    margin-bottom: 24px;
    font-size: 1.2rem;
    font-family: 'Fredoka One', cursive;
}

.link-column a {
    display: block;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 12px;
    transition: color 0.1s;
}

.link-column a:hover {
    color: var(--color-grass);
    text-decoration: underline;
}

.disclaimer-bar {
    background: #1a202c;
    padding: 24px 0;
    text-align: center;
    border-top: var(--border-thick);
}

.disclaimer-bar p {
    color: #cbd5e0;
    font-size: 0.9rem;
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-bar strong {
    color: #fff;
}

.copyright {
    margin-top: 8px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 992px) {

    .hero-container,
    .showcase-layout {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* ===== HAMBURGER MENU ===== */
    .nav-content {
        flex-wrap: wrap;
    }

    .hamburger {
        display: flex !important;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        order: 3;
        padding: 12px 0 0;
        border-top: 2px solid rgba(0, 0, 0, 0.1);
        margin-top: 12px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: 1rem;
    }

    /* ===== LOGO ===== */
    .logo {
        font-size: 1.1rem !important;
        white-space: nowrap;
    }

    .logo img {
        height: 32px !important;
        margin-right: 6px !important;
    }

    /* ===== TYPOGRAPHY ===== */
    h1 {
        font-size: 2.2rem !important;
    }

    h2 {
        font-size: 1.6rem !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    /* ===== HERO ===== */
    .hero {
        min-height: 60vh;
        padding: 100px 0 40px;
    }

    .hero-content {
        padding: 24px !important;
        max-width: 100% !important;
    }

    /* ===== CARDS ===== */
    .cards-grid {
        grid-template-columns: 1fr;
    }

    /* ===== CONTENT SECTIONS ===== */
    .seo-content-section {
        padding: 30px 0;
    }

    .padding-lg {
        padding: 24px !important;
    }

    .text-content {
        padding: 20px;
    }

    .glass-card {
        padding: 20px;
    }

    /* ===== BUTTONS ===== */
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .btn-steam {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    /* ===== FOOTER ===== */
    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }

    /* ===== TIER ITEMS (items.html) ===== */
    .tier-section,
    .item-card {
        padding: 16px;
    }

    /* ===== AD PLACEHOLDERS (play.html) ===== */
    .ad-placeholder {
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .ad-leaderboard {
        height: auto;
        min-height: 60px;
    }

    .ad-skyscraper {
        width: 100% !important;
        height: 250px !important;
        position: relative !important;
        top: 0 !important;
    }
}

/* ===== HAMBURGER BUTTON STYLES ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 100;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #1a202c;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}