/* Pixel Art Font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

body {
    font-family: 'Press Start 2P', cursive;
    background: #87CEEB;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Better touch targets */
    touch-action: manipulation;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    font-size: 24px;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
    letter-spacing: 2px;
}

.nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
    text-shadow: 1px 1px 0 #000;
}

.nav a:hover {
    color: #90EE90;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    text-shadow: 1px 1px 0 #000;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.play-button {
    background: #90EE90;
    color: #000;
    padding: 12px 24px;
    text-decoration: none;
    border: 3px solid #000;
    font-size: 12px;
    transition: all 0.3s;
    box-shadow: 4px 4px 0 #000;
    text-shadow: none;
}

.play-button:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s;
    box-shadow: 1px 1px 0 #000;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 100px;
    position: relative;
    background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 70%, #90EE90 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/swamp-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 0;
}

.clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50"><circle cx="20" cy="15" r="8" fill="white" opacity="0.8"/><circle cx="30" cy="15" r="10" fill="white" opacity="0.8"/><circle cx="40" cy="15" r="6" fill="white" opacity="0.8"/><circle cx="70" cy="20" r="7" fill="white" opacity="0.8"/><circle cx="80" cy="20" r="9" fill="white" opacity="0.8"/><circle cx="90" cy="20" r="5" fill="white" opacity="0.8"/></svg>');
    background-size: 200px 100px;
    background-repeat: repeat-x;
    animation: cloudMove 20s linear infinite;
    opacity: 0.6;
}

@keyframes cloudMove {
    0% { background-position: 0 0; }
    100% { background-position: 200px 0; }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 30px;
    text-shadow: 4px 4px 0 #000, 6px 6px 0 rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-description {
    font-size: 14px;
    margin-bottom: 40px;
    line-height: 1.8;
    text-shadow: 2px 2px 0 #000;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
    padding: 15px 30px;
    text-decoration: none;
    border: 3px solid #000;
    font-size: 12px;
    transition: all 0.3s;
    box-shadow: 4px 4px 0 #000;
    display: inline-block;
    text-shadow: none;
    /* Better touch targets */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-orange {
    background: #FF8C00;
    color: #000;
}

.btn-green {
    background: #90EE90;
    color: #000;
}

.btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
}

.btn-large {
    padding: 20px 40px;
    font-size: 14px;
}

/* Play Now Section with Video Showcases */
.play-now-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 60px auto;
    max-width: 1200px;
    flex-wrap: wrap;
}

.video-showcase {
    width: 300px;
    height: 200px;
    border: 3px solid #000;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.showcase-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .play-now-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .video-showcase {
        width: 100%;
        max-width: 300px;
    }
}

/* Characters Row */
.characters-row {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
    z-index: 2;
}

.character {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s;
    filter: drop-shadow(2px 2px 0 #000);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.character-sprite {
    width: 64px;
    height: 64px;
    object-fit: none;
    object-position: 0 0; /* Show first frame (idle down position) from spritesheet */
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    transform: scale(1.2); /* Slightly larger for visibility */
}

.character:hover {
    transform: scale(1.2) rotate(5deg);
}

.character:nth-child(1) { animation-delay: 0s; }
.character:nth-child(2) { animation-delay: 0.2s; }
.character:nth-child(3) { animation-delay: 0.4s; }
.character:nth-child(4) { animation-delay: 0.6s; }
.character:nth-child(5) { animation-delay: 0.8s; }
.character:nth-child(6) { animation-delay: 1s; }
.character:nth-child(7) { animation-delay: 1.2s; }
.character:nth-child(8) { animation-delay: 1.4s; }
.character:nth-child(9) { animation-delay: 1.6s; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Discover Section */
.discover-section {
    background: #F5DEB3;
    color: #000;
    padding: 100px 20px;
    text-align: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 50px;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

.activities-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: nowrap;
}

.activity-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px 12px;
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000;
    transition: all 0.3s;
    flex: 1;
    min-width: 0;
    max-width: 200px;
    position: relative;
    overflow: hidden;
}

.activity-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
}

