:root {
    color-scheme: dark;
    --bg: #080b10;
    --bg-soft: #0e131b;
    --panel: rgba(12, 17, 24, 0.78);
    --panel-strong: rgba(17, 24, 34, 0.94);
    --line: rgba(255, 255, 255, 0.11);
    --line-bright: rgba(125, 255, 99, 0.28);
    --text: #f6f8ff;
    --muted: rgba(246, 248, 255, 0.64);
    --dim: rgba(246, 248, 255, 0.42);
    --green: #7dff63;
    --cyan: #35e7ff;
    --amber: #ffb02e;
    --red: #ff5d73;
    --shadow: rgba(0, 0, 0, 0.48);
    --hero-image: url("https://commons.wikimedia.org/wiki/Special:FilePath/Minecraft_Beta_1.8.1_Gameplay_Screenshot.png");
    --survival-image: url("https://commons.wikimedia.org/wiki/Special:FilePath/Minecraft_Alpha_screenshot.jpg");
    --lobby-image: url("https://commons.wikimedia.org/wiki/Special:FilePath/Minecraft%20(40086719120).jpg?width=1200");
    --events-image: url("https://commons.wikimedia.org/wiki/Special:FilePath/Screenshot_from_the_Minecraft_End.png");
    --community-image: url("https://commons.wikimedia.org/wiki/Special:FilePath/Grass001_8K_Color.png?width=1200");
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(53, 231, 255, 0.14), transparent 30rem),
        radial-gradient(circle at 90% 18%, rgba(125, 255, 99, 0.1), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: "DM Sans", system-ui, sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at 50% 20%, black, transparent 78%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

button,
a {
    font: inherit;
}

button {
    border: 0;
}

main,
.nav,
.footer,
.toast {
    position: relative;
    z-index: 1;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    padding: 0 48px;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 11, 16, 0.76);
    backdrop-filter: blur(22px);
}

.nav-brand,
.nav-links,
.hero-actions,
.join-status,
.join-meta,
.panel-heading,
.footer {
    display: flex;
    align-items: center;
}

.nav-brand {
    gap: 10px;
    color: var(--text);
    font-family: "Syne", sans-serif;
    font-weight: 800;
    text-decoration: none;
}

.brand-icon {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 18px rgba(125, 255, 99, 0.42));
}

.nav-links {
    gap: 28px;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.nav-copy,
.btn-primary,
.btn-secondary,
.panel-heading button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-copy,
.btn-primary {
    padding: 0 20px;
    background: linear-gradient(135deg, var(--green), var(--cyan));
    color: #031014;
    box-shadow: 0 0 42px rgba(53, 231, 255, 0.22);
}

.btn-primary {
    min-height: 52px;
    padding: 0 28px;
}

.btn-primary:hover,
.nav-copy:hover,
.panel-heading button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 54px rgba(125, 255, 99, 0.24);
}

.btn-secondary,
.panel-heading button {
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.panel-heading button {
    min-height: 40px;
    color: var(--green);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
}

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 48px;
    align-items: center;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 128px 0 76px;
}

.hero-backdrop {
    position: absolute;
    inset: 0 calc(50% - 50vw);
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(8, 11, 16, 0.4), var(--bg) 95%),
        linear-gradient(90deg, rgba(8, 11, 16, 0.92), rgba(8, 11, 16, 0.38), rgba(8, 11, 16, 0.95)),
        var(--hero-image) center / cover;
    filter: saturate(1.1);
}

