:root {
    color-scheme: dark;

    --bg: #02070c;
    --panel: #06131f;
    --ice: #72ddff;
    --text: #f2f8fb;
    --muted: #8ea5b3;
    --line: rgba(121, 205, 246, .16);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    color: var(--text);

    background:
        linear-gradient(
            rgba(2, 7, 12, .72),
            rgba(2, 7, 12, .88)
        ),
        url("/assets/home/hero-northrane.png")
        center center / cover
        fixed
        no-repeat;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


/* HEADER */

.topbar {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 100;

    min-height: 72px;

    background:
        rgba(1, 8, 14, .88);

    border-bottom:
        1px solid var(--line);

    backdrop-filter: blur(10px);
}

.topbar-inner {
    width:
        min(1250px, calc(100% - 40px));

    min-height: 72px;

    margin: auto;

    display: flex;

    align-items: center;
    justify-content: space-between;
}

.mini-logo {
    display: flex;

    align-items: center;

    gap: 10px;

    text-decoration: none;
}

.mini-rune {
    display: grid;

    place-items: center;

    width: 35px;
    height: 39px;

    clip-path:
        polygon(
            50% 0,
            95% 20%,
            83% 80%,
            50% 100%,
            17% 80%,
            5% 20%
        );

    color: #041019;

    background:
        linear-gradient(
            155deg,
            #d8f8ff,
            #62d7ff
        );

    font-weight: 1000;
}

.mini-logo > span:last-child {
    display: flex;
    flex-direction: column;
}

.mini-logo strong {
    font-size: 13px;
    letter-spacing: .18em;
}

.mini-logo small {
    margin-top: 2px;

    color: #708897;

    font-size: 7px;
    letter-spacing: .14em;
}

.main-nav {
    display: flex;

    align-items: center;

    gap: 22px;
}

.main-nav a {
    color: #9eb3bf;

    text-decoration: none;

    font-size: 12px;
}

.main-nav a:hover,
.main-nav .active,
.main-nav .is-active {
    color: #fff;
}

.register-link {
    padding: 9px 14px;

    border:
        1px solid rgba(113, 214, 255, .40);
}


/* COMPACT PAGE */

.compact-play {
    min-height: 100vh;

    display: flex;

    align-items: center;

    padding:
        105px 24px 28px;
}

.compact-shell {
    width:
        min(1380px, 100%);

    margin: auto;
}

.compact-heading {
    margin-bottom: 22px;

    text-align: center;
}

.section-label {
    color: var(--ice);

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .22em;

    text-transform: uppercase;
}

.compact-heading h1 {
    margin: 7px 0 0;

    font-size:
        clamp(36px, 4vw, 58px);

    line-height: .95;

    letter-spacing: -.045em;

    text-transform: uppercase;
}

.compact-heading p {
    margin: 9px 0 0;

    color: var(--muted);

    font-size: 13px;
}


/* CARDS */

.compact-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 1px;

    background:
        var(--line);

    border:
        1px solid var(--line);
}

.compact-card {
    min-height: 330px;

    display: flex;

    flex-direction: column;

    padding: 24px;

    background:
        linear-gradient(
            155deg,
            rgba(7, 23, 37, .96),
            rgba(2, 10, 16, .96)
        );

    backdrop-filter:
        blur(8px);
}

.compact-number {
    color:
        rgba(105, 218, 255, .48);

    font-family:
        Georgia,
        serif;

    font-size: 19px;
}

.compact-card h2 {
    margin: 58px 0 10px;

    font-size: 21px;
}

.compact-card p {
    min-height: 55px;

    margin: 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.6;
}

.compact-button {
    min-height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-top: auto;

    padding:
        0 15px;

    color: #041019;

    background:
        linear-gradient(
            135deg,
            #d2f7ff,
            #66d8ff 56%,
            #389fd5
        );

    text-decoration: none;

    font-size: 11px;
    font-weight: 900;

    text-transform: uppercase;
}


/* REALMLIST */

.compact-realmlist {
    margin-top: auto;

    border:
        1px solid rgba(102, 214, 255, .24);

    background:
        #020a10;
}

.compact-realmlist code {
    display: block;

    padding: 11px;

    color: #74ddff;

    font-family:
        Consolas,
        monospace;

    font-size: 10px;

    white-space: nowrap;

    overflow-x: auto;
}

.compact-realmlist button {
    width: 100%;

    min-height: 38px;

    border: 0;
    border-top:
        1px solid rgba(102, 214, 255, .18);

    color: #def7ff;

    background:
        rgba(28, 117, 158, .30);

    font: inherit;

    font-size: 10px;
    font-weight: 900;

    cursor: pointer;
}

.realmlist-card small {
    margin-top: 7px;

    color: #607a89;

    font-size: 9px;
}


/* EXE / READY */

.exe-box {
    margin-top: auto;

    padding: 13px;

    border:
        1px solid rgba(112, 207, 248, .20);

    color: #8ddfff;

    background:
        #020a10;

    font-family:
        Consolas,
        monospace;

    font-size: 12px;

    text-align: center;
}

.ready-text {
    margin-top: auto;

    padding: 13px;

    border-left:
        2px solid #60d8ff;

    color: #dff5fc;

    background:
        rgba(31, 119, 159, .13);

    font-size: 12px;
    font-weight: 800;
}