.activity-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.activity-content {
    position: relative;
    z-index: 1;
    padding: 15px;
    margin-top: 10px;
}

.activity-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.activity-sprite {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.adventure-icon {
    width: 80px;
    height: 80px;
}

.adventure-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Remove background from arena icon - blend with card background */
.activity-card:nth-child(3) .activity-icon {
    background: rgba(255, 255, 255, 0.8) !important;
}

.activity-card:nth-child(3) .activity-sprite {
    /* Use multiply blend mode to make white/light backgrounds blend with card */
    mix-blend-mode: multiply;
    filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.3));
}

.explore-map {
    object-fit: cover;
    object-position: center;
}

.socialize-icon {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    width: 64px;
    height: 64px;
    overflow: visible;
    position: relative;
}

.socialize-sprite {
    width: 26px;
    height: 26px;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    flex-shrink: 0;
    display: block;
    position: relative;
}

/* Make first character slightly offset to the left and lower */
.socialize-sprite:first-child {
    transform: translateX(-2px) translateY(2px);
}

/* Make second character slightly offset to the right and lower */
.socialize-sprite:last-child {
    transform: translateX(2px) translateY(2px);
}

.activity-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #000;
}

.activity-card p {
    font-size: 10px;
    line-height: 1.6;
    color: #333;
}

.section-description {
    font-size: 12px;
    margin: 40px auto;
    max-width: 800px;
    line-height: 1.8;
}