.hero-grid {
    position: absolute;
    inset: 0 calc(50% - 50vw);
    z-index: -1;
    background-image:
        linear-gradient(rgba(125, 255, 99, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(53, 231, 255, 0.06) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: radial-gradient(ellipse at 50% 30%, black, transparent 72%);
}

.eyebrow,
.section-heading span,
.mode-card span,
.showcase-copy > span,
.join-label,
.panel-heading span,
.community-card span {
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 8px 16px;
    border: 1px solid var(--line-bright);
    border-radius: 999px;
    background: rgba(125, 255, 99, 0.1);
}

.pulse,
#status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 18px var(--amber);
}

.pulse {
    background: var(--green);
    box-shadow: 0 0 18px var(--green);
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    50% {
        opacity: 0.45;
        transform: scale(0.72);
    }
}

.hero h1,
.section-heading h2,
.showcase-copy h2,
.community-card h2,
.faq-section h2 {
    margin: 0;
    font-family: "Syne", sans-serif;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 620px;
    font-size: clamp(3.4rem, 8vw, 7.2rem);
    line-height: 0.92;
    text-shadow: 0 0 38px rgba(53, 231, 255, 0.22);
}

.hero p {
    max-width: 620px;
    margin: 24px 0 38px;
    color: var(--muted);
    font-size: 1.13rem;
    line-height: 1.75;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 14px;
}

.join-card,
.stat-card,
.server-panel,
.mode-card,
.showcase-image,
.steps article,
.community-card,
.faq-grid article {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 100px var(--shadow);
}

.join-card {
    padding: 28px;
}

.join-card strong {
    display: block;
}

#server-ip {
    margin-top: 12px;
    color: var(--cyan);
    font-family: "Syne", sans-serif;
    font-size: clamp(1.25rem, 2.4vw, 2rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(53, 231, 255, 0.18);
    border-radius: 12px;
    background: rgba(53, 231, 255, 0.07);
}

.join-status {
    gap: 10px;
    margin: 26px 0;
    color: var(--muted);
    font-weight: 800;
}

#status-dot.online {
    background: var(--green);
    box-shadow: 0 0 18px var(--green);
}

#status-dot.offline {
    background: var(--red);
    box-shadow: 0 0 18px var(--red);
}

.join-meta {
    gap: 12px;
}

.join-meta div {
    flex: 1;
    min-height: 92px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}

.join-meta span,
.stat-card span {
    display: block;
    color: var(--dim);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.join-meta strong {
    margin-top: 8px;
    font-size: 1.45rem;
}

.status-section,
.modes-section,
.guide-section,
.faq-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 96px 0;
}

.blog-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 96px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.blog-grid a,
.blog-sidebar,
.blog-final-cta {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: 0 30px 100px var(--shadow);
    backdrop-filter: blur(18px);
}

