:root {
    color-scheme: dark;

    --bg: #02070c;
    --bg-soft: #04101a;
    --ice: #75dcff;
    --ice-bright: #cef5ff;
    --text: #f3f9fc;
    --muted: #93a9b7;
    --line: rgba(124, 203, 242, .16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;

    color: var(--text);
    background: var(--bg);

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

a {
    color: inherit;
}

.seo-only {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    clip: rect(0,0,0,0);

    white-space: nowrap;
}


/* =========================================================
   HEADER
   ========================================================= */

.topbar {
    position: fixed;

    z-index: 100;

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

    min-height: 72px;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 5, 9, .90),
            rgba(0, 6, 11, .67)
        );

    border-bottom:
        1px solid rgba(184, 226, 247, .10);

    backdrop-filter:
        blur(10px);
}

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

    min-height: 72px;

    margin: auto;

    display: flex;

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

.mini-logo {
    display: flex;

    align-items: center;

    gap: 11px;

    text-decoration: none;
}

.mini-rune {
    display: grid;

    place-items: center;

    width: 36px;
    height: 40px;

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

    color: #04101a;

    background:
        linear-gradient(
            155deg,
            #d8f8ff,
            #60d4ff
        );

    font-weight: 1000;
}

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

    flex-direction: column;
}

.mini-logo strong {
    font-size: 13px;

    letter-spacing: .19em;
}

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

    color: #718b9c;

    font-size: 7px;

    letter-spacing: .15em;
}

.main-nav {
    display: flex;

    align-items: center;

    gap: 24px;
}

.main-nav a {
    color:
        rgba(225, 241, 248, .72);

    text-decoration: none;

    font-size: 12px;

    transition:
        color .2s,
        border-color .2s,
        background .2s;
}

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

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

    border:
        1px solid rgba(112, 204, 247, .20);
}

.register-link {
    padding: 10px 15px;

    border:
        1px solid rgba(124, 217, 255, .45);

    background:
        rgba(42, 136, 181, .13);
}


/* =========================================================
   HERO
   ========================================================= */

.hero-v2 {
    position: relative;

    min-height: 900px;
    height: 100vh;

    display: flex;

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

    overflow: hidden;

    background:
        url("/assets/home/hero-northrane.png")
        center center / cover
        no-repeat;
}

.hero-dark {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 4, 8, .06) 0%,
            rgba(0, 4, 8, .03) 35%,
            rgba(0, 4, 8, .18) 61%,
            rgba(1, 7, 12, .86) 89%,
            #02070c 100%
        );
}

.hero-v2-content {
    position: relative;

    z-index: 2;

    width:
        min(720px, calc(100% - 40px));

    margin-bottom: 82px;

    text-align: center;
}

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

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

    letter-spacing: .22em;

    text-transform: uppercase;
}

.hero-v2-content h2 {
    margin: 14px 0 0;

    font-size:
        clamp(45px, 5.3vw, 76px);

    line-height: .94;

    letter-spacing: -.05em;

    text-transform: uppercase;

    text-shadow:
        0 8px 40px rgba(0,0,0,.70);
}

.hero-description {
    max-width: 590px;

    margin: 22px auto 0;

    color:
        rgba(227, 241, 248, .84);

    font-size: 16px;
    line-height: 1.7;

    text-shadow:
        0 2px 14px rgba(0,0,0,.95);
}

.hero-buttons,
.community-actions {
    display: flex;

    justify-content: center;

    gap: 11px;

    margin-top: 28px;
}

.ice-button,
.ghost-button {
    min-height: 48px;

    display: inline-flex;

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

    padding: 0 23px;

    text-decoration: none;

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

    letter-spacing: .07em;

    text-transform: uppercase;
}

.ice-button {
    color: #031019;

    background:
        linear-gradient(
            135deg,
            #d5f7ff,
            #67d8ff 55%,
            #3aa6dc
        );

    box-shadow:
        0 14px 40px
        rgba(71, 196, 246, .19);
}

.ghost-button {
    border:
        1px solid rgba(175, 225, 248, .30);

    color: #e8f7fd;

    background:
        rgba(3, 12, 20, .46);

    backdrop-filter:
        blur(7px);
}

.hero-meta {
    display: flex;

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

    flex-wrap: wrap;

    gap: 8px 17px;

    margin-top: 22px;

    color:
        rgba(183, 207, 220, .67);

    font-size: 10px;
}

.online-dot {
    width: 7px;
    height: 7px;

    display: inline-block;

    border-radius: 50%;
}

.online-dot.online {
    background: #69efa9;

    box-shadow:
        0 0 12px rgba(105, 239, 169, .72);
}

.online-dot.offline {
    background: #ff7180;
}


/* =========================================================
   REALM LINE
   ========================================================= */

