* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', monospace;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0f4c3a 0%, #1a5c47 25%, #2d8f47 50%, #50c878 75%, #6be585 100%);
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.6;
    position: relative;
}

/* Emerald-themed CSS pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(80, 200, 120, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(107, 229, 133, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(45, 143, 71, 0.1) 0%, transparent 50%);
    z-index: -2;
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

/* Pixelated border pattern */
.pixel-border {
    border-image: url("data:image/svg+xml,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h3v3H0zM3 3h3v3H3zM6 0h3v3H6zM9 3h3v3H9z' fill='%2350c878'/%3E%3C/svg%3E") 3 repeat;
    border-width: 3px;
    border-style: solid;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    padding: 80px 0;
    position: relative;
}

/* Emerald gem decoration */
header::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    color: #50c878;
    animation: rotate 6s linear infinite;
    filter: drop-shadow(0 0 10px rgba(80, 200, 120, 0.8));
}

@keyframes rotate {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

.logo {
    font-size: 3.5rem;
    font-weight: normal;
    margin-bottom: 30px;
    text-shadow:
        2px 2px 0px #2d8f47,
        4px 4px 0px #1a5c47,
        0 0 20px rgba(80, 200, 120, 0.8);
    color: #50c878;
    animation: glow 3s ease-in-out infinite alternate;
    letter-spacing: 2px;
    position: relative;
}

/* Emerald text outline */
.logo::before {
    content: 'POKÉ NUZLOCKE';
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    color: #0f4c3a;
    text-shadow:
        -1px -1px 0 #0f4c3a,
        1px -1px 0 #0f4c3a,
        -1px 1px 0 #0f4c3a,
        1px 1px 0 #0f4c3a;
}

@keyframes glow {
    from {
        text-shadow:
            2px 2px 0px #2d8f47,
            4px 4px 0px #1a5c47,
            0 0 20px rgba(80, 200, 120, 0.8),
            0 0 30px rgba(80, 200, 120, 0.6);
    }

    to {
        text-shadow:
            2px 2px 0px #2d8f47,
            4px 4px 0px #1a5c47,
            0 0 30px rgba(80, 200, 120, 1),
            0 0 40px rgba(80, 200, 120, 0.8),
            0 0 50px rgba(80, 200, 120, 0.6);
    }
}

.subtitle {
    font-size: 0.9rem;
    margin-bottom: 40px;
    color: #a8e6cf;
    letter-spacing: 1px;
    background: linear-gradient(90deg, transparent, rgba(80, 200, 120, 0.2), transparent);
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
}

.hero-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

.btn {
    padding: 18px 35px;
    border: 2px solid #50c878;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Press Start 2P', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 2px 2px 0px rgba(255, 255, 255, 0.3),
        inset -2px -2px 0px rgba(0, 0, 0, 0.3),
        0 4px 15px rgba(80, 200, 120, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(80, 200, 120, 0.3), rgba(80, 200, 120, 0.1));
    color: #50c878;
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(26, 92, 71, 0.8), rgba(15, 76, 58, 0.6));
    color: #a8e6cf;
    border-color: #a8e6cf;
}

.btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #50c878, #6be585);
    color: #0f4c3a;
    box-shadow:
        inset 2px 2px 0px rgba(255, 255, 255, 0.5),
        inset -2px -2px 0px rgba(0, 0, 0, 0.3),
        0 8px 25px rgba(80, 200, 120, 0.4);
}