/* FOOTER */

.site-footer {
    display: none;
}


/* RESPONSIVE */

@media (max-width: 1150px) {

    .compact-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .compact-play {
        align-items: flex-start;
    }

}

@media (max-width: 760px) {

    .main-nav > a:not(.register-link) {
        display: none;
    }

    .compact-play {
        padding:
            92px 14px 20px;
    }

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

    .compact-card {
        min-height: 260px;
    }

}

/* =========================================================
   FAQ / SUPPORT
   ========================================================= */

.faq-section {
    width: min(1180px, calc(100% - 40px));
    margin: 70px auto 90px;
}

.faq-heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.faq-heading h2 {
    margin: 10px 0 0;

    font-size: clamp(38px, 5vw, 64px);
    line-height: .95;
    letter-spacing: -.045em;

    text-transform: uppercase;
}

.faq-heading p {
    margin: 17px 0 0;

    color: var(--muted);

    line-height: 1.7;
}

.faq-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 1px;

    background: var(--line);

    border: 1px solid var(--line);
}

.faq-item {
    background:
        linear-gradient(
            145deg,
            rgba(7, 23, 37, .97),
            rgba(2, 10, 16, .97)
        );
}

.faq-item summary {
    min-height: 72px;

    display: flex;

    align-items: center;

    padding: 0 24px;

    cursor: pointer;

    color: #e9f7fc;

    font-size: 14px;
    font-weight: 800;

    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";

    margin-left: auto;

    color: var(--ice);

    font-size: 22px;
    font-weight: 300;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 0 24px 24px;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.7;
}

.faq-answer p {
    margin: 0 0 12px;
}

.faq-answer code {
    display: inline-block;

    padding: 10px 12px;

    color: #7ee3ff;

    background: #020a10;

    border: 1px solid rgba(102, 214, 255, .20);

    font-family: Consolas, monospace;
    font-size: 12px;
}

.faq-answer strong {
    color: #dff6ff;
}

.faq-answer a {
    color: var(--ice);

    text-decoration: none;

    font-weight: 800;
}

.support-panel {
    margin-top: 28px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 28px 32px;

    border:
        1px solid rgba(110, 213, 255, .18);

    background:
        linear-gradient(
            120deg,
            rgba(20, 86, 116, .18),
            rgba(3, 11, 18, .94)
        );
}

.support-small {
    color: var(--ice);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: .19em;
}

.support-panel h3 {
    margin: 6px 0 0;

    font-size: 25px;
}

.support-panel p {
    margin: 8px 0 0;

    color: var(--muted);

    font-size: 13px;
}

.support-button {
    flex: 0 0 auto;

    min-height: 44px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0 18px;

    border:
        1px solid rgba(106, 216, 255, .30);

    color: #e7f7fc;

    background:
        rgba(24, 93, 124, .20);

    text-decoration: none;

    font-size: 11px;
    font-weight: 900;

    text-transform: uppercase;
}

@media (max-width: 760px) {

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

    .support-panel {
        align-items: stretch;

        flex-direction: column;
    }

    .support-button {
        width: 100%;
    }
}

/* ===== PLAY LAYOUT FINAL FIX ===== */

main.compact-play {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
}

main.compact-play > .compact-shell {
    width: min(1380px, calc(100% - 40px)) !important;
    min-height: 100vh !important;

    margin: 0 auto !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;

    padding: 100px 0 40px !important;
}

main.compact-play > .faq-section {
    display: block !important;

    width: min(1180px, calc(100% - 40px)) !important;

    margin: 0 auto !important;
    padding: 90px 0 110px !important;

    clear: both !important;

    border-top: 1px solid var(--line);
}

@media (max-width: 760px) {

    main.compact-play > .compact-shell {
        width: calc(100% - 28px) !important;
        min-height: auto !important;

        padding: 95px 0 55px !important;
    }

    main.compact-play > .faq-section {
        width: calc(100% - 28px) !important;

        padding: 65px 0 75px !important;
    }
}


/* DOWNLOAD OPTIONS */

.download-actions {
    margin-top: auto;

    display: grid;
    gap: 8px;
}

.download-actions .compact-button {
    margin-top: 0;
    width: 100%;
}

.download-actions .torrent-button {
    color: #dff7ff;

    border: 1px solid rgba(105, 216, 255, .30);

    background:
        rgba(24, 105, 143, .24);
}

.download-actions .torrent-button:hover {
    background:
        rgba(35, 138, 184, .34);
}

/* Northrane uploaded logo */
.mini-rune-logo {
    width: 36px;
    height: 40px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}


/* PLAYER GUIDE ENTRY */
.guide-entry {
    margin: 22px 0 26px;
}

.guide-entry-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 13px 22px;
    border: 1px solid rgba(109, 216, 255, .45);
    border-radius: 6px;
    background: rgba(11, 46, 69, .82);
    color: #d8f5ff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

.guide-entry-button:hover {
    background: rgba(24, 84, 119, .92);
    border-color: #8cdeff;
}

@media (max-width: 760px) {
    .guide-entry-button {
        width: 100%;
        padding: 13px 12px;
        text-align: center;
    }
}
