:root {
    --mc-green: #5D8A3C;
    --mc-dark-green: #3A5F2A;
    --mc-dirt: #8B5A2B;
    --mc-stone: #7A7A7A;
    --mc-sky: #7EC8E3;
    --mc-cloud: #E8F4F8;
    --accent: #FFD700;
    --text: #F5F5F5;
    --card-bg: rgba(20, 30, 20, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: linear-gradient(180deg, #87CEEB 0%, #5BA3C9 40%, #3A7A4A 70%, #2D5A2D 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.15) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

.floating-blocks {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.block {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.25;
    animation: float 12s infinite ease-in-out;
}

.block.grass { background: linear-gradient(to bottom, #5D8A3C 40%, #8B5A2B 40%); }
.block.dirt { background: #8B5A2B; }
.block.stone { background: #7A7A7A; }
.block.diamond { background: linear-gradient(135deg, #5CE1E6, #2A9D8F); }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

header {
    position: relative;
    z-index: 10;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 20, 10, 0.7);
    backdrop-filter: blur(8px);
    border-bottom: 3px solid var(--mc-green);
}

/* Sticky Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.1rem;
    color: var(--accent);
    text-shadow: 2px 2px 0 #000;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    cursor: pointer;
}

.logo span {
    font-size: 1.6rem;
}

nav a {
    color: var(--text);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 600;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--accent);
}

.hero {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 5rem 1.5rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.4rem, 5vw, 2.4rem);
    line-height: 1.5;
    color: #fff;
    text-shadow: 3px 3px 0 #000, 0 0 20px rgba(0,0,0,0.5);
    margin-bottom: 1.2rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.ip-box {
    background: var(--card-bg);
    border: 3px solid var(--mc-green);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.8rem;
    box-shadow: 0 6px 0 var(--mc-dark-green);
}

.ip-box code {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.85rem;
    color: var(--accent);
    word-break: break-all;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 0 rgba(0,0,0,0.3);
}

.btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.3);
}

.btn-primary {
    background: linear-gradient(to bottom, #5D8A3C, #3A5F2A);
    color: white;
    border: 2px solid #2a4520;
}

.btn-primary:hover {
    background: linear-gradient(to bottom, #6a9a45, #456f32);
}

.btn-discord {
    background: linear-gradient(to bottom, #5865F2, #4752C4);
    color: white;
    border: 2px solid #3c45a5;
}

.btn-vote {
    background: linear-gradient(to bottom, #FFAA00, #CC8800);
    color: #222;
    border: 2px solid #996600;
}

.btn-copy {
    background: #444;
    color: white;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    border: 2px solid #222;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.features {
    position: relative;
    z-index: 5;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.feature-card {
    background: var(--card-bg);
    border: 3px solid var(--mc-green);
    border-radius: 10px;
    padding: 1.8rem;
    text-align: center;
    box-shadow: 0 8px 0 var(--mc-dark-green);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-card .icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    color: var(--accent);
    line-height: 1.5;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.55;
    opacity: 0.9;
}

.cta {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 3rem 1.5rem 5rem;
    background: rgba(10, 20, 10, 0.6);
    border-top: 3px solid var(--mc-green);
}

.cta h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.1rem, 3.5vw, 1.6rem);
    margin-bottom: 1.5rem;
    color: var(--accent);
    text-shadow: 2px 2px 0 #000;
}

footer {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
    background: rgba(0,0,0,0.4);
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--mc-green);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    z-index: 100;
    transition: transform 0.3s ease;
    border: 2px solid #2a4520;
    box-shadow: 0 4px 0 #2a4520;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }
    nav a {
        margin: 0 0.6rem;
    }
    .ip-box {
        flex-direction: column;
        gap: 0.7rem;
    }
}

/* ========== Contact Page ========== */
.contact-wrapper {
    position: relative;
    z-index: 5;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
}

.contact-form-box,
.contact-info-box {
    background: var(--card-bg);
    border: 3px solid var(--mc-green);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 0 var(--mc-dark-green);
}

.contact-form-box h2,
.contact-info-box h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.3rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #3a5f2a;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.required {
    color: #ff6b6b;
}

.contact-submit {
    background: linear-gradient(to bottom, #5D8A3C, #3A5F2A);
    color: white;
    border: 2px solid #2a4520;
    padding: 0.9rem 1.8rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(0,0,0,0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}

.contact-submit:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.3);
}

.contact-info-item {
    margin-bottom: 1.4rem;
    line-height: 1.5;
}

.contact-info-item strong {
    display: block;
    color: var(--accent);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.contact-info-item a {
    color: #7EC8E3;
    text-decoration: none;
}

.contact-info-item a:hover {
    text-decoration: underline;
}


/* ========== Discord Page ========== */

.discord-card {
    background: rgba(88, 101, 242, 0.15);
    border: 2px solid #5865F2;
    border-radius: 10px;
    padding: 1.3rem;
    margin-top: 1.5rem;
    text-align: center;
}

.discord-card a {
    display: inline-block;
    margin-top: 0.8rem;
    background: #5865F2;
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 800px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}