.blog-grid a {
    display: block;
    min-height: 180px;
    padding: 22px;
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.blog-grid a:hover {
    transform: translateY(-3px);
    border-color: var(--line-bright);
}

.blog-grid span,
.blog-sidebar span,
.blog-final-cta span {
    color: var(--green);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.blog-grid strong {
    display: block;
    margin: 14px 0 10px;
    font-family: "Syne", sans-serif;
    font-size: 1.25rem;
    line-height: 1.15;
}

.blog-grid small {
    color: var(--muted);
    line-height: 1.55;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 38px;
}

.section-heading.centered {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading h2,
.showcase-copy h2,
.community-card h2 {
    margin-top: 12px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.section-heading p,
.showcase-copy p,
.community-card p {
    margin: 16px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.stat-card {
    min-height: 150px;
    padding: 24px;
}

.stat-card strong {
    display: block;
    margin-top: 14px;
    font-family: "Syne", sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1;
}

.stat-card small {
    display: block;
    margin-top: 12px;
    color: var(--muted);
}

.server-panel {
    padding: 24px;
}

.panel-heading {
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.panel-heading h3 {
    margin: 6px 0 0;
    font-family: "Syne", sans-serif;
    font-size: 1.5rem;
}

.server-list {
    display: grid;
    gap: 10px;
}

.server {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    align-items: center;
    min-height: 62px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-strong);
}

.server-name {
    font-weight: 900;
    overflow-wrap: anywhere;
}

.players {
    color: var(--amber);
    font-weight: 900;
}

.pill {
    border: 1px solid rgba(125, 255, 99, 0.25);
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(125, 255, 99, 0.1);
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mode-card {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 24px;
    background-position: center;
    background-size: cover;
}

.mode-card::before {
    content: "";
    position: absolute;
}

.mode-card h3 {
    margin: 12px 0;
    font-family: "Syne", sans-serif;
    font-size: 1.7rem;
}

.mode-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.mode-survival {
    background:
        linear-gradient(180deg, rgba(9, 12, 18, 0.12), rgba(9, 12, 18, 0.92)),
        var(--survival-image) center / cover;
}

.mode-lobby {
    background:
        linear-gradient(180deg, rgba(9, 12, 18, 0.1), rgba(9, 12, 18, 0.92)),
        var(--lobby-image) center / cover;
}

.mode-events {
    background:
        linear-gradient(180deg, rgba(9, 12, 18, 0.1), rgba(9, 12, 18, 0.92)),
        var(--events-image) center / cover;
}

.showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 42px;
    align-items: center;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 96px 0;
}

.feature-list {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.feature-list div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.feature-list strong,
.feature-list span {
    display: block;
}

.feature-list span {
    margin-top: 6px;
    color: var(--muted);
}

.showcase-image {
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

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

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.steps article {
    min-height: 220px;
    padding: 24px;
}

.steps span {
    color: var(--cyan);
    font-family: "Syne", sans-serif;
    font-size: 2rem;
    font-weight: 800;
}

.steps h3,
.faq-grid h3 {
    margin: 18px 0 10px;
    font-family: "Syne", sans-serif;
}

.steps p,
.faq-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.community-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 72px 0;
}

.community-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 38px;
    background:
        linear-gradient(135deg, rgba(12, 17, 24, 0.94), rgba(12, 17, 24, 0.72)),
        var(--community-image) center / cover;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.faq-grid article {
    min-height: 170px;
    padding: 24px;
}

.footer {
    justify-content: space-between;
    gap: 24px;
    min-height: 110px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer strong,
.footer span {
    display: block;
}

.footer strong {
    color: var(--text);
    font-family: "Syne", sans-serif;
}

.footer p {
    max-width: 520px;
    margin: 0;
    text-align: right;
}

.empty,
.error {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    text-align: center;
}

.error {
    color: var(--red);
}

.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 30;
    transform: translateY(20px);
    opacity: 0;
    padding: 12px 16px;
    border: 1px solid var(--line-bright);
    border-radius: 10px;
    background: var(--panel-strong);
    color: var(--green);
    font-weight: 900;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.visible {
    transform: translateY(0);
    opacity: 1;
}

.seo-page {
    position: relative;
    z-index: 1;
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 80px;
}

.seo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    align-items: start;
}

.seo-brand {
    display: inline-flex;
    margin-bottom: 36px;
    color: var(--green);
    font-family: "Syne", sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
}

.seo-article {
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: 0 30px 100px var(--shadow);
    backdrop-filter: blur(18px);
}

.blog-sidebar {
    position: sticky;
    top: 88px;
    padding: 20px;
}

.blog-sidebar h2 {
    margin: 10px 0 16px;
    font-family: "Syne", sans-serif;
    font-size: 1.25rem;
}

.blog-sidebar a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-decoration: none;
    line-height: 1.35;
}

.blog-sidebar a:hover {
    color: var(--green);
}

.blog-final-cta {
    margin-top: 34px;
    padding: 24px;
}

.blog-final-cta h2 {
    margin-top: 10px;
}

.seo-article > span {
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.seo-article h1,
.seo-article h2 {
    font-family: "Syne", sans-serif;
    letter-spacing: 0;
}

.seo-article h1 {
    margin: 16px 0 20px;
    font-size: clamp(2.4rem, 8vw, 4.8rem);
    line-height: 0.98;
}

.seo-article h2 {
    margin: 34px 0 12px;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.seo-article p,
.seo-article li {
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.75;
}

.seo-article strong {
    color: var(--text);
}

.seo-article ul,
.seo-article ol {
    display: grid;
    gap: 8px;
    padding-left: 22px;
}

.seo-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0;
}

.seo-cta .btn-primary,
.seo-cta .btn-secondary {
    min-width: 180px;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 940px) {
    .nav {
        height: 62px;
        padding: 0 20px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px 20px 22px;
        border-bottom: 1px solid var(--line);
        background: rgba(8, 11, 16, 0.96);
        backdrop-filter: blur(22px);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 14px 0;
    }

    .hero,
    .showcase,
    .community-card {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 26px;
        padding-top: 104px;
    }

    .status-grid,
    .mode-grid,
    .steps,
    .blog-grid,
    .seo-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .community-card .btn-primary {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .hero,
    .status-section,
    .modes-section,
    .guide-section,
    .faq-section,
    .showcase,
    .community-section,
    .footer {
        width: min(100% - 24px, 1180px);
    }

    .hero h1 {
        font-size: clamp(2.7rem, 16vw, 4.8rem);
    }

    .hero-actions,
    .join-meta,
    .panel-heading,
    .footer {
        align-items: stretch;
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .nav-copy {
        width: 100%;
    }

    .server {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer p {
        text-align: left;
    }
}
