/* Minecraft server list and server pages. Uses the color tokens defined in index.html. */
.mc-page { padding: 24px 0 60px; }

.mc-wrap {
    width: calc(100% - 24px);
    max-width: 1180px;
    margin: 0 auto;
}

.mc-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.mc-crumbs a { color: var(--blue); }
.mc-crumbs a:hover { text-decoration: underline; }

.mc-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.mc-head h1, .mc-detail-head h1 {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    margin-bottom: 8px;
}

.mc-head p { color: var(--muted); max-width: 640px; line-height: 1.6; }

.mc-stats { display: flex; gap: 10px; }

.mc-stats div {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 16px;
    min-width: 110px;
}

.mc-stats strong { display: block; font-family: "Poppins", sans-serif; font-size: 20px; font-weight: 900; }
.mc-stats span { font-size: 12.5px; color: var(--muted); }

/* ---------- list ---------- */
.mc-table-head,
.mc-row {
    display: grid;
    grid-template-columns: 64px minmax(180px, 250px) minmax(0, 1fr) 170px;
    align-items: center;
}

.mc-table-head {
    background: #2b2f36;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 14px;
    border-radius: 8px 8px 0 0;
    padding: 12px 0;
}

.mc-table-head span { padding: 0 16px; }
.mc-table-head span:first-child { text-align: center; padding: 0; }

.mc-list { list-style: none; display: grid; gap: 10px; margin-top: 10px; }

