:root {
    --bg: #f5ecd2;
    --bg-dark: #2b1d10;
    --brown: #4a2e16;
    --brown-light: #6b4423;
    --green: #6ab04c;
    --green-dark: #4a8a32;
    --green-deep: #2f5d1f;
    --yellow: #f2c94c;
    --cream: #fff8e0;
    --ink: #1a1208;
    --panel: #1a140c;
    --shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}

::selection {
    background-color: var(--yellow);
    color: var(--ink);
}

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

html,
body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'JetBrains Mono', monospace;
    image-rendering: pixelated;
}

html {
    scroll-behavior: auto;
}

body {
    overflow-x: hidden;
}

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

.pixel {
    font-family: 'Press Start 2P', monospace;
    letter-spacing: 1px;
}

.mono {
    font-family: 'VT323', monospace;
}

.nav {
    background: var(--brown);
    border-bottom: 4px solid #2b1908;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--cream);
}

.brand-logo {
    width: 36px;
    height: 36px;
    background: var(--green);
    border: 3px solid #1a3a0f;
    display: grid;
    place-items: center;
    font-family: 'Press Start 2P', monospace;
    color: var(--bg-dark);
    font-size: 14px;
    box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.25);
}

.brand-icon {
    width: 30px;
    height: 30px;
}

.brand-name {
    font-family: 'Press Start 2P', monospace;
    font-size: 15px;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    font-family: 'Press Start 2P', monospace;
    font-size: 11px;
    color: var(--cream);
}

.nav-links a:hover {
    color: var(--yellow);
}

.nav-cta {
    background: #5b6ee1;
    color: #fff !important;
    padding: 10px 16px;
    border: 3px solid #2b3a91;
    box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.25);
}

.nav-cta:hover {
    background: #6b7eea;
    color: #fff !important;
}

.hero {
    position: relative;
    min-height: 88vh;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.35) 100%),
        linear-gradient(180deg, #f0c98a 0%, #f5b46a 25%, #b8d77a 55%, #6ab04c 75%, #3d7a28 100%);
    overflow: hidden;
    padding: 80px 32px 120px;
}

.cloud {
    position: absolute;
    background: #fff;
    opacity: 0.85;
    box-shadow: 16px 0 0 #fff, 32px 0 0 #fff, 48px 0 0 #fff, 16px -16px 0 #fff, 32px -16px 0 #fff;
}

.cloud.c1 {
    top: 60px;
    left: 10%;
    width: 16px;
    height: 16px;
}

.cloud.c2 {
    top: 120px;
    right: 30%;
    width: 16px;
    height: 16px;
    transform: scale(1.4);
}

.cloud.c3 {
    top: 200px;
    left: 40%;
    width: 16px;
    height: 16px;
    transform: scale(0.9);
}

.sun {
    position: absolute;
    top: 90px;
    right: 14%;
    width: 80px;
    height: 80px;
    background: #fff3b0;
    border: 6px solid #ffd95e;
    box-shadow: 0 0 60px 20px rgba(255, 217, 94, 0.5);
}

.mountains {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 220px;
    pointer-events: none;
    image-rendering: pixelated;
}

.mountain-layer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background-repeat: repeat-x;
    background-position: bottom left;
}

.mountain-far {
    height: 140px;
    image-rendering: pixelated;
    opacity: 0.95;
}

.mountain-near {
    height: 170px;
    image-rendering: pixelated;
}

.hero-inner {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    z-index: 2;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--cream);
    border: 3px solid var(--brown);
    padding: 8px 14px;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    box-shadow: var(--shadow);
    position: relative;
    cursor: default;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.dot.offline {
    background: #d04040;
    box-shadow: 0 0 8px #d04040;
}

.players-pop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: var(--panel);
    color: var(--cream);
    border: 3px solid #000;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
    padding: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
    z-index: 30;
}

.status-chip:hover .players-pop,
.status-chip:focus-within .players-pop {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.players-pop .pop-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    color: var(--yellow);
    margin-bottom: 8px;
}

.players-pop ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 260px;
    overflow-y: auto;
}

.players-pop li {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2a200f;
    border: 2px solid #000;
    padding: 6px 8px;
    font-family: 'VT323', monospace;
    font-size: 18px;
}

.players-pop img {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
    display: block;
}

.players-pop .empty {
    font-family: 'VT323', monospace;
    font-size: 18px;
    color: #c2b89a;
    padding: 6px 2px;
}

.hero h1 {
    margin-top: 28px;
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(36px, 7vw, 88px);
    line-height: 1.05;
    color: var(--cream);
    text-shadow: 4px 4px 0 var(--brown), 8px 8px 0 rgba(0, 0, 0, 0.35);
}

.hero h1 .accent {
    color: var(--yellow);
    display: block;
    margin-top: 14px;
}