/* Life Section */
.life-section {
    background: #87CEEB;
    padding: 100px 20px;
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.feature-block.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.feature-content p {
    font-size: 12px;
    line-height: 1.8;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}

.feature-image {
    flex: 0 0 200px;
    text-align: center;
    animation: float 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-sprite {
    width: 120px;
    height: 120px;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.feature-video {
    flex: 0 0 300px;
    height: 200px;
    border: 3px solid #000;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.feature-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Roadmap Section */
.roadmap-section {
    background: #F5DEB3;
    color: #000;
    padding: 100px 20px;
    text-align: center;
}

.roadmap-timeline {
    max-width: 1000px;
    margin: 60px auto 0;
    text-align: left;
}

.roadmap-item {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #000;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    position: relative;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.roadmap-item.completed {
    border-color: #4CAF50;
}

.roadmap-item.in-progress {
    border-color: #FF9800;
}

.roadmap-item.planned {
    border-color: #2196F3;
}

.roadmap-header {
    margin-bottom: 20px;
}

.roadmap-time {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.roadmap-icon {
    font-size: 40px;
    margin: 15px 0;
    line-height: 1;
}

.roadmap-title {
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.roadmap-status {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 5px 15px;
    display: inline-block;
    border: 2px solid #000;
    border-radius: 4px;
    margin-top: 10px;
    background: #000;
    color: #fff;
}

.roadmap-item.completed .roadmap-status {
    background: #4CAF50;
    border-color: #4CAF50;
}

.roadmap-item.in-progress .roadmap-status {
    background: #FF9800;
    border-color: #FF9800;
}

.roadmap-item.planned .roadmap-status {
    background: #2196F3;
    border-color: #2196F3;
}

.roadmap-content {
    margin-top: 20px;
}

.roadmap-content p {
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
}

.roadmap-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.roadmap-content li {
    font-size: 11px;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    color: #444;
}

.roadmap-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-size: 16px;
    line-height: 1.2;
    color: #000;
}

/* Community Section */
.community-section {
    background: #90EE90;
    color: #000;
    padding: 100px 20px;
    text-align: center;
}

.social-platforms {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.platform-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    color: #000;
    transition: all 0.3s;
    box-shadow: 4px 4px 0 #000;
    font-weight: bold;
}

.social-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    image-rendering: auto;
}

.platform-icon:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
    background: #fff;
}

.play-now-icon {
    background: #4CAF50;
    color: #fff;
    border-color: #000;
    font-weight: bold;
}

.play-now-icon:hover {
    background: #45a049;
    color: #fff;
}

/* Footer */
.footer {
    background: #000;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
}

.footer p {
    font-size: 10px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header Mobile */
    .header {
        padding: 15px 0;
    }
    
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .logo {
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        display: none;
        border-top: 2px solid #90EE90;
        backdrop-filter: blur(10px);
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav a {
        font-size: 12px;
        padding: 10px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav a:last-child {
        border-bottom: none;
    }
    
    .play-button {
        padding: 10px 16px;
        font-size: 10px;
        margin-left: auto;
        min-height: 40px;
    }
    
    /* Better spacing for mobile */
    .hero {
        padding-top: 80px;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    * {
        max-width: 100%;
    }
    
    /* Hero Mobile */
    .hero {
        padding: 100px 15px 80px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 24px;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .hero-description {
        font-size: 10px;
        margin-bottom: 30px;
        line-height: 1.6;
        padding: 0 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 10px;
        width: 100%;
        text-align: center;
    }
    
    /* Characters Row Mobile */
    .characters-row {
        position: relative;
        padding: 30px 10px 20px;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .character {
        width: 60px;
        height: 60px;
    }
    
    .character-sprite {
        width: 48px;
        height: 48px;
        transform: scale(1);
    }
    
    /* Discover Section Mobile */
    .discover-section {
        padding: 60px 15px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 30px;
        line-height: 1.4;
    }
    
    .activities-grid {
        flex-direction: column;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .activity-card {
        max-width: 100%;
        width: 100%;
        padding: 20px;
    }
    
    .activity-card h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .activity-card p {
        font-size: 9px;
        line-height: 1.5;
    }
    
    .section-description {
        font-size: 10px;
        margin: 30px auto;
        padding: 0 10px;
        line-height: 1.6;
    }
    
    /* Play Now Section Mobile */
    .play-now-section {
        flex-direction: column;
        gap: 20px;
        margin: 40px auto;
        padding: 0 15px;
    }
    
    .video-showcase {
        width: 100%;
        max-width: 100%;
        height: 180px;
    }
    
    .btn-large {
        padding: 15px 30px;
        font-size: 12px;
        width: 100%;
        max-width: 280px;
    }
    
    /* Life Section Mobile */
    .life-section {
        padding: 60px 15px;
    }
    
    .feature-block {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .feature-block.reverse {
        flex-direction: column;
    }
    
    .feature-content h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .feature-content p {
        font-size: 10px;
        line-height: 1.6;
        padding: 0 10px;
    }
    
    .feature-video {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        height: 200px;
    }
    
    /* Roadmap Mobile */
    .roadmap-section {
        padding: 60px 15px;
    }
    
    .roadmap-timeline {
        margin-top: 40px;
    }
    
    .roadmap-item {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .roadmap-time {
        font-size: 9px;
    }
    
    .roadmap-icon {
        font-size: 32px;
        margin: 10px 0;
    }
    
    .roadmap-title {
        font-size: 16px;
        margin: 8px 0;
    }
    
    .roadmap-status {
        font-size: 9px;
        padding: 4px 12px;
        margin-top: 8px;
    }
    
    .roadmap-content p {
        font-size: 10px;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    
    .roadmap-content li {
        font-size: 9px;
        line-height: 1.6;
        margin-bottom: 6px;
        padding-left: 18px;
    }
    
    /* Community Mobile */
    .community-section {
        padding: 60px 15px;
    }
    
    .section-description {
        font-size: 10px;
    }
    
    .social-platforms {
        gap: 15px;
        margin-top: 30px;
    }
    
    .platform-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .social-icon-img {
        width: 28px;
        height: 28px;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 20px 15px;
    }
    
    .footer p {
        font-size: 9px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 9px;
    }
    
    .logo {
        font-size: 14px;
    }
    
    .play-button {
        padding: 8px 12px;
        font-size: 9px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .characters-row {
        gap: 8px;
    }
    
    .character {
        width: 50px;
        height: 50px;
    }
    
    .character-sprite {
        width: 40px;
        height: 40px;
    }
}

