:root {
    --bg: #0c0f14;
    --surface: #12161d;
    --surface-2: #181e28;
    --line: #232a36;
    --text: #e8ecf3;
    --muted: #98a2b3;
    --accent: #4fd8c4;
    --accent-ink: #04201c;
    --ok: #3ddc84;
    --bad: #f0616d;
    --discord: #5865f2;
    --whatsapp: #168a4a;
    --radius: 14px;
    --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
}

@font-face {
    font-family: "Mojangles";
    src: url("mojangles.ttf");
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    font-family: var(--display);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

[hidden] {
    display: none !important;
}

.wrap {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
}

section {
    padding: 88px 0 0;
}

.section-head {
    margin-bottom: 32px;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
}

.section-head p {
    color: var(--muted);
    margin-top: 12px;
}

header.top {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.top-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--display);
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.01em;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    image-rendering: pixelated;
}

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

nav.links a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.15s;
}

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

nav.links a.btn {
    color: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    font: 600 15px/1 var(--body);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s, filter 0.15s, background 0.15s;
}

.btn:hover {
    filter: brightness(1.1);
}

.btn:active {
    transform: translateY(1px);
}

.btn-discord {
    background: var(--discord);
    color: #fff;
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
}

.btn-ghost {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
}

.btn-accent {
    background: var(--accent);
    color: var(--accent-ink);
}

.btn-sm {
    padding: 9px 14px;
    font-size: 14px;
}

.hero {
    padding-top: 72px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: start;
}

.hero h1 {
    font-size: clamp(42px, 6.4vw, 72px);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.hero .lead {
    margin-top: 22px;
    color: var(--muted);
    font-size: 19px;
    max-width: 30em;
}

.ip-box {
    margin-top: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 460px;
    padding: 14px 14px 14px 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: border-color 0.15s;
}

.ip-box:hover {
    border-color: var(--accent);
}

.ip-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ip-text small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.3;
}

.ip-text strong {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.ip-copy {
    background: var(--ok);
    color: var(--accent-ink);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 9px;
    min-width: 76px;
    text-align: center;
}

.hero-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.note {
    margin-top: 20px;
    color: var(--muted);
    font-size: 14.5px;
}

.status-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}

.entry {
    display: flex;
    gap: 16px;
    padding: 14px;
    background: #000;
    border: 2px solid #3a3a3a;
    border-radius: 4px;
}

.entry-icon {
    width: 72px;
    height: 72px;
    flex: none;
    image-rendering: pixelated;
}

.entry-main {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.entry-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-family: "Mojangles", ui-monospace, Consolas, monospace;
    font-size: 24px;
    line-height: 1;
    color: #fff;
}

.entry-count {
    color: #8b8b8b;
    white-space: nowrap;
}

::selection {
    background-color: var(--text);
    color: var(--bg);
}

.motd {
    font-family: "Mojangles", ui-monospace, Consolas, monospace;
    font-size: 22px;
    line-height: 1.1;
    color: #aaa;
    margin-top: 6px;
    overflow-wrap: anywhere;
}

.motd-line {
    text-align: center;
    min-height: 1.1em;
}

.status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    font-size: 14px;
    font-weight: 600;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--muted);
}

.pill[data-state="online"] .dot {
    background: var(--ok);
}

.pill[data-state="offline"] .dot {
    background: var(--bad);
}

.tag {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.players {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.players-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}

.players-head h3 {
    font-size: 18px;
    font-weight: 600;
}

.players-head span {
    color: var(--muted);
    font-size: 14px;
}

.player-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.player-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 6px;
    background: var(--surface-2);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    min-width: 0;
}

.player-list img {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    image-rendering: pixelated;
    flex: none;
}

.player-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty {
    color: var(--muted);
    font-size: 15px;
}

.modes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mode {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mode h3 {
    font-size: 24px;
    font-weight: 800;
}

.mode p {
    color: var(--muted);
    font-size: 15.5px;
}

.mode.soon {
    background: transparent;
    border-style: dashed;
}

.mode.soon h3 {
    color: var(--muted);
}

.plugin-list {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin: 0;
    padding: 0 28px;
    list-style: none;
}

.plugin {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 12px 32px;
    padding: 24px 0;
    align-items: baseline;
}

.plugin+.plugin {
    border-top: 1px solid var(--line);
}

.plugin-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.plugin-name h3 {
    font-size: 20px;
    font-weight: 600;
}

.ver {
    font-size: 13px;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--line);
    padding: 2px 8px;
    border-radius: 6px;
}

.plugin p {
    color: var(--muted);
}

.guide {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
}

.ask h3 {
    font-size: 24px;
    font-weight: 800;
}

.ask p {
    color: var(--muted);
    margin-top: 8px;
}

.ask-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.steps-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.steps-head h3 {
    font-size: 22px;
    font-weight: 800;
}

.link-btn {
    background: none;
    border: 0;
    color: var(--accent);
    font: 600 15px var(--body);
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

ol.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
}

ol.steps>li {
    counter-increment: step;
    position: relative;
    padding: 28px 0 28px 64px;
    border-top: 1px solid var(--line);
}

ol.steps>li:first-child {
    border-top: 0;
}

ol.steps>li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    display: grid;
    place-items: center;
    font: 800 18px var(--display);
}

ol.steps h4 {
    font: 800 20px/1.25 var(--display);
    margin: 6px 0 8px;
    letter-spacing: -0.01em;
}

ol.steps p {
    color: var(--muted);
}

ol.steps p+p {
    margin-top: 8px;
}

.shot {
    margin-top: 18px;
    max-width: 560px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg);
}

.shot img {
    width: 100%;
    height: auto;
}

code.copyable {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 2px;
    padding: 2px 4px 2px 10px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font: 600 15px ui-monospace, Consolas, monospace;
}

code.copyable button {
    background: var(--surface-2);
    color: var(--text);
    border: 0;
    border-radius: 6px;
    font: 600 13px var(--body);
    padding: 4px 10px;
    cursor: pointer;
}

code.copyable button:hover {
    background: var(--line);
}

.join-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

footer {
    margin-top: 96px;
    border-top: 1px solid var(--line);
    padding: 40px 0 40px;
    color: var(--muted);
    font-size: 18px;
    text-align: center;
}

.foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
}

.foot p {
    max-width: 56ch;
}

.foot strong {
    color: var(--text);
    font-weight: 600;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 20px);
    opacity: 0;
    background: var(--text);
    color: var(--bg);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 50;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .modes {
        grid-template-columns: repeat(2, 1fr);
    }

    .plugin {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .entry-icon {
        display: none;
    }

    .wrap {
        width: min(1120px, calc(100% - 32px));
    }

    section {
        padding-top: 64px;
    }

    .hero {
        padding-top: 44px;
    }

    nav.links a:not(.btn) {
        display: none;
    }

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

    .plugin-list {
        padding: 0 20px;
    }

    .guide {
        padding: 22px 18px;
    }

    ol.steps>li {
        padding-left: 54px;
    }

    ol.steps>li::before {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .entry-icon {
        width: 56px;
        height: 56px;
    }

    .ip-text strong {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}