.hero p.lead {
    margin-top: 28px;
    max-width: 600px;
    font-family: 'VT323', monospace;
    font-size: 26px;
    line-height: 1.3;
    color: var(--cream);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.ip-box {
    margin-top: 36px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: var(--panel);
    border: 4px solid #000;
    padding: 16px 18px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
}

.ip-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    color: #9b9b9b;
}

.ip-text {
    font-family: 'VT323', monospace;
    font-size: 36px;
    color: var(--green);
    padding: 0 8px;
}

.copy-btn {
    background: var(--green);
    color: var(--bg-dark);
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    padding: 12px 16px;
    border: 3px solid #1a3a0f;
    cursor: pointer;
    box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.25);
    transition: transform 0.05s;
}

.copy-btn:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.hero-meta {
    margin-top: 18px;
    font-family: 'VT323', monospace;
    font-size: 20px;
    color: var(--cream);
    opacity: 0.95;
}

.grass-strip {
    height: 36px;
    background:
        linear-gradient(180deg, #6ab04c 0%, #6ab04c 50%, #4a2e16 50%, #4a2e16 100%);
    border-top: 4px solid #2c5418;
    border-bottom: 4px solid #1f1306;
}

section {
    padding: 90px 32px;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: var(--green-deep);
    background: #e7dcb6;
    padding: 6px 10px;
    border: 2px solid var(--brown-light);
    margin-bottom: 18px;
}

.ready-to-join {
    background: rgba(255,255,255,0.15);
    color: var(--yellow);
    border-color: var(--yellow);
}

h2.section-title {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(24px, 4vw, 42px);
    color: var(--brown);
    line-height: 1.2;
}

h2.section-title .y {
    color: var(--yellow);
    -webkit-text-stroke: 1px var(--brown);
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.feat {
    background: var(--cream);
    border: 4px solid var(--brown);
    padding: 28px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
}

.feat-icon {
    width: 48px;
    height: 48px;
    background: var(--green);
    border: 3px solid var(--green-deep);
    margin-bottom: 18px;
    box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.2);
}

.feat h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    color: var(--brown);
    margin-bottom: 12px;
}

.feat p {
    font-family: 'VT323', monospace;
    font-size: 20px;
    line-height: 1.3;
    color: #3a2a18;
}

.stats {
    background: var(--cream);
    border-top: 4px solid var(--brown);
    border-bottom: 4px solid var(--brown);
    padding: 50px 32px;
}

.stats-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat {
    background: #fff;
    border: 3px solid var(--brown);
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: center;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.stat-ico {
    width: 36px;
    height: 36px;
    background: var(--green);
    border: 2px solid var(--green-deep);
    flex-shrink: 0;
}

.stat-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    color: var(--brown-light);
}

.stat-value {
    font-family: 'VT323', monospace;
    font-size: 26px;
    color: var(--brown);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.step {
    background: var(--cream);
    border: 4px solid var(--brown);
    padding: 28px;
    position: relative;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
}

.step-num {
    position: absolute;
    top: -22px;
    left: 20px;
    background: var(--yellow);
    color: var(--brown);
    border: 3px solid var(--brown);
    padding: 8px 12px;
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
}

.step h3 {
    margin-top: 12px;
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: var(--brown);
    margin-bottom: 12px;
}

.step p {
    font-family: 'VT323', monospace;
    font-size: 20px;
    line-height: 1.3;
    color: #3a2a18;
}

.join {
    background: linear-gradient(180deg, #3d7a28, #2c5418);
    color: var(--cream);
    text-align: center;
    border-top: 6px solid var(--brown);
    border-bottom: 6px solid var(--brown);
}

.join h2 {
    color: var(--cream);
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}

.join p {
    font-family: 'VT323', monospace;
    font-size: 24px;
    margin-top: 12px;
}

.join .ip-box {
    margin-top: 36px;
}

.discord {
    display: inline-block;
    margin-top: 28px;
    font-family: 'Press Start 2P', monospace;
    font-size: 11px;
    color: var(--yellow);
    border-bottom: 2px dashed var(--yellow);
    padding-bottom: 4px;
}

.discord:hover {
    color: #fff;
    border-color: #fff;
}

footer {
    background: var(--bg-dark);
    color: #c2b89a;
    padding: 32px;
    text-align: center;
    font-family: 'VT323', monospace;
    font-size: 18px;
    border-top: 4px solid #000;
}

footer .copyright {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    color: var(--cream);
    margin-bottom: 10px;
}

@media (max-width: 800px) {
    .nav-links {
        display: none;
    }

    .features,
    .steps,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 20px 120px;
    }

    .ip-text {
        font-size: 24px;
    }

    section {
        padding: 60px 20px;
    }
}