.btn::after {
    content: '▶';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.btn:hover::after {
    transform: translateY(-50%) translateX(3px);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    padding: 100px 0;
}

.feature-card {
    background:
        linear-gradient(135deg, rgba(15, 76, 58, 0.8), rgba(26, 92, 71, 0.6)),
        repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(80, 200, 120, 0.05) 10px,
            rgba(80, 200, 120, 0.05) 20px);
    border: 2px solid rgba(80, 200, 120, 0.4);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow:
        inset 2px 2px 0px rgba(255, 255, 255, 0.1),
        inset -2px -2px 0px rgba(0, 0, 0, 0.2),
        0 8px 20px rgba(15, 76, 58, 0.3);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #50c878, #6be585, #50c878);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        inset 2px 2px 0px rgba(255, 255, 255, 0.2),
        inset -2px -2px 0px rgba(0, 0, 0, 0.2),
        0 15px 35px rgba(80, 200, 120, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 25px;
    display: block;
    color: #50c878;
    filter: drop-shadow(2px 2px 0px #1a5c47);
}

.feature-title {
    font-size: 0.9rem;
    color: #50c878;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0px #1a5c47;
}

.feature-description {
    color: #a8e6cf;
    line-height: 1.8;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.stats-section {
    position: relative;
    background: linear-gradient(135deg, #0f4c3a 0%, #2d8f47 100%);
    border: 2px solid rgba(80, 200, 120, 0.3);
    border-radius: 12px;
    padding: 60px 40px;
    margin: 80px 0;
    backdrop-filter: blur(15px);
    box-shadow:
        inset 3px 3px 0px rgba(255, 255, 255, 0.1),
        inset -3px -3px 0px rgba(0, 0, 0, 0.2),
        0 10px 30px rgba(15, 76, 58, 0.4);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 100px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-item::before {
    content: '◆';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: #50c878;
    font-size: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    color: #50c878;
    margin-bottom: 15px;
    margin-top: 15px;
    display: block;
    text-shadow:
        2px 2px 0px #1a5c47,
        0 0 10px rgba(80, 200, 120, 0.5);
}

.stat-label {
    font-size: 0.8rem;
    color: #a8e6cf;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.rules-preview {
    background:
        linear-gradient(135deg, rgba(15, 76, 58, 0.8), rgba(26, 92, 71, 0.6)),
        radial-gradient(circle at center, rgba(80, 200, 120, 0.1) 0%, transparent 70%);
    border: 2px solid rgba(80, 200, 120, 0.4);
    border-radius: 12px;
    padding: 60px 40px;
    margin: 80px 0;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.rules-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(90deg,
            #50c878 0px,
            #50c878 20px,
            #6be585 20px,
            #6be585 40px);
}

.rules-title {
    font-size: 1.5rem;
    color: #50c878;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #1a5c47;
    position: relative;
}

.rules-title::after {
    content: '';
    display: block;
    font-size: 1rem;
    margin-top: 15px;
    color: #6be585;
}

.rules-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.rule-item {
    background:
        linear-gradient(135deg, rgba(80, 200, 120, 0.2), rgba(80, 200, 120, 0.1)),
        repeating-linear-gradient(-45deg,
            transparent,
            transparent 5px,
            rgba(80, 200, 120, 0.05) 5px,
            rgba(80, 200, 120, 0.05) 10px);
    padding: 25px 20px;
    border-radius: 8px;
    border-left: 6px solid #50c878;
    border-top: 2px solid rgba(80, 200, 120, 0.3);
    transition: all 0.3s ease;
    position: relative;
    box-shadow:
        inset 1px 1px 0px rgba(255, 255, 255, 0.1),
        0 4px 10px rgba(15, 76, 58, 0.2);
}

.rule-item::before {
    content: '●';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: #50c878;
    font-size: 1.5rem;
    text-shadow: 0 0 5px rgba(80, 200, 120, 0.8);
}

.rule-item:hover {
    transform: translateX(10px);
    background:
        linear-gradient(135deg, rgba(80, 200, 120, 0.3), rgba(80, 200, 120, 0.15)),
        repeating-linear-gradient(-45deg,
            transparent,
            transparent 5px,
            rgba(80, 200, 120, 0.08) 5px,
            rgba(80, 200, 120, 0.08) 10px);
    box-shadow:
        inset 1px 1px 0px rgba(255, 255, 255, 0.2),
        0 6px 15px rgba(80, 200, 120, 0.2);
}

.rule-number {
    color: #50c878;
    margin-bottom: 15px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0px #1a5c47;
}

.rule-text {
    color: #a8e6cf;
    font-size: 0.7rem;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

footer {
    text-align: center;
    padding: 60px 0;
    color: #a8e6cf;
    border-top: 2px solid rgba(80, 200, 120, 0.3);
    margin-top: 100px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    background:
        linear-gradient(135deg, rgba(15, 76, 58, 0.6), rgba(26, 92, 71, 0.4)),
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(80, 200, 120, 0.1) 2px,
            rgba(80, 200, 120, 0.1) 4px);
}

@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 280px;
        font-size: 0.7rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .feature-description {
        font-size: 0.65rem;
    }

    .rules-list {
        grid-template-columns: 1fr;
    }

    header::before {
        font-size: 2rem;
    }
}

.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #50c878;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 100;
    text-shadow: 0 0 10px rgba(80, 200, 120, 0.8);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Clean, minimal selection styling */
::selection {
    background: rgba(80, 200, 120, 0.3);
    color: white;
}

/* Custom themed scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #0f4c3a, #1a5c47);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2d8f47, #50c878);
    border-radius: 10px;
    border: 2px solid #0f4c3a;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #50c878, #6be585);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #50c878 #1a5c47;
}


.Tenna {
    position: absolute;
    top: -70px;
    right: -100px;
    width: 200px;
    height: auto;
    z-index: 2;
    pointer-events: none;
    transform: scaleX(-1);
    /* Flip the image horizontally */
    filter: drop-shadow(0 0 10px rgba(80, 200, 120, 0.3));
}

.Tenna-left {
    position: absolute;
    top: -80px;
    left: -100px;
    width: 200px;
    height: auto;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(80, 200, 120, 0.3));
}

.menu-wrapper {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.menu-button {
    background: linear-gradient(135deg, #50c878 0%, #2d8f47 100%);
    border: 3px solid #ffffff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 0 15px rgba(80, 200, 120, 0.5);
    position: relative;
    z-index: 2;
}

.menu-button:hover {
    transform: rotate(180deg);
    box-shadow: 0 0 20px rgba(80, 200, 120, 0.8);
}

.menu-button::before {
    content: '⬇';
    color: white;
    font-size: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dropdown-menu {
    position: absolute;
    top: 70px;
    left: 0;
    background: rgba(15, 76, 58, 0.95);
    border: 2px solid #50c878;
    border-radius: 10px;
    padding: 10px;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.menu-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px;
    color: white;
    text-decoration: none;
    font-size: 0.8em;
    transition: all 0.2s ease;
    border-radius: 5px;
}

.menu-item:hover {
    background: rgba(80, 200, 120, 0.2);
    transform: translateX(5px);
}

.menu-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

/* pixel border effect on hover */
.menu-item:hover::before {
    content: '';
    position: absolute;
    left: 0;
    width: 3px;
    height: 100%;
    background: #50c878;
    animation: pixelBorder 0.3s steps(3) forwards;
}

@keyframes pixelBorder {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}