@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap");

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #ffffff;
    font-family: "Montserrat", Arial, sans-serif;
}

/* =========================
   HOME PAGE
========================= */

.home-page {
    width: 100%;
    min-height: 100vh;
    background:
        linear-gradient(
            180deg,
            rgba(5, 10, 28, 0.18) 0%,
            rgba(5, 10, 28, 0.28) 48%,
            rgba(5, 10, 28, 0.62) 100%
        ),
        url("images/brotherhood-ro-hero-banner.png") center center / cover no-repeat,
        #10182d;
}

.home {
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.home-content {
    width: min(100%, 760px);
    margin-top: -8vh;
    text-align: center;
    text-shadow: 0 2px 9px rgba(0, 0, 0, 0.92);
}

.server-label {
    margin: 0 0 12px;
    color: #f8d57e;
    font-size: clamp(0.72rem, 2vw, 0.86rem);
    font-weight: 800;
    letter-spacing: 0.28em;
}

h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.15rem, 7vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.065em;
    line-height: 1;
    white-space: nowrap;
    text-shadow:
        0 2px 1px rgba(0, 0, 0, 0.65),
        0 6px 22px rgba(0, 0, 0, 0.72);
}

.tagline {
    margin: 23px auto 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(0.82rem, 1.8vw, 1.05rem);
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}

.home-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.create-account-button,
.download-client-button,
.wiki-button {
    display: inline-flex;
    min-width: 230px;
    min-height: 57px;
    padding: 0 27px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    color: #fff8df;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-decoration: none;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.60);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.create-account-button {
    border: 2px solid rgba(255, 236, 159, 0.95);
    background:
        linear-gradient(rgba(255, 255, 255, 0.20), transparent 42%),
        linear-gradient(135deg, #245da9, #102c63);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.47),
        0 5px 0 #07172f,
        0 12px 27px rgba(0, 0, 0, 0.48);
}

.download-client-button {
    border: 2px solid rgba(255, 225, 157, 0.96);
    background:
        linear-gradient(rgba(255, 255, 255, 0.22), transparent 42%),
        linear-gradient(135deg, #f3922c, #b64a0a);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.48),
        0 5px 0 #6c2607,
        0 12px 27px rgba(0, 0, 0, 0.48);
    text-shadow: 0 2px 2px rgba(70, 24, 1, 0.65);
}

.wiki-button {
    border: 2px solid rgba(177, 220, 255, 0.95);
    background:
        linear-gradient(rgba(255, 255, 255, 0.20), transparent 42%),
        linear-gradient(135deg, #4b7fd1, #27457e);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.47),
        0 5px 0 #162848,
        0 12px 27px rgba(0, 0, 0, 0.48);
}

.create-account-button:hover,
.download-client-button:hover,
.wiki-button:hover {
    filter: brightness(1.14);
    transform: translateY(-2px);
}

.create-account-button:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.47),
        0 7px 0 #07172f,
        0 16px 31px rgba(0, 0, 0, 0.52);
}

.download-client-button:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.48),
        0 7px 0 #6c2607,
        0 16px 31px rgba(0, 0, 0, 0.52);
}

.wiki-button:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.47),
        0 7px 0 #162848,
        0 16px 31px rgba(0, 0, 0, 0.52);
}

.create-account-button:active,
.download-client-button:active,
.wiki-button:active {
    transform: translateY(3px);
}

.create-account-button:active {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.47),
        0 2px 0 #07172f,
        0 7px 16px rgba(0, 0, 0, 0.45);
}

.download-client-button:active {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.48),
        0 2px 0 #6c2607,
        0 7px 16px rgba(0, 0, 0, 0.45);
}

.wiki-button:active {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.47),
        0 2px 0 #162848,
        0 7px 16px rgba(0, 0, 0, 0.45);
}

.note {
    margin: 21px 0 0;
    color: rgba(255, 255, 255, 0.83);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.5;
}

/* =========================
   WIKI PAGE
========================= */

body.wiki-page {
    overflow: auto;
    min-height: 100vh;
    background:
        linear-gradient(
            180deg,
            rgba(5, 10, 28, 0.18) 0%,
            rgba(5, 10, 28, 0.28) 48%,
            rgba(5, 10, 28, 0.62) 100%
        ),
        url("images/brotherhood-ro-hero-banner.png") center center / cover fixed no-repeat,
        #10182d;
    color: #ffffff;
}

.wiki-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 18px;
    background: rgba(246, 246, 246, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(2px);
}

.wiki-header-left,
.wiki-header-right {
    display: flex;
    align-items: center;
}

.wiki-header-right {
    gap: 18px;
}

.wiki-logo {
    display: inline-block;
    padding: 3px 6px;
    background: #3366cc;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.wiki-top-nav {
    display: flex;
    gap: 12px;
}

.wiki-top-nav a {
    color: #444;
    font-size: 0.85rem;
    text-decoration: none;
}

.wiki-top-nav a:hover {
    text-decoration: underline;
}

.wiki-search input {
    width: 230px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    background: #f9f9f9;
    color: #333;
    font-size: 0.9rem;
}

.wiki-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 200px;
    gap: 24px;
    align-items: start;
    min-height: calc(100vh - 57px);
    padding: 24px;
}

.wiki-sidebar {
    padding: 18px;
    background: rgba(245, 245, 245, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 10px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.20),
        0 18px 42px rgba(0, 0, 0, 0.34);
}

.wiki-back-link {
    display: inline-block;
    margin-bottom: 14px;
    color: #3366cc;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.wiki-back-link:hover {
    text-decoration: underline;
}