.mc-row {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 100px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mc-row:hover { border-color: #22a35a; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08); }

.mc-rank {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-size: 20px;
    color: var(--muted);
    border-right: 1px dashed var(--line);
}

.mc-name {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    align-self: stretch;
    border-right: 1px dashed var(--line);
    min-width: 0;
}

.mc-name:hover strong { color: var(--blue); }

.mc-icon {
    flex-shrink: 0;
    border-radius: 8px;
    image-rendering: pixelated;
    background: #1f2937;
    object-fit: cover;
}

.mc-icon-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    font-family: "Poppins", sans-serif;
    font-size: 22px;
}

.mc-name-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mc-name-text strong { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }

.mc-tags { display: flex; flex-wrap: wrap; gap: 4px; }

.mc-tags span {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    background: rgba(127, 127, 127, 0.12);
    border-radius: 4px;
    padding: 2px 6px;
}

.mc-server {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    border-right: 1px dashed var(--line);
    align-self: stretch;
    justify-content: center;
}

.mc-banner {
    display: block;
    width: 100%;
    max-width: 468px;
    aspect-ratio: 468 / 60;
    background: #1b1f26;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}

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

/* Live message of the day, shown in place of a banner when a server has none. */
.mc-motd {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 4px 10px;
    background: #1b1f26 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='8' height='8' fill='%23161a20'/%3E%3Crect width='4' height='4' fill='%231d222a'/%3E%3Crect x='4' y='4' width='4' height='4' fill='%231d222a'/%3E%3C/svg%3E");
    color: #aaaaaa;
    font-family: "VT323", "Courier New", monospace;
    font-size: 15px;
    line-height: 1.15;
    white-space: pre;
    overflow: hidden;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
}

.mc-obf { filter: blur(1.5px); }

.mc-ip {
    display: flex;
    width: 100%;
    max-width: 468px;
    background: #5a6a8a;
    color: #ffffff;
    border-radius: 0 0 4px 4px;
}

.mc-ip code {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mc-copy {
    border: none;
    background: #7a8aab;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    padding: 0 14px;
    cursor: pointer;
    border-radius: 0 0 4px 0;
    transition: background 0.15s ease;
    min-width: 72px;
}

.mc-copy:hover { background: #8d9cbd; }
.mc-copy.done { background: #22a35a; }

.mc-info { padding: 8px 16px; display: grid; gap: 10px; }
.mc-kv { display: grid; gap: 8px; }
.mc-kv div { display: flex; flex-direction: column; }
.mc-info dt, .mc-facts dt { font-size: 12px; color: var(--muted); }
.mc-info dd { font-weight: 700; font-size: 15px; }

.mc-status.online { color: #16a34a; }
.mc-status.offline { color: #dc2626; }
.mc-status.checking { color: var(--muted); }

.mc-help {
    margin-top: 36px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 22px 24px;
    line-height: 1.65;
}

.mc-help h2, .mc-card h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 20px;
    margin: 0 0 8px;
}

.mc-help h2 + * { margin-bottom: 14px; }
.mc-help a, .mc-card a { color: var(--blue); font-weight: 600; }
.mc-browse { margin-top: 28px; }
.mc-browse h2 { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 18px; margin: 18px 0 10px; }
.mc-browse .rg-nav { margin: 0; }
.mc-faq { margin-top: 20px; }
.mc-faq h2 + * { margin-bottom: 0; }
.mc-faq h3 { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 16px; margin: 18px 0 4px; color: var(--text); }
.mc-faq h3:first-of-type { margin-top: 12px; }
.mc-faq p { margin: 0; color: var(--muted); }

.mc-steps { padding-left: 22px; line-height: 1.8; }
.mc-steps code { background: rgba(127, 127, 127, 0.14); padding: 1px 6px; border-radius: 4px; }

/* ---------- server page ---------- */

.mc-detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.mc-detail-head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }

.mc-rank-pill {
    font-size: 14px;
    background: #2b2f36;
    color: #ffffff;
    border-radius: 6px;
    padding: 3px 9px;
}

.mc-server-big { padding: 0; border: none; margin-bottom: 18px; }
.mc-server-big .mc-banner,
.mc-server-big .mc-ip { max-width: 100%; }

.mc-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.mc-facts div {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
}

.mc-facts dd { font-weight: 700; font-size: 16px; margin-top: 2px; overflow-wrap: anywhere; }

.mc-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 16px;
    line-height: 1.65;
}

.mc-motd-big { height: auto; min-height: 60px; border-radius: 6px; font-size: 18px; white-space: pre-wrap; }

.mc-chart { width: 100%; height: 120px; color: #16a34a; display: block; margin: 6px 0; }
.mc-muted { color: var(--muted); font-size: 13.5px; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
    .mc-table-head { display: none; }

    .mc-row {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        grid-template-areas:
            "rank name info"
            "server server server"
            "acts acts acts";
    }

    .mc-rank { grid-area: rank; font-size: 17px; }
    .mc-name { grid-area: name; border-right: none; padding: 10px 12px; }
    .mc-info { display: contents; }
    .mc-kv { grid-area: info; padding: 8px 12px; text-align: right; }
    .mc-kv div { align-items: flex-end; }
    .mc-row > .mc-info > .mc-acts { grid-area: acts; padding: 0 12px 12px; }
    .mc-server { grid-area: server; border-right: none; border-top: 1px dashed var(--line); padding: 10px 12px 12px; }
    .mc-banner, .mc-ip { max-width: 100%; }
    .mc-facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .mc-stats { width: 100%; }
    .mc-stats div { flex: 1; min-width: 0; padding: 8px 10px; }
    .mc-stats strong { font-size: 17px; }
    .mc-tags span:nth-child(n+3) { display: none; }
    .mc-help { padding: 18px 16px; }
}

/* ---------- page numbers ---------- */
.mc-pages {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 28px 0 8px;
}

.mc-pg, .mc-pg-arrow {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: var(--text);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mc-pg:hover, .mc-pg-arrow:hover { border-color: var(--blue); color: var(--blue); }
.mc-pg.on { background: #2b2f36; border-color: #2b2f36; color: #ffffff; }
.mc-pg-arrow.off { opacity: 0.4; pointer-events: none; }
.mc-pg-gap { padding: 0 4px; color: var(--muted); font-weight: 700; }
.mc-page-note { text-align: center; color: var(--muted); font-size: 13.5px; }

/* ---------- server page ---------- */
.mc-detail-head { flex-wrap: wrap; }
.mc-detail-title { flex: 1; min-width: 220px; }
.mc-detail-title p { margin-top: 2px; }
.mc-detail-actions { display: flex; gap: 8px; }
.mc-vote-form { margin: 0; }

.mc-btn {
    height: 44px;
    padding: 0 20px;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: 1px solid transparent;
}

.mc-btn-dark { background: #1f1f23; color: #ffffff; }
.mc-btn-dark:hover { background: #34343a; }
.mc-btn-dark.done { background: #22a35a; }
.mc-btn-vote { background: #ffffff; color: #111317; border-color: #111317; }
.mc-btn-vote:hover { background: #f1f3f6; }
.mc-btn-vote:disabled { opacity: 0.55; cursor: default; }

.mc-flash { border-radius: 8px; padding: 10px 14px; margin: 0 0 16px; font-weight: 600; font-size: 14px; }
.mc-flash-good { background: #e7f7ee; color: #166534; }
.mc-flash-info { background: #eaf3fb; color: #1e4f7a; }

.mc-two {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.mc-side, .mc-main {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.mc-side-title {
    background: #464646;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 18px;
    padding: 16px 16px;
}

.mc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }

.mc-table th, .mc-table td {
    padding: 11px 12px;
    border-bottom: 1px dashed #c7dbe0;
    text-align: left;
    vertical-align: top;
}

.mc-table th { width: 38%; font-weight: 700; border-right: 1px dashed #c7dbe0; }
.mc-table tr:last-child th, .mc-table tr:last-child td { border-bottom: none; }
.mc-table a { color: #4a5f8a; }
.mc-table a:hover { text-decoration: underline; }
.mc-table .mc-status { font-weight: 800; }

.mc-cell-ip { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mc-cell-ip code { font-family: inherit; overflow-wrap: anywhere; }

.mc-copy-sm {
    min-width: 0;
    height: 24px;
    padding: 0 8px;
    font-size: 12px;
    border-radius: 4px;
}

.mc-chips { display: flex; flex-wrap: wrap; gap: 5px; }

.mc-chip {
    display: inline-block;
    background: #5a6a8a;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    border-radius: 4px;
    padding: 3px 9px;
}

.mc-tabs { display: flex; background: #464646; overflow-x: auto; }

.mc-tab {
    border: none;
    background: transparent;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 16px;
    padding: 15px 16px;
    cursor: pointer;
    white-space: nowrap;
}

.mc-tab:hover { background: rgba(255, 255, 255, 0.08); }
.mc-tab.on { background: #5a6a8a; }

.mc-panel { padding: 22px 26px 26px; line-height: 1.7; }
.mc-panel h3 { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 17px; margin: 20px 0 8px; }
.mc-panel-banner { display: flex; justify-content: center; margin-bottom: 18px; }
.mc-panel-banner .mc-banner { border-radius: 4px; max-width: 468px; }

.mc-embed { margin-top: 14px; }
.mc-embed-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.mc-embed textarea {
    width: 100%;
    resize: vertical;
    font-family: "Courier New", monospace;
    font-size: 13px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--page);
    color: var(--text);
}

.mc-video { position: relative; aspect-ratio: 16 / 9; }
.mc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; }
.mc-back { margin-top: 20px; }
.mc-back a { color: var(--blue); font-weight: 600; }

@media (max-width: 900px) {
    .mc-two { grid-template-columns: 1fr; }
    .mc-detail-actions { width: 100%; }
    .mc-detail-actions .mc-btn, .mc-vote-form { flex: 1; }
    .mc-vote-form .mc-btn { width: 100%; }
    .mc-panel { padding: 18px 16px 20px; }
}

/* ---------- Roblox ---------- */
.rbx-icon { border-radius: 10px; image-rendering: auto; }
.mc-banner.rbx-thumb { aspect-ratio: 468 / 100; background: #1b1f26; }
.rbx-thumb .mc-banner-img { object-position: center 35%; }
.rbx-thumb-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: #9aa4b2; font-weight: 700; }
.rbx-play { display: inline-flex; align-items: center; justify-content: center; background: #22a35a; text-decoration: none; }
.rbx-play:hover { background: #1b8a4b; }
.rbx-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.rbx-hero { margin-bottom: 18px; }
.rbx-hero .mc-banner.rbx-thumb { aspect-ratio: 16 / 9; max-width: 100%; border-radius: 8px; }
.rbx-desc { overflow-wrap: anywhere; }
.rbx-desc p { margin-bottom: 10px; }
.rbx-verified { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: #2f86c8; color: #fff; font-size: 10px; font-weight: 900; vertical-align: 1px; }

/* ---------- Roblox video and screenshots ---------- */
.rbx-media { margin-bottom: 20px; }
.rbx-stage { position: relative; aspect-ratio: 16 / 9; background: #0e131a; border-radius: 8px; overflow: hidden; }
.rbx-stage-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #0e131a; }
video.rbx-stage-media { object-fit: contain; }
.rbx-strip { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.rbx-strip-item {
    position: relative; flex: 0 0 112px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent;
    border-radius: 6px; overflow: hidden; background: #1b1f26; cursor: pointer; opacity: 0.75;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}
.rbx-strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rbx-strip-item:hover { opacity: 1; }
.rbx-strip-item.on { border-color: var(--blue); opacity: 1; }
.rbx-play-badge {
    position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; border-radius: 50%;
    background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; padding-left: 2px;
}
@media (max-width: 480px) { .rbx-strip-item { flex-basis: 88px; } }

/* ---------- 404 page ---------- */
.nf { padding: 48px 12px 72px; display: flex; justify-content: center; }
.nf-card {
    width: 100%; max-width: 640px; text-align: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    padding: 40px 28px 34px; box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}
.nf-blocks { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 22px; }
.nf-digit { font-family: "Poppins", sans-serif; font-weight: 900; font-size: clamp(80px, 20vw, 136px); line-height: 1; letter-spacing: -2px; color: var(--text); }
.nf h1 { font-family: "Poppins", sans-serif; font-weight: 900; font-size: clamp(24px, 4vw, 32px); margin-bottom: 10px; text-wrap: balance; }
.nf-lead { color: var(--muted); line-height: 1.6; max-width: 480px; margin: 0 auto 10px; }
.nf-path { color: var(--muted); font-size: 13px; margin-bottom: 22px; overflow-wrap: anywhere; }
.nf-path code { background: rgba(127, 127, 127, 0.14); padding: 2px 6px; border-radius: 4px; }
.nf-search { display: flex; gap: 6px; max-width: 460px; margin: 0 auto 18px; }
.nf-search input {
    flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px;
    background: var(--input); color: var(--text); font: inherit; font-size: 16px;
}
.nf-search button { height: 46px; padding: 0 18px; border: none; border-radius: 8px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.nf-btn {
    display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 8px;
    border: 1px solid var(--text); color: var(--text); font-weight: 700; font-size: 14px;
}
.nf-btn:hover { background: rgba(127, 127, 127, 0.1); }
.nf-btn-dark { background: #111317; color: #fff; border-color: #111317; }
.nf-btn-dark:hover { background: #2b2d33; }
@media (max-width: 480px) { .nf-card { padding: 28px 16px 24px; } .nf-btn { flex: 1 1 100%; justify-content: center; } }

:root[data-theme="dark"] .nf-btn-dark { background: #ffffff; color: #111317; border-color: #ffffff; }
:root[data-theme="dark"] .nf-btn-dark:hover { background: #e9edf2; }

/* ---------- admin ---------- */
.adm { padding: 24px 0 60px; }
.adm-wrap { width: calc(100% - 24px); max-width: 1380px; margin: 0 auto; }
.adm-edit-page { max-width: 980px; }
.adm-muted { color: var(--muted); }
.adm-small { font-size: 13px; }
.adm-link { color: var(--blue); }
.adm-link:hover { text-decoration: underline; }
.adm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.adm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.adm h1 { font-family: "Poppins", sans-serif; font-weight: 900; font-size: clamp(24px, 3vw, 30px); margin-bottom: 4px; }
.adm h2 { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 18px; margin-bottom: 4px; }
.adm-search { display: flex; gap: 6px; }
.adm-search input { height: 38px; width: min(280px, 60vw); padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--input); color: var(--text); font: inherit; font-size: 15px; }
.adm-search button, .adm-btn { height: 38px; padding: 0 14px; border: none; border-radius: 6px; background: #111317; color: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.adm-btn:disabled { opacity: 0.45; cursor: default; }
.adm-btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.adm-btn.confirming { background: #d92d20; color: #fff; border-color: #d92d20; }
:root[data-theme="dark"] .adm-search button, :root[data-theme="dark"] .adm-btn:not(.ghost):not(.confirming) { background: #fff; color: #111317; }

.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.adm-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.adm-stats strong { display: block; font-family: "Poppins", sans-serif; font-size: 26px; font-weight: 900; color: #c99a06; }
:root[data-theme="dark"] .adm-stats strong { color: #fbbf24; }
.adm-stats span { font-size: 13px; color: var(--muted); }
.adm-matches { margin-top: 12px; }

.adm-table-wrap { margin-top: 14px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
/* Members table: its own smooth scroll box once the list gets long, with the column names pinned */
.adm-scroll { max-height: min(70vh, 720px); overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.adm-scroll thead th { position: sticky; top: 0; z-index: 2; background: var(--surface, #fff); box-shadow: inset 0 -1px 0 var(--line); }
.adm-scroll:focus-visible { outline: 2px solid #c99a06; outline-offset: 2px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14.5px; white-space: nowrap; }
.adm-table th { text-align: left; font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.adm-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: none; }
.adm-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.adm-table tr.is-new td { background: rgba(250, 204, 21, 0.08); }
.adm-wrapcell { white-space: normal; }
.adm-wrapcell pre { white-space: pre-wrap; font-size: 12px; color: var(--muted); margin-top: 4px; }
.adm-edit-col { width: 48px; }
.adm-edit { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--line); color: #c99a06; }
.adm-edit:hover { background: rgba(127, 127, 127, 0.12); }
.adm-user { display: flex; align-items: center; gap: 10px; }
.adm-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #2f6fd6; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.adm-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-avatar-lg { width: 64px; height: 64px; font-size: 20px; }
.adm-badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 5px; background: #2b2f36; color: #fff; vertical-align: 1px; }
.adm-badge.new { background: #facc15; color: #3b2f00; }
.adm-note { margin-top: 8px; }
.adm-errors { margin-top: 32px; }

.adm-user-head { display: flex; align-items: center; gap: 14px; margin: 10px 0 16px; }
.adm-flash { border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.adm-flash.good { background: #e7f7ee; color: #166534; }
.adm-flash.info { background: #eaf3fb; color: #1e4f7a; }
.adm-flash.bad { background: #fdecec; color: #b42318; }
.adm-cards { display: grid; gap: 14px; }
.adm-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; display: grid; gap: 12px; }
.adm-card > .adm-btn { justify-self: start; }
.adm-desc { color: var(--muted); font-size: 14px; line-height: 1.55; }
.adm-hint { color: var(--muted); font-size: 12.5px; }
.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adm-grid .span-2 { grid-column: 1 / -1; }
.adm-grid label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 5px; }
.adm-grid input, .adm-grid textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--input); color: var(--text); font: inherit; font-size: 15px; }
.adm-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.adm-switch span { display: flex; flex-direction: column; }
.adm-switch small { color: var(--muted); font-size: 12.5px; }
.adm-switch input { width: 40px; height: 22px; accent-color: #2f86c8; flex-shrink: 0; }
.adm-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.adm-pic { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.adm-pic-preview { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; background: #2f6fd6; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; flex-shrink: 0; }
.adm-pic-preview img { width: 100%; height: 100%; object-fit: cover; }
.adm-pic-controls { display: grid; gap: 8px; min-width: 0; }
.adm-row { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-list { padding-left: 20px; line-height: 1.8; }

@media (max-width: 900px) { .adm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
    .adm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adm-grid { grid-template-columns: 1fr; }
    .adm-search { width: 100%; }
    .adm-search input { flex: 1; width: auto; }
}

/* ---------- sponsor slots ---------- */
.sp-wrap { max-width: 860px; }
.sp-head h1 { font-family: "Poppins", sans-serif; font-weight: 900; font-size: clamp(28px, 4vw, 38px); margin-bottom: 6px; }
.sp-head { margin-bottom: 16px; }
.sp-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sp-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600; }
.sp-steps span { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--line); color: var(--text); font-size: 12px; font-weight: 800; }
.sp-steps li.now { color: var(--text); border-color: var(--text); }
.sp-steps li.now span { background: #111317; color: #fff; }
.sp-steps li.done span { background: #22a35a; color: #fff; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.sp-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.sp-bad { background: #fdecec; color: #b42318; }
.sp-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--page); border: 1px dashed var(--line); border-radius: 8px; padding: 12px 14px; margin: 12px 0; }
.sp-code code { font-size: 18px; font-weight: 800; letter-spacing: 0.3px; overflow-wrap: anywhere; }
.sp-search { display: flex; gap: 8px; margin: 10px 0 14px; }
.sp-search input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--input); color: var(--text); font: inherit; font-size: 16px; }
.sp-results { list-style: none; display: grid; gap: 8px; }
.sp-results li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.sp-results .mc-btn { height: 38px; display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.sp-mine { list-style: none; display: grid; gap: 6px; margin-bottom: 8px; }
.sp-tick { color: #16a34a; font-weight: 700; font-size: 13px; margin-left: 6px; }
.sp-slots { display: grid; gap: 10px; margin-top: 12px; }
.sp-slot { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.sp-slot.taken { opacity: 0.75; }
.sp-slot-n { font-family: "Poppins", sans-serif; font-weight: 900; font-size: 24px; text-align: center; color: #c99a06; }
.sp-slot-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-slot-body strong { font-size: 20px; }
.sp-slot-body small { color: var(--muted); }
.sp-state { font-size: 13px; color: var(--muted); }
.sp-state.open { color: #16a34a; font-weight: 700; }
.sp-buy:disabled { opacity: 0.55; cursor: default; }
.sp-note { margin-top: 12px; font-size: 13.5px; }
@media (max-width: 560px) {
    .sp-slot { grid-template-columns: 44px minmax(0, 1fr); }
    .sp-buy { grid-column: 1 / -1; width: 100%; }
    .sp-results li { flex-direction: column; align-items: stretch; }
}
.mc-card a.sp-btn.mc-btn-dark, .mc-card a.mc-btn-dark { color: #ffffff; }
.mc-card a.sp-btn.mc-btn-vote, .mc-card a.mc-btn-vote { color: #111317; }
.sp-per { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.sp-preview-label { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); margin: 10px 0 6px; }
.sp-preview { position: relative; height: 44px; border-radius: 8px; overflow: hidden; background: linear-gradient(90deg, #b8860b 0%, #f5c542 35%, #ffd76a 50%, #f5c542 65%, #b8860b 100%); }
.sp-preview .ad-item { color: #2a1d00; }

/* ---------- about ---------- */
.ab-wrap { max-width: 860px; }
.ab-head h1 { font-family: "Poppins", sans-serif; font-weight: 900; font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.ab-lead { color: var(--muted); font-size: 16.5px; line-height: 1.7; margin-bottom: 18px; }
.ab-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.ab-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.ab-stats dt { font-size: 12.5px; color: var(--muted); }
.ab-stats dd { font-family: "Poppins", sans-serif; font-weight: 900; font-size: 22px; font-variant-numeric: tabular-nums; }
.mc-card h3 { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 16px; margin: 12px 0 4px; }
@media (max-width: 600px) { .ab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- rewards ---------- */
.rw-wrap { max-width: 860px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rw-me { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rw-av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.rw-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rw-av-lg { width: 72px; height: 72px; font-size: 28px; }
.rw-me-body { flex: 1 1 220px; min-width: 0; }
.rw-me-body h2 { margin: 0; }
.rw-level { font-weight: 700; color: var(--blue); margin: 2px 0 8px; }
.rw-bar { display: block; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 6px 0 4px; }
.rw-bar i { display: block; height: 100%; background: #12b76a; border-radius: inherit; }
.rw-bar-lg { height: 10px; }
.rw-nums { display: flex; gap: 10px; }
.rw-nums div { background: var(--bg, transparent); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; min-width: 84px; }
.rw-nums dt { font-size: 12px; color: var(--muted); }
.rw-nums dd { font-family: "Poppins", sans-serif; font-weight: 900; font-size: 20px; font-variant-numeric: tabular-nums; }
.rw-perk { margin-bottom: 16px; }
.rw-tasks { list-style: none; padding: 0; margin: 12px 0 0; }
.rw-task { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rw-check { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.rw-task.done .rw-check { background: #12b76a; border-color: #12b76a; }
.rw-task-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rw-task-body strong { font-size: 15px; }
.rw-task.done .rw-task-body strong { color: var(--muted); }
.rw-count { font-size: 12.5px; color: var(--muted); }
.rw-task-end { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.rw-plus { font-family: "Poppins", sans-serif; font-weight: 900; color: #039855; min-width: 44px; text-align: right; }
.rw-done { font-size: 13px; font-weight: 700; color: #039855; }
.rw-act { padding: 6px 12px; font-size: 13.5px; cursor: pointer; }
.rw-levels { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rw-levels li { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.rw-levels li.on { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.rw-levels span { font-weight: 700; }
.rw-levels small, .rw-small { font-size: 12.5px; color: var(--muted); }
.sp-was { color: var(--muted); font-weight: 400; margin-right: 4px; }
@media (max-width: 700px) {
  .rw-levels { grid-template-columns: 1fr; }
  .rw-levels li { flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .rw-nums { width: 100%; }
  .rw-nums div { flex: 1; min-width: 0; }
  .rw-act { padding: 6px 10px; }
}

/* ---------- welcome ---------- */
.wl-wrap { max-width: 820px; }
.wl-intent { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; }
.wl-intent-q { font-weight: 700; }
.wl-choices { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.wl-choice { flex: 1 1 200px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.wl-choice:hover { border-color: var(--blue); }
.wl-choice.on { border-color: var(--blue); background: rgba(47, 134, 200, 0.1); box-shadow: 0 0 0 1px var(--blue) inset; }
.wl-choice strong { font-size: 15px; }
.wl-choice small { font-size: 12.5px; color: var(--muted); }
.wl-head h1 { font-family: "Poppins", sans-serif; font-weight: 900; font-size: clamp(28px, 4.5vw, 40px); margin: 6px 0 8px; }
.wl-pill { display: inline-block; background: #12b76a; color: #fff; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.wl-steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; counter-reset: wl; }
.wl-step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 18px 18px 64px; counter-increment: wl; }
.wl-step::before { content: counter(wl); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.wl-step.done::before { content: "\2713"; background: #12b76a; }
.wl-step h3 { font-family: "Poppins", sans-serif; font-weight: 900; font-size: 18px; margin: 4px 70px 4px 0; }
.wl-step p { color: var(--muted); margin: 0 0 12px; }
.wl-step.done p { margin: 0; }
.wl-pts { position: absolute; right: 18px; top: 18px; font-family: "Poppins", sans-serif; font-weight: 900; color: #039855; }
.wl-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.wl-btns .mc-btn { cursor: pointer; }
.wl-skip { text-align: center; color: var(--muted); }
.wl-skip a { font-weight: 700; }
@media (max-width: 600px) {
  .wl-intent { flex-direction: column; align-items: stretch; gap: 8px; }
  .wl-step { padding: 16px 16px 16px 58px; }
  .wl-step::before { left: 14px; top: 16px; }
  .wl-btns .mc-btn { flex: 1 1 auto; justify-content: center; text-align: center; }
}

/* Welcome and rewards buttons: links and labels styled as buttons, text centered both ways. */
.wl-btns .mc-btn, .rw-act {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 44px; padding: 0 20px; min-width: 150px;
    line-height: 1; text-align: center; text-decoration: none; white-space: nowrap; box-sizing: border-box;
}
.rw-act { height: 36px; min-width: 0; padding: 0 14px; }
@media (max-width: 600px) {
    .wl-btns { flex-direction: column; }
    .wl-btns .mc-btn { width: 100%; height: 46px; }
}
.wl-opt { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-family: "Poppins", Arial, Helvetica, sans-serif; font-size: 11.5px; font-weight: 700; vertical-align: 3px; }

/* refer a friend */
.rw-ref { display: flex; margin: 8px 0 4px; max-width: 520px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.rw-ref-link { flex: 1; min-width: 0; border: none; padding: 0 10px; height: 40px; font: inherit; font-size: 13.5px; color: var(--text); background: var(--surface); }
.rw-ref-copy { border-radius: 0; min-width: 96px; height: 40px; background: var(--blue); }
.rw-ref-copy:hover { background: #2673ad; }
.rw-goal { background: rgba(47, 134, 200, 0.1); color: var(--text); }
.wl-ref .rw-count { display: block; font-size: 12.5px; color: var(--muted); }
.rw-warn { display: block; color: #b54708 !important; margin-top: 2px; }

/* ---------- Vote and Save buttons on cards ---------- */
.mc-acts { display: flex; gap: 6px; }
.act-form { margin: 0; display: flex; flex: 1; }
.act-btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 34px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line);
    background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: 13.5px;
    line-height: 1; white-space: nowrap; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.act-btn:hover { border-color: var(--blue); color: var(--blue); }
.act-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.act-btn svg { flex-shrink: 0; }
.act-count { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.act-vote.on { background: #e7f7ee; border-color: #12b76a; color: #067647; cursor: default; }
.act-vote.on .act-count { color: #067647; }
.act-save.on { background: #fff6e0; border-color: #e0a800; color: #8a6100; }
.act-save.on .bm-fill { fill: currentColor; }
.act-btn.busy { opacity: 0.6; pointer-events: none; }
:root[data-theme="dark"] .act-vote.on { background: rgba(18, 183, 106, 0.15); color: #6ce9a6; }
:root[data-theme="dark"] .act-vote.on .act-count { color: #6ce9a6; }
:root[data-theme="dark"] .act-save.on { background: rgba(224, 168, 0, 0.15); color: #fdd56a; }
.act-big { height: 44px; padding: 0 18px; font-size: 15px; }
.mc-detail-actions .act-form { flex: 0 0 auto; }
@media (max-width: 900px) {
    .mc-acts .act-btn { height: 40px; font-size: 14px; }
}

/* Saved page */
.bm-wrap { max-width: 860px; }
.bm-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bm-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.bm-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.bm-main:hover strong { color: var(--blue); }
.bm-icon { width: 48px; height: 48px; border-radius: 8px; background: var(--line); object-fit: cover; flex-shrink: 0; }
.bm-text { display: flex; flex-direction: column; min-width: 0; }
.bm-text strong { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-text small { color: var(--muted); font-size: 13px; }
.bm-item .mc-acts { flex: 0 0 220px; }
@media (max-width: 600px) {
    .bm-item { flex-direction: column; align-items: stretch; }
    .bm-item .mc-acts { flex: none; }
    .bm-item .act-btn { height: 40px; }
}
/* Wide screens: the info column is narrow, so stack Vote above Save. */
@media (min-width: 901px) {
    .mc-row .mc-acts { flex-direction: column; gap: 6px; }
    .mc-row .act-form { flex: none; }
    .mc-row .act-btn { width: 100%; }
}

/* ---------- forms on content pages (contact, add, vote tester) ---------- */
.ct-form { display: grid; gap: 14px; }
.ct-form h2 { margin: 0; }
.ct-form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.ct-form input:not([type=checkbox]), .ct-form select, .ct-form textarea, .ds-search input, .ds-search select, .gm-form input, .md-line {
    width: 100%; box-sizing: border-box; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px;
    background: var(--surface); color: var(--text); font: inherit; font-weight: 400; font-size: 15px;
}
.ct-form textarea { height: auto; padding: 10px 12px; resize: vertical; }
.ct-form input:focus, .ct-form select:focus, .ct-form textarea:focus, .ds-search input:focus, .gm-form input:focus, .md-line:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-form .req, .req { color: #d92d20; }
.ct-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-send { justify-self: start; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; }
.ct-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.ad-tags { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; }
.ad-tags legend { font-weight: 700; font-size: 14px; padding: 0 4px; }
.ad-tags label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
@media (max-width: 600px) { .ct-grid { grid-template-columns: 1fr; } .ct-send { justify-self: stretch; } }

/* support and legal */
.sup-q { border-top: 1px solid var(--line); padding: 10px 0; }
.sup-q:first-of-type { border-top: none; }
.sup-q summary { cursor: pointer; font-weight: 700; }
.sup-q p { margin: 8px 0 0; color: var(--muted); }
.lg-doc h2 { margin-top: 18px; }
.lg-doc ul { padding-left: 20px; display: grid; gap: 6px; }
.lg-doc p, .lg-doc li { line-height: 1.65; }
.lg-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 12px; }
.lg-table th, .lg-table td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 6px; vertical-align: top; }

/* upcoming game pages */
.gm-head h1 { font-family: "Poppins", sans-serif; font-weight: 900; font-size: clamp(28px, 4.5vw, 40px); margin: 8px 0; }
.gm-pill { display: inline-block; background: #fff6e0; color: #8a6100; border: 1px solid #e0a800; font-weight: 800; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; }
.gm-form { display: flex; gap: 8px; margin: 6px 0 8px; }
.gm-form .mc-btn { flex-shrink: 0; display: inline-flex; align-items: center; }
.gm-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 0; }
.gm-types div { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.gm-types dt { font-weight: 800; margin-bottom: 4px; }
.gm-types dd { color: var(--muted); font-size: 14px; margin: 0; }
@media (max-width: 600px) { .gm-types { grid-template-columns: 1fr; } .gm-form { flex-direction: column; } .gm-form .mc-btn { justify-content: center; } }

/* discovery pages */
.ds-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.ds-tabs a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; }
.ds-tabs a.on, .ds-tabs a:hover { border-color: var(--blue); color: var(--blue); }
.ds-tabs a.on { background: rgba(47, 134, 200, 0.1); }
.ds-rank { width: 28px; text-align: center; font-family: "Poppins", sans-serif; font-weight: 900; color: var(--muted); flex-shrink: 0; }
.ds-list .bm-text .mc-tags { margin-top: 4px; }
.ds-list code { font-size: 12.5px; }
.ds-more { margin: 18px 0 0; color: var(--muted); text-align: center; }
.ds-more a { font-weight: 700; }
.ds-h2 { font-family: "Poppins", sans-serif; font-weight: 900; font-size: 20px; margin: 22px 0 10px; }
.ds-search { display: flex; gap: 8px; margin: 0 0 10px; }
.ds-search input { flex: 1; min-width: 0; }
.ds-search select { width: auto; flex-shrink: 0; }
.ds-search .mc-btn { flex-shrink: 0; display: inline-flex; align-items: center; }
.ds-terms { color: var(--muted); font-size: 14px; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ds-terms a { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); background: var(--surface); }
@media (max-width: 600px) {
  .ds-search { flex-wrap: wrap; }
  .ds-search input { flex-basis: 100%; }
  .ds-search select { flex: 1; }
  .ds-list .bm-item { position: relative; }
  .ds-rank { position: absolute; top: 12px; left: 6px; width: 22px; font-size: 13px; }
  .ds-list .bm-item:has(.ds-rank) .bm-main { padding-left: 20px; }
}

/* owner dashboard */
.db-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.db-actions .mc-btn { display: inline-flex; align-items: center; text-decoration: none; }
.db-stats { display: flex; gap: 14px; margin: 0; flex-shrink: 0; }
.db-stats div { display: flex; flex-direction: column; }
.db-stats dt { font-size: 12px; color: var(--muted); }
.db-stats dd { font-weight: 800; }
.db-badge { font-size: 13px; font-weight: 700; color: #8a6100; background: #fff6e0; border-radius: 999px; padding: 4px 10px; flex-shrink: 0; }
.db-verify { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; text-decoration: none; flex-shrink: 0; }
@media (max-width: 600px) { .db-actions .mc-btn { flex: 1 1 45%; justify-content: center; } }

/* tools */
.tl-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tl-card { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; height: 100%; box-sizing: border-box; }
.tl-card strong { font-family: "Poppins", sans-serif; font-size: 18px; font-weight: 900; color: var(--blue); }
.tl-card span { color: var(--muted); }
.tl-card:hover { border-color: var(--blue); }
@media (max-width: 600px) { .tl-grid { grid-template-columns: 1fr; } }
.ts-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ts-head h2 { margin: 0; overflow-wrap: anywhere; }
.ts-icon { width: 64px; height: 64px; border-radius: 8px; background: var(--line); image-rendering: pixelated; flex-shrink: 0; }
.ts-motd { margin-bottom: 12px; }
.ts-facts { margin-bottom: 12px; }
.mc-status.on { color: #12b76a; font-weight: 800; }
.mc-status.off { color: #d92d20; font-weight: 800; }
.md-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.md-color { width: 28px; height: 28px; border-radius: 6px; border: 2px solid var(--line); cursor: pointer; }
.md-style { height: 28px; min-width: 28px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; font-size: 13px; }
.md-tool label { font-weight: 700; font-size: 14px; display: block; margin: 8px 0 4px; }
.md-line { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
.md-label { font-weight: 700; font-size: 14px; margin: 14px 0 6px; }
.md-preview { background: #1e1e1e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='4' height='4' fill='%23262626'/%3E%3Crect x='4' y='4' width='4' height='4' fill='%23262626'/%3E%3C/svg%3E"); color: #aaaaaa; font-family: "VT323", ui-monospace, monospace; font-size: 20px; line-height: 1.2; padding: 12px 14px; border-radius: 6px; min-height: 52px; overflow-wrap: anywhere; }
.md-out code { overflow-wrap: anywhere; white-space: pre-wrap; font-size: 13px; }
.bn-preview { padding: 10px; background: var(--bg, transparent); border-bottom: 1px solid var(--line); overflow-x: auto; }
.bn-banner { max-width: 100%; height: auto; }

/* admin review and inbox */
.adm-review li, #inbox .adm-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.adm-msg { margin: 6px 0 0; white-space: pre-wrap; }
/* Long names or addresses must never widen the list past the screen. */
.bm-list { grid-template-columns: minmax(0, 1fr); }
.bm-item { min-width: 0; }
.bm-text small { overflow-wrap: anywhere; }

/* ---------- claim your server ---------- */
.cl-box { display: flex; align-items: center; gap: 16px; background: linear-gradient(90deg, rgba(47, 134, 200, 0.10), rgba(47, 134, 200, 0.03)); border: 1px solid rgba(47, 134, 200, 0.45); border-left: 4px solid var(--blue); border-radius: 8px; padding: 14px 16px; margin: 0 0 16px; }
.cl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cl-text strong { font-family: "Poppins", sans-serif; font-weight: 900; font-size: 16.5px; }
.cl-text span { color: var(--muted); font-size: 14px; }
.cl-btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; }
.cl-link { display: block; font-size: 12.5px; color: var(--muted); text-decoration: none; text-align: center; }
.cl-link strong { color: var(--blue); }
.cl-link:hover strong { text-decoration: underline; }
@media (max-width: 900px) { .mc-row > .mc-info > .cl-link { grid-column: 1 / -1; padding: 0 12px 10px; text-align: left; margin-top: -4px; } }
@media (max-width: 600px) { .cl-box { flex-direction: column; align-items: stretch; } .cl-btn { width: 100%; height: 46px; } }

/* /admin live updates indicator */
.adm-live { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12); font-size: 13px; font-weight: 700; color: var(--text); }
.adm-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.6); animation: adm-pulse 2s infinite; }
.adm-live.off .adm-live-dot { background: #f79009; animation: none; }
@keyframes adm-pulse { 0% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(18, 183, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); } }
@media (prefers-reduced-motion: reduce) { .adm-live-dot { animation: none; } }

/* /admin: where sign-ups came from */
.adm-src { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--line); white-space: nowrap; }
.adm-src-search { background: #e0f2fe; color: #075985; }
.adm-src-social { background: #ede9fe; color: #5b21b6; }
.adm-src-invite { background: #dcfce7; color: #166534; }
.adm-src-campaign { background: #fff6e0; color: #8a6100; }
.adm-src-website { background: #fce7f3; color: #9d174d; }
.adm-src-unknown { background: transparent; color: var(--muted); font-weight: 600; }
:root[data-theme="dark"] .adm-src:not(.adm-src-unknown):not(.adm-src-direct) { filter: brightness(0.85) saturate(1.2); }
.adm-sources { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin: 14px 0; }
.adm-sources h2 { font-size: 17px; margin: 0 0 10px; }
.adm-sources ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.adm-sources li { display: grid; grid-template-columns: minmax(90px, 180px) minmax(0, 1fr) 84px; align-items: center; gap: 10px; font-size: 14px; }
.adm-src-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-src-bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.adm-src-bar i { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.adm-src-n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.adm-src-n small { color: var(--muted); font-weight: 400; }
.adm-src-groups { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.adm-src-ai { background: #ecfdf3; color: #05603a; }
.adm-sources li { row-gap: 2px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.adm-sources li:last-child { border-bottom: none; }
.adm-src-who { grid-column: 1 / -1; font-size: 13px; color: var(--muted); line-height: 1.6; }
.adm-src-who .adm-link { font-weight: 700; }
.adm-src-more { display: inline; }
.adm-src-more summary { display: inline; cursor: pointer; color: var(--blue); font-weight: 700; }
.adm-src-said { background: #f3e8ff; color: #6b21a8; }
.adm-said-title { font-size: 15px; margin: 14px 0 8px; }
.wl-heard { margin-bottom: 16px; }
.wl-heard label { display: block; margin-bottom: 8px; }
.wl-heard-row { display: flex; gap: 8px; flex-wrap: wrap; }
.wl-heard-row select, .wl-heard-row input { height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; }
.wl-heard-row select { flex: 1 1 180px; }
.wl-heard-row input { flex: 1 1 180px; min-width: 0; }
.wl-heard-row .mc-btn { display: inline-flex; align-items: center; }
@media (max-width: 600px) { .wl-heard-row > * { flex: 1 1 100%; } .wl-heard-row .mc-btn { justify-content: center; } }
.adm-age { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.adm-age.yes { background: #dcfce7; color: #166534; }
.adm-age.unknown { color: var(--muted); font-weight: 600; }
:root[data-theme="dark"] .adm-age.yes { background: rgba(18, 183, 106, 0.18); color: #6ce9a6; }

/* /admin: maintenance mode switch */
.mt-admin { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin: 0 0 16px; }
.mt-admin.on { border-color: #f04438; background: rgba(240, 68, 56, 0.06); }
.mt-admin-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.mt-admin-head > div:nth-child(2) { flex: 1 1 280px; min-width: 0; }
.mt-admin-head h2 { font-size: 18px; margin: 0 0 4px; }
.mt-pill { flex-shrink: 0; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.6px; background: var(--line); color: var(--muted); margin-top: 2px; }
.mt-pill.on { background: #f04438; color: #fff; }
.mt-admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mt-admin-form { display: grid; grid-template-columns: minmax(0, 1fr) 200px auto; gap: 10px; align-items: end; margin-top: 14px; }
.mt-admin-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; }
.mt-admin-form input, .mt-admin-form select { height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; }
.adm-btn.mt-on { background: #b42318; border-color: #b42318; color: #fff; height: 40px; }
.adm-btn.mt-off { background: #12b76a; border-color: #12b76a; color: #fff; }
a.adm-btn { display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 700px) { .mt-admin-form { grid-template-columns: 1fr; } }
.mt-admin-form { grid-template-columns: 1fr; }
.mt-admin-form .mt-msg input { width: 100%; }
.mt-when { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 8px; margin: 0; }
.mt-when legend { font-size: 13px; font-weight: 700; padding: 0 4px; }
.mt-radio { display: flex !important; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600 !important; }
.mt-radio input[type=radio] { width: 16px; height: 16px; margin: 0; }
.mt-radio select { height: 36px; }
.mt-check { display: flex !important; align-items: center; gap: 8px; font-weight: 600 !important; }
.mt-check input { width: 16px; height: 16px; margin: 0; }
.mt-admin-form .mt-on { justify-self: start; }
@media (max-width: 600px) { .mt-admin-form .mt-on { justify-self: stretch; } .mt-radio select { flex: 1 1 140px; } }
@media (max-width: 600px) {
  .adm-head { flex-wrap: wrap; }
  .adm-search { width: 100%; display: flex; gap: 6px; }
  .adm-search input { flex: 1; min-width: 0; width: auto; }
  .adm-search button { flex-shrink: 0; }
}
/* The promise at the top of Privacy and Terms */
.lg-promise { margin: 0 0 16px; padding: 14px 16px; border: 2px solid #d92d20; border-radius: 10px; background: #fef3f2; color: #b42318; font-size: 15.5px; line-height: 1.6; }
.lg-promise strong { color: #b42318; }
:root[data-theme="dark"] .lg-promise { background: rgba(217, 45, 32, 0.12); color: #fda29b; border-color: #f97066; }
:root[data-theme="dark"] .lg-promise strong { color: #fda29b; }

/* ---------- reporting ---------- */
.mc-back { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rp-link { font-size: 13px; color: var(--muted) !important; text-decoration: underline; }
.rp-link:hover { color: #d92d20 !important; }
.rp-reasons { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; margin: 0; }
.rp-reasons legend { font-weight: 700; font-size: 14px; padding: 0 4px; }
.rp-reason { display: flex !important; align-items: center; gap: 10px; font-weight: 400 !important; padding: 4px 0; cursor: pointer; }
.rp-reason input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
.rp-admin { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin: 0 0 16px; }
.rp-admin.has { border-color: #f79009; }
.rp-admin h2 { font-size: 18px; margin: 0 0 8px; }
.rp-list { list-style: none; padding: 0; margin: 0; }
.rp-list > li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rp-main { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rp-auto { align-self: flex-start; font-size: 12px; font-weight: 700; color: #b42318; background: #fef3f2; border-radius: 999px; padding: 2px 8px; }
.rp-reasons-sum { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fef0c7; color: #93370d; }
.rp-tag.rp-broken, .rp-tag.rp-other { background: var(--line); color: var(--text); }
.rp-note { margin: 0; font-size: 13.5px; color: var(--muted); font-style: italic; overflow-wrap: anywhere; }
.adm-btn.rp-hide { background: #b42318; color: #fff; }
.rp-hidden { margin-top: 10px; }
.rp-hidden summary { cursor: pointer; font-weight: 700; }
.rp-hidden ul { list-style: none; padding: 0; margin: 8px 0 0; }
.rp-hidden li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
/* Boxes around form choices shouldn't grow past the screen */
fieldset.rp-reasons, fieldset.mt-when, fieldset.ad-tags { min-width: 0; }
.rp-reason { overflow-wrap: anywhere; }
.ct-form .rp-reason input[type="radio"] { width: 18px; height: 18px; padding: 0; border: none; flex: 0 0 18px; }

/* ---------- Hytale list ---------- */
.hy-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.hy-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 170px; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.hy-row:hover { border-color: #22a35a; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08); }
.hy-name { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; min-width: 0; }
.hy-name strong { font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
.hy-name:hover strong { color: var(--blue); }
.hy-join .mc-ip { max-width: 100%; }
.hy-side { display: grid; gap: 6px; }
.hy-side .mc-acts { flex-direction: column; }
.hy-side .act-form { flex: none; }
.hy-side .act-btn { width: 100%; }
.hy-detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.hy-facts { margin-top: 12px; }
@media (max-width: 900px) {
  .hy-row { grid-template-columns: 1fr; gap: 10px; }
  .hy-side .mc-acts { flex-direction: row; }
  .hy-side .act-form { flex: 1; }
  .hy-detail { grid-template-columns: 1fr; }
}
.hy-name { flex-direction: row !important; align-items: center; gap: 12px !important; }
.hy-name-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hy-tile, .hy-logo { flex-shrink: 0; border-radius: 10px; }
.hy-tile { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; letter-spacing: -0.5px; }
.hy-logo { object-fit: cover; background: var(--line); }
.db-logo { margin: 0; flex-shrink: 0; }
.db-logo .db-verify { cursor: pointer; }
/* Hytale: owner banner and screenshots */
.hy-banner { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 10px; margin: 0 0 16px; background: var(--line); }
.hy-shots { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hy-shots img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; }
/* Owner editor */
.ed-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ed-logo { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.ed-empty { display: inline-flex; align-items: center; justify-content: center; background: var(--line); color: var(--muted); font-size: 12px; }
.ed-img { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 0; }
.ed-img .mc-btn { display: inline-flex; align-items: center; cursor: pointer; }
.ed-banner { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 8px; display: block; margin: 8px 0; }
.ed-shots { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ed-shots img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; }
.ed-shots form { margin: 4px 0 0; }
.ed-remove { background: none; border: none; padding: 0; font: inherit; font-size: 13px; color: #b42318; cursor: pointer; text-decoration: underline; }
@media (max-width: 600px) { .hy-shots, .ed-shots { grid-template-columns: 1fr; } }

/* ---------- admin sidebar ---------- */
.adm-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; max-width: 1600px; margin: 0 auto; padding: 0 12px; }
.adm-has-side .adm-wrap { min-width: 0; max-width: none; margin: 0; }
.adm-side { position: sticky; top: 16px; display: grid; gap: 12px; padding-top: 24px; }
.as-tabs { display: none; }
.as-box { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 8px; }
.as-box h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin: 0; }
.as-big { margin: 0; font-size: 32px; font-weight: 800; line-height: 1; display: flex; flex-direction: column; gap: 4px; color: #c99a06; }
.as-big small { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.as-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; }
.as-nums div { background: var(--hover); border-radius: 8px; padding: 6px 4px; text-align: center; }
.as-nums dt { font-size: 11px; color: var(--muted); }
.as-nums dd { margin: 0; font-weight: 800; font-size: 16px; }
.as-write { display: block; text-align: center; padding: 10px; border-radius: 8px; background: #111317; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
:root[data-theme="dark"] .as-write { background: #fff; color: #111317; }
.as-small { margin: 0; font-size: 12.5px; color: var(--muted); }
.as-posts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.as-posts li { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 13px; }
.as-posts a { color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-posts a:hover { color: var(--blue); }
.as-link { display: block; font-size: 13.5px; font-weight: 600; color: var(--blue); text-decoration: none; padding: 2px 0; }
.as-link:hover, .as-link.on { text-decoration: underline; }
.as-nav { gap: 4px; }
.bl-status { flex-shrink: 0; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--line); color: var(--muted); }
.bl-status.published { background: #dcfce7; color: #166534; }
@media (max-width: 900px) {
  .adm-layout { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .adm-side { position: static; padding: 12px 12px 0; }
  .as-box { display: none; }
  .as-tabs { display: flex; gap: 6px; overflow-x: auto; }
  .as-tab { flex: 1 0 auto; text-align: center; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
  .as-tab b { color: var(--muted); font-weight: 700; margin-left: 4px; }
  .as-tab.on { background: #111317; color: #fff; border-color: #111317; }
  .as-tab.on b { color: #cbd5e1; }
  :root[data-theme="dark"] .as-tab.on { background: #fff; color: #111317; }
}

/* ---------- blog (public) ---------- */
.bl-wrap { max-width: 780px; }
.bl-page { font-family: var(--bl-font, inherit); }
.bl-head h1 { font-family: var(--bl-font, inherit); font-size: clamp(30px, 5vw, 44px); line-height: 1.15; font-weight: 800; margin: 8px 0 10px; }
.bl-meta { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.bl-summary { font-size: 18px; line-height: 1.6; color: var(--muted); border-left: 4px solid var(--bl-accent, var(--blue)); padding-left: 14px; margin: 14px 0 22px; }
.bl-body { font-size: 17px; line-height: 1.8; }
.bl-body p, .bl-body ul, .bl-body ol, .bl-body blockquote { margin: 0 0 18px; }
.bl-body h2, .bl-body h3 { font-family: var(--bl-font, inherit); color: var(--bl-accent, var(--text)); margin: 30px 0 10px; line-height: 1.3; }
.bl-body h2 { font-size: 26px; }
.bl-body h3 { font-size: 21px; }
.bl-body a { color: var(--bl-accent, var(--blue)); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.bl-body ul, .bl-body ol { padding-left: 24px; }
.bl-body li { margin: 4px 0; }
.bl-body li::marker { color: var(--bl-accent, var(--blue)); }
.bl-body blockquote { border-left: 4px solid var(--bl-accent, var(--blue)); padding: 6px 0 6px 16px; color: var(--muted); font-style: italic; }
.bl-body code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--hover); padding: 1px 6px; border-radius: 4px; }
.bl-back { margin-top: 30px; }
.bl-back a, .bl-more { color: var(--bl-accent, var(--blue)); font-weight: 700; text-decoration: none; }
.bl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.bl-item { border-top: 4px solid var(--bl-accent, var(--blue)); }
.bl-item h2 { margin: 0 0 4px; color: var(--text); }
.bl-item a { text-decoration: none; }
.bl-preview { background: #fef0c7; color: #93370d; text-align: center; padding: 10px 14px; font-size: 14px; }
.bl-preview a { color: #93370d; font-weight: 700; margin-left: 6px; }
/* blog (admin) */
.bl-form { display: grid; gap: 12px; }
.bl-form label { display: grid; gap: 5px; font-weight: 700; font-size: 13.5px; }
.bl-form input, .bl-form select, .bl-form textarea { padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--input, var(--surface)); color: var(--text); font: inherit; font-weight: 400; font-size: 15px; }
.bl-text { font-family: ui-monospace, Menlo, Consolas, monospace !important; font-size: 14px !important; line-height: 1.6; resize: vertical; }
.bl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.bl-help summary { cursor: pointer; font-weight: 700; font-size: 13.5px; }
.bl-help ul { margin: 8px 0 0; padding-left: 20px; font-size: 13.5px; display: grid; gap: 4px; }
.bl-publish { margin-top: 14px; }
.adm-btn.bl-go { background: #12b76a; color: #fff; }
.bl-del { color: #b42318 !important; }
.bl-adm-list { list-style: none; padding: 0; margin: 14px 0 0; }
.bl-adm-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
/* Blog editor fields never push past the screen */
.bl-form input, .bl-form select, .bl-form textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.bl-form label { min-width: 0; }
.bl-grid { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
/* Sidebar keeps to its column: long post titles shorten with "..." */
.adm-layout { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
.adm-side, .as-box { min-width: 0; }
.as-posts li { min-width: 0; }
.as-posts a { flex: 1 1 auto; min-width: 0; }
@media (max-width: 900px) { .adm-layout { grid-template-columns: minmax(0, 1fr); } }
.adm-layout { box-sizing: border-box; width: 100%; }
/* Rewards: the single referral task */
.rw-bar-full { height: 14px; margin: 14px 0 6px; }
.rw-bar-full.done i { background: #12b76a; }
.rw-status { margin: 0 0 10px; font-size: 14.5px; }
.rw-me-body h2 { margin-bottom: 6px; }
@media (max-width: 600px) { .rw-me { flex-direction: column; align-items: flex-start; gap: 12px; } .rw-av-lg { width: 52px; height: 52px; font-size: 22px; } .rw-me-body { flex-basis: auto; width: 100%; } }
.ed-remove-box { border-color: #fda29b; }
.ed-remove-btn { background: #fef3f2; color: #b42318; border: 1px solid #fda29b; display: inline-flex; align-items: center; cursor: pointer; }
.ed-remove-btn:hover { background: #fee4e2; }
.ed-remove-btn.confirming { background: #d92d20; color: #fff; }
.cl-text a { color: var(--blue); font-weight: 600; white-space: nowrap; }

/* Roblox genre links (list pages) and "More like it" links (game pages) */
.rg-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.rg-nav a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.rg-nav a.on, .rg-nav a:hover { border-color: var(--blue); color: var(--blue); }
.rg-nav a.on { background: rgba(47, 134, 200, 0.1); }
.rg-links { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.rg-links a { font-weight: 700; }
a.mc-chip { text-decoration: none; color: var(--blue); }
a.mc-chip:hover { border-color: var(--blue); }
.mc-detail-title .mc-rank-pill { margin-right: 4px; }
.ds-section { margin-top: 26px; }
.ds-section h2 { font-family: "Poppins", sans-serif; font-weight: 900; font-size: 20px; margin: 0 0 4px; }
.ds-section .ab-lead { margin: 0 0 10px; }
@media (max-width: 700px) {
  .rg-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .rg-nav::-webkit-scrollbar { display: none; }
}

/* ---------- Minecraft server list rows ----------
   Rank block | server (name, banner, address) | live stats (status, uptime, player bar, Vote, Save).
   The left edge shows the live status: green online, red offline, grey not checked yet. */
.sl-head, .sl-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 248px; }
.sl-head {
    background: #1d2129; color: #fff; font-family: "Poppins", sans-serif; font-weight: 800; font-size: 13px;
    letter-spacing: 0.04em; text-transform: uppercase; border-radius: 10px 10px 0 0; padding: 11px 0;
    border-bottom: 3px solid #3fae2f;
}
.sl-head span { padding: 0 18px; }
.sl-head span:first-child { text-align: center; padding: 0; }
.sl-list { list-style: none; display: grid; gap: 8px; margin: 8px 0 0; padding: 0; }
.sl-row {
    --sl-state: #98a2b3;
    background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--sl-state);
    border-radius: 10px; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.sl-row.sl-online { --sl-state: #3fae2f; }
.sl-row.sl-offline { --sl-state: #e5484d; }
.sl-row:hover { box-shadow: 0 8px 22px rgba(15, 23, 42, 0.09); border-color: var(--sl-state); border-left-color: var(--sl-state); }

/* The rank is a raised block; gold, silver and bronze for the top three. */
.sl-rank { display: flex; align-items: center; justify-content: center; border-right: 1px dashed var(--line); }
.sl-rank span {
    --c: #3b4250;
    display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 6px;
    background: var(--c); color: #fff; border-radius: 7px; font-family: "Poppins", sans-serif; font-weight: 900; font-size: 19px;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.22), inset 0 -4px 0 rgba(0, 0, 0, 0.3), 0 2px 0 rgba(0, 0, 0, 0.08);
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.sl-top-1 span { --c: #e0a526; }
.sl-top-2 span { --c: #9aa5b4; }
.sl-top-3 span { --c: #b9733a; }

.sl-main { padding: 14px 18px; min-width: 0; display: grid; gap: 10px; align-content: center; }
.sl-name { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.sl-name:hover strong { color: var(--blue); }
.sl-name-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sl-name-text strong { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.mc-tags .sl-ver { background: rgba(63, 174, 47, 0.14); color: #2f8a22; }
:root[data-theme="dark"] .mc-tags .sl-ver { color: #8be37b; }
.sl-server { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.sl-server .mc-banner, .sl-server .mc-ip { width: 468px; max-width: 100%; }

.sl-stats { border-left: 1px dashed var(--line); padding: 14px 16px; display: grid; gap: 10px; align-content: center; }
.sl-status { display: flex; align-items: center; gap: 7px; font-size: 14px; flex-wrap: wrap; }
.sl-status .mc-status { font-weight: 800; }
.sl-up { margin-left: auto; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.sl-led { width: 9px; height: 9px; border-radius: 50%; background: var(--sl-state); flex-shrink: 0; }
.sl-online .sl-led { box-shadow: 0 0 0 0 rgba(63, 174, 47, 0.55); animation: sl-pulse 2s ease-out infinite; }
@keyframes sl-pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 174, 47, 0.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(63, 174, 47, 0); } }
@media (prefers-reduced-motion: reduce) { .sl-online .sl-led { animation: none; } }

/* Players, with a segmented bar for how full the server is. */
.sl-players-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sl-players-top strong { font-family: "Poppins", sans-serif; font-size: 17px; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; }
.sl-bar { position: relative; height: 9px; margin-top: 5px; border-radius: 3px; background: rgba(127, 127, 127, 0.18); overflow: hidden; }
.sl-bar i { display: block; height: 100%; min-width: 3px; background: linear-gradient(180deg, #7fe36a, #3fae2f); }
.sl-bar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), var(--surface) calc(10% - 2px) 10%); }

/* Vote is the main button on each row. */
.sl-stats .mc-acts { gap: 6px; }
.sl-stats .act-vote:not(.on) { background: #3fae2f; border-color: #2f8f22; color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.sl-stats .act-vote:not(.on) .act-count { color: rgba(255, 255, 255, 0.85); }
.sl-stats .act-vote:not(.on):hover { background: #369a28; color: #fff; }
.sl-stats .cl-link { margin-top: -4px; }

@media (max-width: 900px) {
    .sl-head { display: none; }
    .sl-row { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "rank main" "stats stats"; }
    .sl-rank { grid-area: rank; align-items: flex-start; padding-top: 14px; border-right: none; }
    .sl-rank span { min-width: 38px; height: 38px; font-size: 16px; }
    .sl-main { grid-area: main; padding: 12px 12px 10px 4px; }
    .sl-stats { grid-area: stats; border-left: none; border-top: 1px dashed var(--line); padding: 10px 12px 12px; grid-template-columns: 1fr 1fr; column-gap: 14px; }
    .sl-stats > .mc-acts, .sl-stats > .cl-link { grid-column: 1 / -1; }
    .sl-status { align-self: center; }
    .sl-up { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 480px) {
    .sl-name-text strong { font-size: 16px; }
    .sl-name .mc-icon { width: 34px; height: 34px; }
}
.sl-mid { display: flex; align-items: center; gap: 22px; min-width: 0; }
.sl-spark { margin: 0 0 0 auto; flex-shrink: 0; display: grid; gap: 4px; justify-items: end; }
.sl-spark svg { display: block; color: #3fae2f; }
.sl-spark polygon { fill: currentColor; opacity: 0.14; }
.sl-spark polyline { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sl-spark figcaption { font-size: 12px; color: var(--muted); font-weight: 600; }
.sl-spark figcaption strong { color: var(--text); }
@media (max-width: 1100px) { .sl-spark { display: none; } }

/* Coming soon pages (/rust, /garrys-mod, /7-days-to-die): the game's art in grey behind the notify form. */
.cs-hero { position: relative; overflow: hidden; border-radius: 14px; margin: 6px 0 18px; background: #2b2f36; color: #fff; isolation: isolate; }
.cs-hero::before { content: ""; position: absolute; inset: 0; background: var(--cs-art) center / cover no-repeat; filter: grayscale(1) brightness(0.55); z-index: -2; }
.cs-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 33, 40, 0.92) 0%, rgba(30, 33, 40, 0.7) 55%, rgba(30, 33, 40, 0.35) 100%); z-index: -1; }
.cs-inner { padding: clamp(26px, 5vw, 52px) clamp(18px, 4vw, 44px); max-width: 640px; }
.cs-badge { display: inline-block; padding: 7px 14px; border-radius: 8px; background: rgba(255, 255, 255, 0.92); color: #3c4048; font-weight: 800; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.cs-hero h1 { font-family: "Poppins", sans-serif; font-weight: 900; font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin: 14px 0 10px; color: #fff; }
.cs-lead { font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.86); margin: 0 0 18px; }
.cs-form { max-width: 480px; }
.cs-form input { background: #fff; color: #1d2129; border-color: transparent; }
.cs-btn { background: #3fae2f; color: #fff; border: 1px solid #2f8f22; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.cs-btn:hover { background: #369a28; color: #fff; }
.cs-small { font-size: 13.5px; color: rgba(255, 255, 255, 0.72); margin: 8px 0 0; line-height: 1.55; }
.cs-small a { color: #fff; font-weight: 700; }
.cs-now { margin-top: 14px; }
.cs-on { background: rgba(63, 174, 47, 0.2); border: 1px solid #3fae2f; color: #e7f7ee; padding: 10px 12px; border-radius: 8px; }
.cs-hero .mc-flash { margin: 0 0 12px; }

/* "How did you find us?" answers on the admin pages: the brand logo on the left of a plain tag. */
.hd-ic { flex-shrink: 0; display: block; }
.hd-name { display: inline-flex; align-items: center; gap: 7px; }
.hd-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 7px; }
.hd-tag { background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.adm-said-under { margin-top: 5px; }
:root[data-theme="dark"] .adm-src.adm-src-said.hd-tag:not(.adm-src-unknown) { filter: none; }
/* Each answer in its own brand colours: a filled pill, with the logo redrawn in white where it
   would vanish on the brand colour. */
.hd-tag.hd-tiktok, .hd-tag.hd-x, .hd-tag.hd-youtube, .hd-tag.hd-discord, .hd-tag.hd-instagram, .hd-tag.hd-reddit { color: #fff; border-color: transparent; font-weight: 700; }
.hd-tag.hd-tiktok { background: #010101; box-shadow: -1.5px 0 0 #25F4EE, 1.5px 0 0 #FE2C55; }
.hd-tag.hd-x { background: #000; box-shadow: 0 0 0 1px #2f3336; }
.hd-tag.hd-youtube { background: linear-gradient(135deg, #ff1a1a, #cc0000); }
.hd-tag.hd-youtube .hd-ic path[fill="#FF0000"] { fill: #fff; }
.hd-tag.hd-youtube .hd-ic path[fill="#fff"] { fill: #e00000; }
.hd-tag.hd-discord { background: linear-gradient(135deg, #6b77f5, #5865F2); }
.hd-tag.hd-discord .hd-ic path { fill: #fff; }
.hd-tag.hd-instagram { background: linear-gradient(45deg, #feda75 0%, #fa7e1e 22%, #d62976 50%, #962fbf 78%, #4f5bd5 100%); }
.hd-tag.hd-instagram .hd-ic rect:first-of-type { fill: transparent; }
.hd-tag.hd-reddit { background: linear-gradient(135deg, #ff5a1f, #FF4500); }
.hd-tag.hd-reddit .hd-ic circle { fill: transparent; }
.hd-tag.hd-reddit .hd-ic path { fill: #fff; }
.hd-tag.hd-google { background: #fff; color: #3c4043; font-weight: 700; border-color: transparent; box-shadow: 0 0 0 1.5px #4285F4, 0 1px 3px rgba(66, 133, 244, 0.25); }
.hd-tag.hd-friend { background: #dcfce7; color: #166534; border-color: #86efac; font-weight: 700; }
.hd-tag.hd-server { background: #dbeafe; color: #1e40af; border-color: #93c5fd; font-weight: 700; }
.hd-tag.hd-other { background: #f1f5f9; color: #475569; border-color: #cbd5e1; font-weight: 700; }
:root[data-theme="dark"] .hd-tag.hd-friend { background: rgba(34, 197, 94, 0.16); color: #86efac; border-color: rgba(134, 239, 172, 0.4); }
:root[data-theme="dark"] .hd-tag.hd-server { background: rgba(59, 130, 246, 0.18); color: #93c5fd; border-color: rgba(147, 197, 253, 0.4); }
:root[data-theme="dark"] .hd-tag.hd-other { background: rgba(148, 163, 184, 0.16); color: #cbd5e1; border-color: rgba(203, 213, 225, 0.35); }

/* Report flag on every list card */
.act-btn.act-flag { flex: 0 0 auto; width: 38px; padding: 0; color: #d92d20; text-decoration: none; }
.act-btn.act-flag:hover { background: #fef3f2; border-color: #d92d20; color: #b42318; }
:root[data-theme="dark"] .act-btn.act-flag { color: #f97066; }
:root[data-theme="dark"] .act-btn.act-flag:hover { background: rgba(217, 45, 32, 0.15); }
@media (min-width: 901px) { .mc-row .act-flag { width: 100%; } }

/* Report feed on /admin */
.rf { margin-top: 18px; }
.rf h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.rf-count { background: #d92d20; color: #fff; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.rf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rf-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.rf-item.rf-new { border-color: #f97066; background: rgba(217, 45, 32, 0.05); }
.rf-item.rf-closed { opacity: 0.7; }
.rf-flag { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #fef3f2; color: #d92d20; }
:root[data-theme="dark"] .rf-flag { background: rgba(217, 45, 32, 0.18); color: #f97066; }
.rf-body { min-width: 0; flex: 1; }
.rf-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rf-name { font-weight: 800; }
.rf-note { margin: 6px 0 4px; font-style: italic; overflow-wrap: anywhere; }
.rf-item .adm-small { margin: 4px 0 0; }
.as-red { background: #d92d20; color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; margin-left: 4px; }

/* /sitemap (the page for people) */
.smp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.smp-sec h2 { font-size: 17px; margin: 0 0 8px; }
.smp-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.smp-links a { text-decoration: none; }
.smp-links a:hover { text-decoration: underline; }
.smp-wide .smp-links { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 16px; }
.smp-wide .smp-links li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
