* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #e6d2b5 0%, #d4c4a8 50%, #c2b49b 100%);
    min-height: 100vh;
    font-family: 'Cabin', sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Background decorative elements */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(218, 165, 32, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(115, 79, 48, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(58, 77, 57, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Floating puzzle animation */
.floating-puzzle {
    position: absolute;
    font-size: 80px;
    animation: float 4s ease-in-out infinite;
}

.floating-puzzle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-puzzle:nth-child(2) { top: 23%; right: 15%; animation-delay: 1s; }
.floating-puzzle:nth-child(3) { top: 45%; left: 20%; animation-delay: 2s; }
.floating-puzzle:nth-child(4) { top: 52%; right: 20%; animation-delay: 0.5s; }
.floating-puzzle:nth-child(5) { top: 70%; left: 10%; animation-delay: 1.5s; }
.floating-puzzle:nth-child(6) { top: 75%; right: 8%; animation-delay: 2.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

/* Top navigation bar */
.top-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    margin-bottom: 20px;
}

.nav-btn {
    padding: 12px 24px;
    margin: 5px 20px;
    width: 210px;
    height: 50px;
    display: flex;
    justify-content: center;
    background: linear-gradient(45deg, #3a4d39, #4a6349);
    color: #f5f5dc;
    border: none;
    border-radius: 25px;
    font-family: 'Bubblegum Sans', cursive;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 3px solid #daa520;
    min-width: 140px;
    text-align: center;
    text-decoration: none;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    background: linear-gradient(45deg, #4a6349, #5a7359);
}

/* Main content area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Logo section */
.logo-section {
    margin-bottom: 40px;
    position: relative;
    z-index: 15;
}

.main-logo {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 90px;
    font-weight: 700;
    color: #daa520;
    text-shadow: 
        4px 4px 0 #3a4d39,
        8px 8px 0 #2c3c2c,
        -2px -2px 0 #3a4d39,
        2px -2px 0 #3a4d39,
        -2px 2px 0 #3a4d39,
        2px 2px 0 #3a4d39;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    transform: rotate(-2deg);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
0%, 100% {
transform: rotate(-2deg) translateY(0);
}
50% {
transform: rotate(-2deg) translateY(-3px);
}
}


.main-logo::before {
    content: '🦕';
    position: absolute;
    left: -80px;
    top: 50%;
    transform: translateY(-50%) rotate(15deg);
    font-size: 50px;
    filter: none;
}

.main-logo::after {
    content: '🦖';
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    font-size: 50px;
    filter: none;
}

/* Play button */
.play-section {
    margin-bottom: 40px;
    position: relative;
    z-index: 15;
}

.play-btn {
    padding: 25px 100px;
    background: linear-gradient(45deg, #3a4d39, #4a6349);
    color: #f5f5dc;
    border-radius: 30px;
    font-family: 'Bubblegum Sans', cursive;
    font-size: 36px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 0 #2c3c2c, 0 12px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 4px solid #daa520;
    position: relative;
    overflow: hidden;
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(218, 165, 32, 0.3), transparent);
    transition: left 0.5s;
}

.play-btn:hover::before {
    left: 100%;
}

.play-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 13px 0 #2c3c2c, 0 18px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(45deg, #4a6349, #5a7359);
}

.play-btn:active {
    transform: translateY(3px);
    box-shadow: 0 5px 0 #2c3c2c, 0 8px 15px rgba(0, 0, 0, 0.4);
}

/* Join section */
.join-section {
    background: linear-gradient(45deg, #734f30, #8B4513);
    padding: 30px 50px;
    border-radius: 25px;
    border: 4px solid #daa520;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: rotate(-1deg);
    position: relative;
    z-index: 15;
}

.join-section p {
    margin-bottom: 20px;
    color: #f5f5dc;
    font-size: 22px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Bubblegum Sans', cursive;
}

.join-form {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.passcode-input {
    padding: 16px 25px;
    width: 280px;
    background-color: #e6d2b5;
    border: 3px solid #3a4d39;
    border-radius: 15px;
    color: #3a4d39;
    font-size: 18px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    font-family: 'Cabin', sans-serif;
    font-weight: 600;
}

.passcode-input::placeholder {
    color: rgba(58, 77, 57, 0.6);
}

.passcode-input:focus {
    border-color: #daa520;
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.join-btn {
    padding: 16px 35px;
    background: linear-gradient(45deg, #3a4d39, #4a6349);
    color: #f5f5dc;
    border: 3px solid #daa520;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 #2c3c2c, 0 6px 10px rgba(0, 0, 0, 0.3);
    font-family: 'Bubblegum Sans', cursive;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.join-btn:hover {
    background: linear-gradient(45deg, #4a6349, #5a7359);
    transform: translateY(-3px);
    box-shadow: 0 7px 0 #2c3c2c, 0 9px 15px rgba(0, 0, 0, 0.3);
}

.join-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #2c3c2c, 0 4px 5px rgba(0, 0, 0, 0.3);
}

/* Secondary navigation */
.secondary-nav {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 15;
}

.secondary-nav-btn {
    padding: 12px 20px;
    background: linear-gradient(45deg, #734f30, #8B4513);
    color: #f5f5dc;
    border: 3px solid #daa520;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-family: 'Bubblegum Sans', cursive;
    text-transform: capitalize;
    min-width: 120px;
}

.secondary-nav-btn:hover {
    background: linear-gradient(45deg, #8B4513, #A0522D);
    transform: translateX(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Footer styles */

footer {
padding: 15px 0;
text-align: center;
font-size: 14px;
color: #3a4d39;
/* background-color: rgba(245, 245, 220, 0.6); */
border-top: 3px solid #734f30;
margin-top: auto;
}

footer p {
margin: 0;
font-weight: 500;
}

/* Hamburger button - hidden on desktop */
.hamburger-btn {
    display: none;
    position: fixed;
    top: 16px;
    right: 20px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 8px;
    background: linear-gradient(45deg, #3a4d39, #4a6349);
    border: 3px solid #daa520;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #f5f5dc;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 500;
    opacity: 0;
    pointer-events: none; 
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Sidebar nav */
.sidebar-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    max-width: 80vw;
    height: 100%;
    background: linear-gradient(160deg, #3a4d39 0%, #2c3c2c 60%, #1e2b1e 100%);
    border-left: 4px solid #daa520;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 600;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-direction: column;
    padding: 90px 20px 30px;
    gap: 12px;
}

.sidebar-nav.open {
    right: 0;
}

.sidebar-nav .nav-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 20px;
    font-size: 15px;
    margin: 0;
    border-radius: 14px;
    background: linear-gradient(45deg, rgba(74, 99, 73, 0.6), rgba(58, 77, 57, 0.4));
    transition: all 0.25s ease;
}

.sidebar-nav .nav-btn:hover {
    background: linear-gradient(45deg, #4a6349, #5a7359);
    transform: translateX(-4px);
}

.sidebar-brand {
    position: absolute;
    top: 22px;
    left: 20px;
    font-family: 'Bubblegum Sans', cursive;
    font-size: 22px;
    color: #daa520;
    text-shadow: 2px 2px 0 #2c3c2c;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #daa520, transparent);
    margin: 8px 0;
    border-radius: 2px;
}

@media (max-width: 768px) {
    /* Hide desktop nav, show hamburger + sidebar */
    .top-nav {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .sidebar-overlay {
        display: block;
    }

    .sidebar-nav {
        display: flex;
    }

    .main-logo {
        font-size: 52px;
    }

    .main-logo::before,
    .main-logo::after {
        display: none;
    }

    .tagline {
        font-size: 18px;
        padding: 12px 20px;
    }

    .play-btn {
        padding: 20px 60px;
        font-size: 28px;
    }

    .character-section {
        display: none;
    }

    .secondary-nav {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 30px;
        flex-wrap: wrap;
    }

    .floating-puzzle {
        display: none;
    }

    .main-content {
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .main-logo {
        font-size: 36px;
    }

    .play-btn {
        padding: 15px 40px;
        font-size: 24px;
    }

    .join-form {
        flex-direction: column;
        gap: 15px;
    }

    .passcode-input {
        width: 100%;
    }

    .join-section {
        padding: 20px 24px;
    }
}