.realm-line {
    min-height: 54px;

    display: flex;

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

    flex-wrap: wrap;

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

    background:
        #03101a;
}

.realm-line > * {
    min-height: 54px;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 0 27px;

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

    color: #718d9e;

    font-size: 10px;
}

.realm-line > *:last-child {
    border-right: 0;
}

.realm-line strong {
    color: #dceff7;
}


/* =========================================================
   GLOBAL SECTIONS
   ========================================================= */

.portal-section,
.news-v2,
.play-section {
    width:
        min(1200px, calc(100% - 48px));

    margin: auto;

    padding:
        115px 0;
}

.portal-title,
.play-heading h2 {
    margin: 13px 0 0;

    font-size:
        clamp(42px, 5vw, 70px);

    line-height: .95;

    letter-spacing: -.05em;

    text-transform: uppercase;
}

.portal-lead {
    max-width: 720px;

    margin: 24px 0 0;

    color: var(--muted);

    font-size: 16px;
    line-height: 1.75;
}


/* =========================================================
   INTRO
   ========================================================= */

.intro-columns {
    display: grid;

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

    gap: 1px;

    margin-top: 55px;

    background:
        var(--line);
}

.intro-columns article {
    min-height: 300px;

    padding: 32px;

    background:
        linear-gradient(
            145deg,
            #061522,
            #020a10
        );
}

.intro-columns article > span,
.play-number {
    color:
        rgba(104, 216, 255, .56);

    font-family:
        Georgia,
        serif;

    font-size: 16px;
}

.intro-columns h3 {
    margin: 115px 0 13px;

    font-size: 22px;
}

.intro-columns p {
    margin: 0;

    color: #829aa9;

    line-height: 1.7;
}


/* =========================================================
   STORY SECTIONS
   ========================================================= */

.story-section {
    min-height: 650px;

    display: grid;

    grid-template-columns:
        1fr 1fr;

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

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

    background: #030b12;
}

.story-visual {
    min-height: 650px;

    background:
        url("/assets/home/hero-northrane.png")
        center / cover
        no-repeat;
}

.story-visual-lich {
    background-position: 21% center;
}

.story-visual-citadel {
    background-position: 79% center;
}

.story-copy {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding:
        clamp(45px, 7vw, 110px);
}

.story-copy h2 {
    margin: 14px 0 0;

    font-size:
        clamp(40px, 4.7vw, 68px);

    line-height: .95;

    letter-spacing: -.045em;

    text-transform: uppercase;
}

.story-copy p {
    max-width: 540px;

    margin: 24px 0 0;

    color: #91a8b6;

    font-size: 16px;
    line-height: 1.8;
}

.story-copy > a {
    margin-top: 27px;

    color: var(--ice);

    text-decoration: none;

    font-size: 13px;
    font-weight: 900;
}


/* =========================================================
   NEWS
   ========================================================= */

.news-v2-header {
    display: flex;

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

    gap: 30px;

    margin-bottom: 45px;
}

.news-v2-header h2 {
    margin: 12px 0 0;

    font-size:
        clamp(44px, 5vw, 70px);

    line-height: .95;

    text-transform: uppercase;
}