.wiki-tab {
    display: block;
    width: 100%;
    min-height: 32px;
    margin-bottom: 8px;
    padding: 7px 12px;
    border: 1px solid #6ea4e3;
    border-radius: 4px;
    background: rgba(248, 248, 248, 0.96);
    box-shadow: none;
    color: #2f6db5;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0;
    text-decoration: none;
    text-shadow: none;
    cursor: pointer;
    appearance: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wiki-tab:hover {
    background: #eef4fb;
    border-color: #5c95da;
}

.wiki-tab:focus,
.wiki-tab:active {
    outline: none;
    box-shadow: none;
}

.wiki-tab.active {
    background: #e8f1fb;
    color: #295b9a;
    border-color: #5c95da;
}

.wiki-main {
    padding: 0;
}

.wiki-content {
    background: rgba(245, 245, 245, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 10px;
    padding: 24px;
    color: #222;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.20),
        0 18px 42px rgba(0, 0, 0, 0.34);
}

.wiki-content h1,
.wiki-content h2 {
    color: #222;
    text-shadow: none;
    white-space: normal;
}

.wiki-content h1 {
    margin: 0 0 20px;
    font-size: 2rem;
}

.wiki-content h2 {
    margin: 0 0 14px;
    font-size: 1.05rem;
    scroll-margin-top: 80px;
}

.info-table,
.reborn-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 22px;
    background: #dfe5ec;
}

.info-table td,
.reborn-table td,
.reborn-table th {
    border: 1px solid #aab4c0;
    padding: 10px 12px;
    color: #2a2f36;
    text-shadow: none;
    vertical-align: top;
}

.info-table td {
    background: #e4e9ef;
}

.reborn-table th {
    background: #d8dee6;
    font-weight: 700;
    text-align: center;
}

.reborn-table td {
    background: #e8edf3;
    text-align: center;
}

.reborn-table tr:nth-child(even) td {
    background: #e1e7ee;
}

.info-table ul {
    margin: 0;
    padding-left: 24px;
    line-height: 1.55;
}

.intro-image-cell {
    width: 280px;
    background: #e4e9ef;
    text-align: center;
    vertical-align: middle;
}

.intro-image {
    max-width: 140px;
    height: auto;
    display: inline-block;
}

.wiki-toc {
    padding: 18px;
    background: rgba(8, 18, 43, 0.84);
    border: 1px solid rgba(177, 220, 255, 0.18);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.30);
}

.wiki-toc h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
}

.wiki-toc a {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    text-decoration: none;
}

.wiki-toc a:hover {
    color: #9fcbff;
    text-decoration: underline;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    .wiki-layout {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .wiki-toc {
        display: none;
    }
}

@media (max-width: 860px) {
    .wiki-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .wiki-header-right {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .wiki-search input {
        width: 100%;
    }

    .wiki-layout {
        grid-template-columns: 1fr;
    }

    .info-table,
    .info-table tbody,
    .info-table tr,
    .info-table td {
        display: block;
        width: 100%;
    }

    .reborn-table {
        display: block;
        overflow-x: auto;
    }

    .intro-image-cell {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .home {
        padding: 20px;
    }

    .home-content {
        width: 100%;
        margin-top: -10vh;
    }

    .server-label {
        letter-spacing: 0.19em;
    }

    h1 {
        font-size: clamp(1.8rem, 9vw, 3rem);
        letter-spacing: -0.075em;
    }

    .tagline {
        max-width: 330px;
        white-space: normal;
    }

    .home-buttons {
        flex-direction: column;
        align-items: center;
        gap: 13px;
    }

    .create-account-button,
    .download-client-button,
    .wiki-button {
        width: min(100%, 310px);
    }
}

@media (max-width: 360px) {
    h1 {
        font-size: 1.65rem;
        letter-spacing: -0.08em;
    }

    .tagline {
        font-size: 0.82rem;
    }

    .note {
        font-size: 0.74rem;
    }
}
/* Wiki guide library: preserves the existing theme. */
.wiki-group-title{color:#395473;font-size:.73rem;letter-spacing:.08em;margin:22px 0 10px}
.wiki-content{line-height:1.65;overflow-wrap:anywhere}.wiki-content h2{margin:28px 0 14px;font-size:1.2rem}.wiki-content h3{color:#294e7c;margin-top:22px}
.wiki-content table{width:100%;border-collapse:collapse;margin:18px 0;display:block;overflow-x:auto;background:#e8edf3}
.wiki-content td,.wiki-content th{border:1px solid #aab4c0;padding:9px 12px;vertical-align:top;color:#2a2f36;min-width:70px}.wiki-content th{background:#d8dee6}
.wiki-content a{color:#245caa}.wiki-source-image{max-width:100%;height:auto;vertical-align:middle}.wiki-notice{border-left:4px solid #d29a32;background:#fff1cd;padding:12px 16px;color:#62450b}.wiki-attribution{border-top:1px solid #bac4cf;padding-top:16px;margin-top:32px;font-size:.75rem;color:#596879}.wiki-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.wiki-tab:focus-visible{outline:3px solid #3366cc;outline-offset:2px}.wiki-search button{padding:9px;border:1px solid #6ea4e3;border-radius:4px;background:#e8f1fb;color:#295b9a}.wiki-sidebar,.wiki-toc{max-height:90vh;overflow-y:auto;position:sticky;top:20px}
@media(max-width:860px){.wiki-sidebar,.wiki-toc{position:static;max-height:none}.wiki-search{display:flex;gap:6px}.wiki-header-right{display:block}}