.news-v2-header > a {
    color: var(--ice);

    text-decoration: none;

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

.news-v2-grid {
    display: grid;

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

    gap: 1px;

    background:
        var(--line);
}

.news-v2-card {
    position: relative;

    min-height: 340px;

    padding: 31px;

    background:
        linear-gradient(
            150deg,
            #071725,
            #020a10
        );
}

.news-number {
    display: block;

    margin-bottom: 70px;

    color:
        rgba(103, 216, 255, .48);

    font-family:
        Georgia,
        serif;
}

.news-v2-card time {
    color: #708897;

    font-size: 10px;
}

.news-v2-card h3 {
    margin: 10px 0 0;

    font-size: 24px;
    line-height: 1.15;
}

.news-v2-card p {
    margin: 17px 0 50px;

    color: #849baa;

    line-height: 1.7;
}

.news-v2-card > a {
    position: absolute;

    left: 31px;
    bottom: 27px;

    color: var(--ice);

    text-decoration: none;

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


/* =========================================================
   PLAY
   ========================================================= */

.play-heading {
    margin-bottom: 48px;
}

.play-grid {
    display: grid;

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

    gap: 1px;

    background:
        var(--line);
}

.play-grid article {
    min-height: 360px;

    padding: 32px;

    background:
        #04111b;
}

.play-grid h3 {
    margin: 110px 0 13px;

    font-size: 23px;
}

.play-grid p {
    color: #859caa;

    line-height: 1.7;
}

.play-grid a {
    color: var(--ice);

    text-decoration: none;

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

.realmlist-panel strong {
    color: #dff3fb;
}

.realmlist-box {
    margin-top: 17px;

    border:
        1px solid rgba(103, 214, 255, .23);

    background:
        #020a10;
}

.realmlist-box code {
    display: block;

    padding: 13px;

    color: #76dfff;

    font-family:
        Consolas,
        monospace;

    font-size: 11px;

    white-space: nowrap;

    overflow-x: auto;
}

.realmlist-box button {
    width: 100%;

    min-height: 40px;

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

    color: #ddf6ff;

    background:
        rgba(28, 112, 154, .26);

    font: inherit;

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

    cursor: pointer;
}

.realmlist-panel small {
    display: block;

    margin-top: 10px;

    color: #617c8c;

    font-size: 10px;
}


/* =========================================================
   COMMUNITY
   ========================================================= */

.community-section {
    min-height: 610px;

    display: grid;

    place-items: center;

    padding: 90px 24px;

    text-align: center;

    background:
        radial-gradient(
            circle at 50% 25%,
            rgba(43, 143, 193, .20),
            transparent 34rem
        ),
        linear-gradient(
            180deg,
            #02070c,
            #06121c,
            #02070c
        );
}

.community-inner {
    max-width: 780px;
}

.community-inner h2 {
    margin: 14px 0 0;

    font-size:
        clamp(42px, 5vw, 70px);

    line-height: .96;

    letter-spacing: -.045em;

    text-transform: uppercase;
}

.community-inner p {
    max-width: 620px;

    margin: 23px auto 0;

    color: #91a7b4;

    font-size: 16px;
    line-height: 1.75;
}


/* =========================================================
   FINAL BANNER
   ========================================================= */

.final-banner {
    min-height: 680px;

    display: grid;

    place-items: center;

    text-align: center;

    background:
        linear-gradient(
            to bottom,
            rgba(2, 7, 12, .68),
            rgba(2, 7, 12, .74)
        ),
        url("/assets/home/hero-northrane.png")
        center 66% / cover
        no-repeat;
}

.final-banner-inner {
    max-width: 750px;

    padding: 50px 25px;
}

.final-banner h2 {
    margin: 13px 0 0;

    font-size:
        clamp(50px, 6vw, 86px);

    line-height: .9;

    letter-spacing: -.055em;

    text-transform: uppercase;

    text-shadow:
        0 8px 38px rgba(0,0,0,.78);
}

.final-banner p {
    margin: 20px 0 28px;

    color: #a8bcc8;

    font-size: 17px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer-v2 {
    width:
        min(1200px, calc(100% - 48px));

    margin: auto;

    min-height: 105px;

    display: flex;

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

    gap: 30px;

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

    color: #637d8c;

    font-size: 11px;
}

.site-footer-v2 > div {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.site-footer-v2 strong {
    color: #c1e2ef;

    letter-spacing: .16em;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

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

    .story-section {
        grid-template-columns: 1fr;
    }

    .story-left .story-copy {
        order: 2;
    }

    .story-left .story-visual {
        order: 1;
    }

    .story-visual {
        min-height: 470px;
    }

    .news-v2-grid,
    .intro-columns,
    .play-grid {
        grid-template-columns: 1fr;
    }

    .intro-columns article,
    .play-grid article,
    .news-v2-card {
        min-height: 260px;
    }

    .intro-columns h3,
    .play-grid h3 {
        margin-top: 70px;
    }
}


@media (max-width: 700px) {

    .topbar-inner {
        width:
            calc(100% - 28px);
    }

    .mini-logo small {
        display: none;
    }

    .main-nav .login-link {
        display: none;
    }

    .hero-v2 {
        min-height: 760px;

        background-position: 30% center;
    }

    .hero-v2-content {
        margin-bottom: 58px;
    }

    .hero-v2-content h2 {
        font-size:
            clamp(40px, 12vw, 58px);
    }

    .hero-buttons,
    .community-actions {
        flex-direction: column;
    }

    .ice-button,
    .ghost-button {
        width: 100%;
    }

    .realm-line > * {
        flex: 1 1 50%;

        justify-content: center;

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

    .portal-section,
    .news-v2,
    .play-section {
        width:
            calc(100% - 30px);

        padding:
            75px 0;
    }

    .story-copy {
        padding:
            65px 24px;
    }

    .news-v2-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .site-footer-v2 {
        width:
            calc(100% - 30px);

        flex-direction: column;

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

        padding:
            30px 0;
    }
}

/* Север зовёт — отдельная сцена */
.story-visual-lich {
    background-image: url("/assets/home/caster-x2.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}


/* Northrane — daily online statistics */
.daily-stats {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 68px 0 76px;
    text-align: center;
}

.daily-stats h2 {
    margin: 12px 0 30px;
    color: #eaf7ff;
    font-size: clamp(28px, 4vw, 42px);
}

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

.daily-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 20px;
    border: 1px solid rgba(117, 213, 255, .24);
    border-radius: 18px;
    background: linear-gradient(145deg, #142b3d, #0b1725);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .2);
}

.daily-stat-card span {
    color: #b8d6e8;
    font-size: 16px;
}

.daily-stat-card strong {
    color: #83d9ff;
    font-size: clamp(42px, 6vw, 64px);
    line-height: 1;
}

.daily-stat-card small {
    color: #819eaf;
    font-size: 13px;
}

@media (max-width: 700px) {
    .daily-stats {
        padding: 48px 0 56px;
    }

    .daily-stats-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* Northrane header status dropdown */
.nav-status {
    position: relative;
    flex-shrink: 0;
    color: #dceef8;
    font-size: 12px;
}

.nav-status summary {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    cursor: pointer;
    list-style: none;
    border: 1px solid transparent;
    border-radius: 7px;
}

.nav-status summary::-webkit-details-marker {
    display: none;
}

.nav-status[open] summary,
.nav-status summary:hover {
    color: #fff;
    border-color: rgba(117, 213, 255, .45);
    background: rgba(45, 110, 155, .2);
}

.nav-status-panel {
    position: absolute;
    z-index: 100;
    top: calc(100% + 12px);
    right: 0;
    width: 265px;
    padding: 22px;
    border: 1px solid rgba(117, 213, 255, .4);
    border-radius: 13px;
    background: #101f32;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .5);
    text-align: left;
}

.nav-status-realm {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: #eaf7ff;
    font-size: 15px;
}

.nav-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ce5a0;
    box-shadow: 0 0 10px rgba(76, 229, 160, .6);
}

.nav-status-label {
    display: block;
    color: #b8d6e8;
    font-size: 13px;
}

.nav-status-number {
    display: block;
    margin: 8px 0;
    color: #83d9ff;
    font-size: 48px;
    line-height: 1;
}

.nav-status-panel small {
    color: #819eaf;
    font-size: 11px;
}

@media (max-width: 700px) {
    .nav-status-panel {
        right: -85px;
        width: min(265px, calc(100vw - 28px));
    }
}

/* Center the Status dropdown arrow */
.nav-status summary span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: translateY(-4px);
}

/* =========================================================
   LANGUAGE DROPDOWN
   ========================================================= */

.language-menu {
    position: relative;
    flex-shrink: 0;
    margin-left: 2px;
}

.language-menu summary {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;

    color: rgba(225, 241, 248, .78);

    border-left: 1px solid rgba(225, 241, 248, .18);

    cursor: pointer;
    list-style: none;
    user-select: none;
}

.language-menu summary::-webkit-details-marker {
    display: none;
}

.language-menu summary:hover,
.language-menu[open] summary {
    color: #fff;
}

.language-menu summary strong {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.language-arrow {
    display: inline-flex;
    line-height: 1;
    transform: translateY(-2px);
    color: rgba(206, 245, 255, .62);
}

.language-menu-panel {
    position: absolute;
    z-index: 120;
    top: calc(100% + 12px);
    right: 0;

    width: 150px;
    padding: 7px;

    border: 1px solid rgba(117, 220, 255, .28);
    border-radius: 9px;

    background: rgba(5, 18, 29, .98);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, .55),
        0 0 22px rgba(71, 178, 225, .06);
}

.language-menu-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 11px;

    color: rgba(225, 241, 248, .68);

    border-radius: 6px;

    font-size: 12px;
    text-decoration: none;
}

.language-menu-panel a:hover {
    color: #fff;
    background: rgba(75, 174, 220, .10);
}

.language-menu-panel a.active {
    color: #cef5ff;
    background: rgba(75, 174, 220, .13);
}

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

/* FIX Northrane header logo */
.mini-logo .mini-rune-logo {
    width: 36px !important;
    height: 40px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    object-fit: contain !important;
    display: block !important;
    transform: none !important;
}


/* Northrane Telegram footer link */
.northrane-telegram {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    border-radius: 50%;
    color: #54caff;
    background: rgba(18, 63, 88, .45);
    border: 1px solid rgba(84, 202, 255, .4);
    text-decoration: none;
    transition: background .2s, box-shadow .2s, transform .2s;
}

.northrane-telegram svg {
    width: 23px;
    height: 23px;
}

.northrane-telegram:hover,
.northrane-telegram:focus-visible {
    color: #c9f3ff;
    background: rgba(35, 113, 153, .55);
    box-shadow: 0 0 18px rgba(55, 190, 255, .38);
    transform: translateY(-2px);
}

@media (max-width: 1000px) {
    .site-footer-v2 > .northrane-telegram {
        align-self: flex-start;
    }
}


/* Northrane Telegram footer alignment fix */
@media (min-width: 1001px) {
    .site-footer-v2 > div:nth-child(2) {
        margin-left: auto;
    }

    .site-footer-v2 {
        gap: 22px;
    }
}
