/* custom.css */

.main__sidebar.sidebar .sidebar__servers {
    margin-bottom: 0;
}

/* Codex hero server block redesign */
@media (min-width: 900px) {
    .hero-server-slot.main__sidebar.sidebar .sidebar__servers {
        width: min(428px, calc(100vw - 40px)) !important;
    }

    .hero-server-slot.main__sidebar.sidebar .server,
    .hero-server-slot.main__sidebar.sidebar .server:hover {
        min-height: 100px;
        padding: 16px 22px 16px 108px;
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 18px;
        background:
            radial-gradient(circle at 14% 50%, rgba(255, 167, 228, .16), rgba(255, 167, 228, 0) 24%),
            radial-gradient(circle at 86% 18%, rgba(117, 214, 131, .10), rgba(117, 214, 131, 0) 22%),
            linear-gradient(135deg, rgba(20, 24, 27, .84), rgba(11, 13, 16, .78));
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .05),
            0 18px 44px rgba(0, 0, 0, .30);
    }

    .hero-server-slot.main__sidebar.sidebar .server::before,
    .hero-server-slot.main__sidebar.sidebar .server::after {
        display: none;
    }

    .hero-server-slot.main__sidebar.sidebar .server__container::after {
        bottom: -8px;
        height: 1px;
        background: linear-gradient(to right, rgba(255, 255, 255, .12), rgba(255, 154, 224, .28), rgba(255, 154, 224, 0));
        box-shadow: none;
    }

    .hero-server-slot.main__sidebar.sidebar .server__row {
        gap: 18px;
        margin-bottom: 16px;
    }

    .hero-server-slot.main__sidebar.sidebar .server__title::before {
        color: #f5f3ef;
        text-shadow: 0 4px 18px rgba(0, 0, 0, .52);
    }

    .hero-server-slot.main__sidebar.sidebar .server__title .color-orange {
        margin-top: 5px;
        color: rgba(223, 213, 231, .84);
        font-size: 11px;
        line-height: 13px;
        letter-spacing: .14em;
    }

    .hero-server-slot.main__sidebar.sidebar .server__online {
        padding: 8px 12px 8px 14px;
        border: 1px solid rgba(103, 209, 119, .22);
        border-radius: 12px;
        background: rgba(12, 18, 15, .46);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    }

    .hero-server-slot.main__sidebar.sidebar .server__online .color-orange {
        color: #ffd37f;
        text-shadow: 0 0 14px rgba(255, 190, 79, .22);
    }

    .hero-server-slot.main__sidebar.sidebar .server__progress {
        height: 6px;
        border: 0;
        background: rgba(255, 255, 255, .07);
        box-shadow: none;
    }

    .hero-server-slot.main__sidebar.sidebar .server__progress::after {
        display: none;
    }

    .hero-server-slot.main__sidebar.sidebar .server__load {
        background: linear-gradient(to right, #ff9ada 0%, #f0b1ff 58%, #fff2ff 100%);
        box-shadow: 0 0 12px rgba(248, 166, 235, .34);
    }

    .hero-server-slot.main__sidebar.sidebar .server__emblem {
        left: 12px;
        filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .36));
    }
}

.hero-quick-actions,
.main__sidebar.sidebar .server__details {
    display: none;
}

.hero-cta-proxy {
    display: none;
    opacity: 0;
}

.hero-quick-actions__button--proxy-source {
    visibility: visible !important;
    pointer-events: auto !important;
}

@media (min-width: 900px) {
    .section[data-section="navigation"] {
        background:
            linear-gradient(to bottom, rgba(30, 29, 27, .96), rgba(18, 18, 17, .96)) !important;
        border-bottom: 1px solid rgba(231, 171, 51, .18);
        box-shadow:
            0 8px 22px rgba(0, 0, 0, .46),
            inset 0 -1px 0 rgba(255, 232, 157, .04);
    }

    .navigation {
        gap: 10px;
    }

    .navigation__logo {
        display: inline-flex;
        align-items: center;
        min-height: 70px;
        padding-right: 4px;
        background: transparent !important;
    }

    .navigation__logo img {
        display: block;
        width: auto;
        height: clamp(44px, 2.8vw, 56px);
        background: transparent !important;
        opacity: 1;
        filter:
            saturate(1.07)
            brightness(1.04)
            drop-shadow(0 0 6px rgba(223, 145, 198, .12))
            drop-shadow(0 3px 8px rgba(0, 0, 0, .58));
        transition: transform .24s ease, filter .24s ease, opacity .24s ease;
    }

    .navigation__logo img.navigation__logo-image--native {
        height: 30px;
    }

    .navigation__logo:hover img {
        opacity: 1;
        transform: translateY(-1px);
        filter:
            saturate(1.1)
            brightness(1.06)
            drop-shadow(0 0 8px rgba(232, 160, 209, .16))
            drop-shadow(0 4px 10px rgba(0, 0, 0, .66));
    }

    .menu__item {
        min-height: 70px;
        padding: 0 12px;
        border-left: 0;
        color: #bda07a;
        text-shadow: 0 1px 8px rgba(0, 0, 0, .54);
        transition: color .22s ease, text-shadow .22s ease, opacity .22s ease;
    }

    .menu__item::after {
        top: auto;
        bottom: 14px;
        left: 50%;
        width: calc(100% - 20px);
        height: 1px;
        transform: translateX(-50%) scaleX(.34);
        transform-origin: center;
        background: linear-gradient(to right, rgba(171, 132, 86, 0), rgba(188, 152, 108, .88), rgba(171, 132, 86, 0));
        border-radius: 0;
        box-shadow: 0 0 12px rgba(174, 136, 90, .18);
        opacity: 0;
        transition: opacity .22s ease, transform .22s ease;
    }

    .menu__item:hover {
        color: #e2c9a7;
        text-shadow:
            0 1px 8px rgba(0, 0, 0, .66),
            0 0 10px rgba(179, 139, 91, .14);
    }

    .menu__item:hover::after {
        height: 1px;
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }

    .menu__item--active {
        color: #edd8bb;
        text-shadow:
            0 1px 8px rgba(0, 0, 0, .68),
            0 0 12px rgba(193, 151, 101, .18);
    }

    .menu__item--active::after {
        height: 1px;
        opacity: 1;
        transform: translateX(-50%) scaleX(1.08);
        background: linear-gradient(to right, rgba(188, 148, 101, 0), rgba(208, 170, 122, .96), rgba(188, 148, 101, 0));
        box-shadow:
            0 0 14px rgba(193, 151, 101, .22),
            0 0 24px rgba(193, 151, 101, .08);
    }

    .navigation__lbtn {
        min-height: 38px;
        margin: 2px 4px 2px 16px;
        border: 1px solid rgba(145, 99, 132, .32);
        background:
            linear-gradient(to bottom, rgba(46, 29, 41, .78), rgba(21, 15, 22, .84));
        box-shadow:
            inset 0 1px 0 rgba(246, 226, 238, .06),
            inset 0 -1px 0 rgba(0, 0, 0, .26),
            0 0 13px rgba(143, 92, 130, .09);
        transition: border-color .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
    }

    .navigation__lbtn .lbtn__content {
        color: #f1cce1;
        text-shadow:
            0 1px 8px rgba(0, 0, 0, .66),
            0 0 9px rgba(190, 123, 166, .12);
    }

    .navigation__lbtn:hover {
        border-color: rgba(191, 133, 174, .46);
        background:
            linear-gradient(to bottom, rgba(56, 35, 50, .82), rgba(24, 17, 25, .88));
        box-shadow:
            inset 0 1px 0 rgba(250, 232, 243, .07),
            inset 0 -1px 0 rgba(0, 0, 0, .28),
            0 0 17px rgba(176, 114, 159, .15);
    }

    .navigation__lbtn:hover .lbtn__content {
        color: #fbdcf0;
        text-shadow:
            0 1px 8px rgba(0, 0, 0, .66),
            0 0 11px rgba(210, 141, 186, .17);
    }

    .navigation__language {
        position: relative;
        margin-left: 8px;
        padding-left: 12px;
        display: flex;
        align-items: center;
    }

    .navigation__language::before {
        content: "";
        position: absolute;
        top: 12px;
        bottom: 12px;
        left: 0;
        width: 1px;
        background: linear-gradient(to bottom, rgba(164, 126, 84, 0), rgba(164, 126, 84, .34), rgba(164, 126, 84, 0));
    }

    .navigation__language .lang {
        position: relative;
        min-width: 58px;
        text-align: left;
    }

    .navigation__language .lang__link {
        height: auto;
        min-height: 46px;
        padding: 5px 8px 6px;
        border: 1px solid rgba(137, 103, 65, .42);
        background-color: #151311;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .03);
        border-radius: 0;
        transition:
            border-color .2s ease,
            background .2s ease,
            box-shadow .2s ease,
            transform .2s ease;
    }

    .navigation__language .lang__link_select {
        align-items: stretch;
        min-width: 54px;
    }

    .navigation__language .lang__link_select:hover {
        border-color: rgba(188, 143, 91, .62);
        background-color: #1c1916;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .04);
    }

    .navigation__language .lang__img {
        width: 32px;
        height: 20px;
        margin: 0 auto 4px;
        border: 1px solid rgba(255, 241, 225, .12);
        box-shadow:
            0 1px 4px rgba(0, 0, 0, .26);
    }

    .navigation__language .lang__box {
        gap: 4px;
        justify-content: center;
        align-items: center;
    }

    .navigation__language .lang__name {
        color: rgba(228, 206, 174, .80);
        font-size: 11px;
        line-height: 1;
        letter-spacing: .08em;
    }

    .navigation__language .lang__arrow {
        width: 8px;
        height: 4px;
        margin-top: 0;
        opacity: .76;
        filter: sepia(1) saturate(.65) brightness(1.22);
    }

    .navigation__language .lang__list {
        width: 100%;
        gap: 6px;
        padding-top: 8px;
        transform: translateY(-12px);
        z-index: 30;
    }

    .navigation__language .lang:hover .lang__list {
        transform: translateY(0);
    }

    .navigation__language .lang__link_sub {
        margin-top: 0;
    }

    .navigation__language .lang__link_sub:hover {
        border-color: rgba(188, 143, 91, .62);
        background-color: #1c1916;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .04);
        transform: translateY(0);
    }

    .navigation__language .lang__link_sub:hover .lang__img {
        filter: none;
        box-shadow:
            0 1px 4px rgba(0, 0, 0, .26);
    }

    .navigation__language .lang__link_sub:hover .lang__name {
        filter: none;
        color: rgba(245, 227, 200, .96);
    }

    .hero-quick-actions {
        position: absolute;
        z-index: 4;
        top: clamp(500px, 66.8%, 720px);
        left: clamp(120px, 15.2%, 292px);
        display: flex;
        flex-direction: column;
        gap: 14px;
        align-items: center;
        pointer-events: auto;
    }

    .hero-quick-actions__button {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 154px;
        height: 44px;
        box-sizing: border-box;
        padding: 0 18px;
        overflow: hidden;
        border: 1px solid rgba(230, 171, 55, .42);
        border-radius: 3px;
        background:
            linear-gradient(to bottom, rgba(30, 28, 23, .76), rgba(10, 11, 10, .78));
        color: #f1d28a;
        font-size: 13px;
        line-height: 14px;
        font-weight: 700;
        text-align: center;
        text-decoration: none;
        white-space: nowrap;
        text-shadow: 0 1px 10px rgba(0, 0, 0, .72);
        box-shadow:
            inset 0 1px 0 rgba(255, 232, 154, .08),
            0 10px 24px rgba(0, 0, 0, .34),
            0 0 18px rgba(224, 160, 39, .08);
        transition: border-color .22s ease, color .22s ease, box-shadow .22s ease, transform .22s ease;
    }

    .hero-quick-actions__button::after {
        content: "";
        position: absolute;
        inset: 1px;
        pointer-events: none;
        background: linear-gradient(110deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 42%);
        opacity: .42;
    }

    .hero-quick-actions__button--primary {
        color: #ffe2a0;
        border-color: rgba(240, 186, 73, .58);
        background:
            radial-gradient(circle at 50% 0, rgba(239, 185, 70, .2), rgba(239, 185, 70, 0) 68%),
            linear-gradient(to bottom, rgba(42, 34, 20, .82), rgba(14, 13, 11, .82));
        box-shadow:
            inset 0 1px 0 rgba(255, 232, 154, .12),
            0 10px 26px rgba(0, 0, 0, .38),
            0 0 24px rgba(224, 160, 39, .16);
    }

    .hero-quick-actions__button:hover {
        color: #fff1c7;
        border-color: rgba(247, 202, 99, .78);
        box-shadow:
            inset 0 1px 0 rgba(255, 232, 154, .16),
            0 12px 28px rgba(0, 0, 0, .42),
            0 0 28px rgba(228, 166, 45, .24);
        transform: translateY(-1px);
    }

    .hero-cta-proxy {
        position: fixed !important;
        left: 0;
        top: 0;
        z-index: 9999 !important;
        display: none;
        width: 0;
        height: 0;
        padding: 0;
        margin: 0;
        border: 0;
        background: transparent !important;
        box-shadow: none !important;
        opacity: 0 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        transform: none !important;
        appearance: none;
    }

    .main__sidebar.sidebar .server {
        min-height: 112px;
        padding: 18px 20px 17px 108px;
        border: 1px solid rgba(229, 168, 48, .28);
        border-radius: 4px;
        text-decoration: none;
        background:
            radial-gradient(circle at 62px 48px, rgba(92, 128, 255, .3), rgba(92, 128, 255, 0) 64px),
            radial-gradient(circle at 88% 18%, rgba(232, 171, 51, .12), rgba(232, 171, 51, 0) 34%),
            linear-gradient(to right, rgba(20, 21, 20, .82), rgba(16, 17, 15, .5) 66%, rgba(16, 17, 15, .16) 100%);
        box-shadow:
            inset 0 1px 0 rgba(255, 232, 153, .06),
            inset 0 -1px 0 rgba(0, 0, 0, .58),
            0 16px 34px rgba(0, 0, 0, .22);
        transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease, background .22s ease;
    }

    .main__sidebar.sidebar .server:hover {
        border-color: rgba(238, 184, 70, .52);
        background:
            radial-gradient(circle at 62px 48px, rgba(100, 138, 255, .34), rgba(100, 138, 255, 0) 66px),
            radial-gradient(circle at 88% 18%, rgba(238, 180, 64, .16), rgba(238, 180, 64, 0) 36%),
            linear-gradient(to right, rgba(24, 24, 22, .86), rgba(18, 18, 16, .54) 66%, rgba(16, 17, 15, .18) 100%);
        box-shadow:
            inset 0 1px 0 rgba(255, 232, 153, .08),
            inset 0 -1px 0 rgba(0, 0, 0, .58),
            0 18px 38px rgba(0, 0, 0, .28),
            0 0 22px rgba(226, 162, 43, .12);
        transform: translateY(-1px);
    }

    .main__sidebar.sidebar .server__row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 16px;
        align-items: center;
        margin-bottom: 0;
    }

    .main__sidebar.sidebar .server__title {
        min-width: 0;
    }

    .main__sidebar.sidebar .server__title::before {
        display: block;
        color: #f7f2e5;
        font-size: 24px;
        line-height: 26px;
        font-weight: 700;
        letter-spacing: 0;
        text-shadow:
            0 2px 12px rgba(0, 0, 0, .82),
            0 0 18px rgba(102, 128, 247, .2);
    }

    .main__sidebar.sidebar .server__title .color-orange {
        display: block;
        margin-top: 5px;
        color: #d8c08a;
        font-size: 11px;
        line-height: 14px;
        font-weight: 500;
        letter-spacing: 0;
        text-transform: uppercase;
        text-shadow: 0 1px 8px rgba(0, 0, 0, .62);
    }

    .main__sidebar.sidebar .server__online {
        justify-content: center;
        min-width: 82px;
        margin-left: 0;
        padding: 8px 12px;
        border: 1px solid rgba(102, 211, 128, .22);
        border-radius: 3px;
        background: rgba(7, 10, 8, .5);
        color: #c6ccc6;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .04),
            0 0 16px rgba(92, 202, 118, .08);
    }

    .main__sidebar.sidebar .server__online::before {
        animation: codex-online-pulse 2.4s ease-in-out infinite;
    }

    .main__sidebar.sidebar .server__online .color-orange {
        color: #f2bc53;
        font-size: 24px;
        line-height: 24px;
        text-shadow:
            0 0 10px rgba(242, 188, 83, .42),
            0 0 20px rgba(92, 202, 118, .14);
    }

    .main__sidebar.sidebar .server__details {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 86px;
        height: 34px;
        padding: 0 12px;
        box-sizing: border-box;
        border: 1px solid rgba(226, 166, 45, .28);
        border-radius: 3px;
        background: rgba(13, 13, 12, .34);
        color: #dfb557;
        font-size: 12px;
        line-height: 12px;
        font-weight: 700;
        white-space: nowrap;
        box-shadow: inset 0 1px 0 rgba(255, 232, 153, .04);
        transition: border-color .22s ease, color .22s ease, box-shadow .22s ease;
    }

    .main__sidebar.sidebar .server:hover .server__details {
        border-color: rgba(240, 188, 70, .56);
        color: #f6d58c;
        box-shadow:
            inset 0 1px 0 rgba(255, 232, 153, .08),
            0 0 18px rgba(224, 160, 39, .14);
    }

    .content__about.about {
        color: #bcb6aa;
    }

    .content__about.about .heading {
        position: relative;
        margin-bottom: 16px;
        padding-bottom: 14px;
    }

    .content__about.about .heading::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 1px;
        background: linear-gradient(
            90deg,
            rgba(191, 146, 107, .68) 0%,
            rgba(146, 106, 82, .26) 44%,
            rgba(146, 106, 82, 0) 100%
        );
        box-shadow: 0 0 12px rgba(145, 103, 77, .08);
    }

    .content__about.about .title {
        color: #f1e8dc;
        font-size: 22px;
        line-height: 27px;
        letter-spacing: 0;
        text-shadow: 0 2px 10px rgba(0, 0, 0, .56);
    }

    .content__about.about .title .color-orange {
        color: #c79a67;
        text-shadow: 0 0 12px rgba(167, 114, 78, .14);
    }

    .content__about.about .about__desc {
        max-width: none;
        color: #bcb5aa;
        font-size: 14px;
        line-height: 25px;
    }

    .content__about.about .headline__desc {
        max-width: none;
        color: #bcb5aa;
        font-size: 14px;
        line-height: 25px;
    }

    .content__about.about .headline__desc br {
        line-height: 30px;
    }

    .content__about.about .rate__ico {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 56px;
        margin-bottom: 6px;
    }

    .content__about.about .rate__ico img {
        display: block;
        width: 54px;
        height: 59px;
        object-fit: contain;
        filter:
            drop-shadow(0 3px 8px rgba(0, 0, 0, .42))
            drop-shadow(0 0 8px rgba(170, 118, 81, .12))
            drop-shadow(0 0 14px rgba(109, 58, 82, .08));
    }

    .content__about.about .about__rates {
        width: min(100%, 900px);
        max-width: 100%;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 12px;
        margin-top: 28px;
    }

    .content__about.about .rate {
        min-height: 102px;
        padding: 10px 12px 8px;
        border: 1px solid rgba(137, 104, 78, .28);
        border-radius: 10px;
        background:
            radial-gradient(140% 110% at 50% 100%, rgba(116, 84, 62, .055), transparent 58%),
            linear-gradient(180deg, rgba(23, 23, 24, .968), rgba(10, 10, 12, .988));
        box-shadow:
            inset 0 -10px 18px rgba(0, 0, 0, .12),
            0 14px 30px rgba(4, 4, 6, .18);
        overflow: visible;
    }

    .content__about.about .rate__title {
        color: rgba(234, 226, 216, .88);
        font-family: var(--font-second);
        font-size: 12px;
        line-height: 15px;
        letter-spacing: .08em;
        text-transform: uppercase;
        text-shadow: 0 1px 8px rgba(0, 0, 0, .34);
    }

    .content__about.about .rate__lvl {
        color: #c79a67;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: .02em;
        text-shadow: 0 0 12px rgba(167, 114, 78, .12);
    }
}

@media (min-width: 961px) and (max-width: 1280px) {
    .hero-quick-actions {
        top: 67%;
        left: 14%;
    }

    .hero-quick-actions__button {
        min-width: 144px;
        height: 42px;
        padding: 0 14px;
        font-size: 12px;
    }

    .main__sidebar.sidebar .server__row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .main__sidebar.sidebar .server__details {
        display: none;
    }

    .content__about.about .about__rates {
        width: min(100%, 612px);
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .content__about.about .rate {
        padding: 10px 16px 8px;
        border-radius: 14px;
    }
}

@media (max-width: 960px) {
    .hero-quick-actions {
        display: none !important;
    }
}

@keyframes codex-online-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: .78;
    }
    50% {
        transform: scale(1.18);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .main__sidebar.sidebar .server,
    .main__sidebar.sidebar .server__online::before,
    .main__sidebar.sidebar .server__details,
    .hero-quick-actions__button,
    .navigation__lbtn,
    .menu__item,
    .menu__item::after,
    .content__about.about .rate {
        animation: none !important;
        transition: none !important;
    }
}

.main__sidebar.sidebar .servers__server {
    margin-bottom: 0;
}

.main__sidebar.sidebar .servers__server:nth-child(1):nth-last-child(1) {
    height: auto;
}

.main__sidebar.sidebar .servers__server:nth-child(1):nth-last-child(1)::after {
    display: none;
}

.main__sidebar.sidebar .server {
    display: block;
    min-height: 132px;
    padding: 24px 26px 22px;
    overflow: hidden;
    border: 1px solid rgba(219, 158, 32, .34);
    border-radius: 4px;
    background:
        radial-gradient(circle at 92% 18%, rgba(226, 166, 42, .16), rgba(226, 166, 42, 0) 28%),
        radial-gradient(circle at 12% 100%, rgba(112, 158, 122, .13), rgba(112, 158, 122, 0) 36%),
        linear-gradient(135deg, rgba(30, 29, 25, .98) 0%, rgba(18, 19, 16, .99) 58%, rgba(13, 15, 13, .99) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 229, 151, .07),
        inset 0 -1px 0 rgba(0, 0, 0, .62),
        0 14px 34px rgba(0, 0, 0, .34);
}

.main__sidebar.sidebar .server::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 3px;
    background: linear-gradient(to bottom, rgba(237, 174, 43, 0), rgba(237, 174, 43, .92), rgba(237, 174, 43, 0));
    box-shadow: 0 0 20px rgba(237, 174, 43, .48);
}

.main__sidebar.sidebar .server::after {
    content: "";
    position: absolute;
    inset: 1px;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, 0) 30%),
        linear-gradient(to right, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0) 42%);
    opacity: .55;
}

.main__sidebar.sidebar .server:hover {
    border-color: rgba(235, 173, 44, .48);
    background:
        radial-gradient(circle at 92% 18%, rgba(226, 166, 42, .2), rgba(226, 166, 42, 0) 30%),
        radial-gradient(circle at 12% 100%, rgba(112, 158, 122, .15), rgba(112, 158, 122, 0) 38%),
        linear-gradient(135deg, rgba(35, 33, 28, .98) 0%, rgba(20, 21, 18, .99) 58%, rgba(13, 15, 13, .99) 100%);
}

.main__sidebar.sidebar .server__container {
    width: 100%;
    position: relative;
    z-index: 2;
}

.main__sidebar.sidebar .server__row {
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    min-height: 0;
    margin-bottom: 26px;
}

.main__sidebar.sidebar .server__title {
    font-size: 18px;
    line-height: 20px;
    font-weight: 700;
    color: #f3f1e9;
    text-align: left;
    white-space: normal;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .72);
}

.main__sidebar.sidebar .server__title .color-orange {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 16px;
    color: #e4a324;
}

.main__sidebar.sidebar .server__online {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    margin-left: auto;
    padding: 9px 12px 8px;
    border: 1px solid rgba(226, 163, 36, .28);
    border-radius: 3px;
    background: rgba(10, 12, 10, .48);
    color: #aeb4b9;
    font-size: 12px;
    line-height: 14px;
    text-transform: uppercase;
}

.main__sidebar.sidebar .server__online::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #6ed47c;
    box-shadow: 0 0 10px rgba(110, 212, 124, .88), 0 0 22px rgba(110, 212, 124, .36);
}

.main__sidebar.sidebar .server__online .color-orange {
    min-width: 18px;
    color: #f1b036;
    font-size: 22px;
    line-height: 20px;
    font-weight: 700;
    text-align: right;
}

.main__sidebar.sidebar .server__progress {
    height: 9px;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 999px;
    background: rgba(7, 8, 7, .62);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, .8);
}

.main__sidebar.sidebar .server__progress::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.main__sidebar.sidebar .server__load {
    min-width: 0;
    background: linear-gradient(to right, #d68a1a 0%, #f1b13a 58%, #fff0a6 100%);
    box-shadow: 0 0 14px rgba(239, 170, 42, .62), 0 0 28px rgba(239, 170, 42, .24);
}

.main__sidebar.sidebar .server--online .server__load {
    min-width: 10px;
}

@media (min-width: 900px) {
    .main__sidebar.sidebar .sidebar__servers {
        margin-left: -28px;
        width: calc(100% + 28px);
    }
}

@media (max-width: 899px) {
    .main__sidebar.sidebar .sidebar__servers {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .main__sidebar.sidebar .servers__server:nth-child(1):nth-last-child(1) {
        height: auto !important;
        min-height: 0 !important;
    }

    .main__sidebar.sidebar .server {
        min-height: 118px !important;
        padding: 20px 18px 19px !important;
    }

    .main__sidebar.sidebar .server__row {
        gap: 12px;
        margin-bottom: 20px;
    }

    .main__sidebar.sidebar .server__title {
        font-size: 16px;
        line-height: 18px;
    }

    .main__sidebar.sidebar .server__title .color-orange {
        font-size: 12px;
        line-height: 15px;
    }

    .main__sidebar.sidebar .server__online {
        margin-left: auto !important;
        padding: 8px 9px 7px;
        font-size: 11px;
    }

    .main__sidebar.sidebar .server__online .color-orange {
        font-size: 20px;
    }
}

@media (max-width: 560px) {
    .main__sidebar.sidebar .servers__server {
        width: calc(100% - 20px) !important;
        max-width: none !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .main__sidebar.sidebar .server__row {
        display: block !important;
        margin-bottom: 18px;
    }

    .main__sidebar.sidebar .server__online {
        display: inline-flex !important;
        margin-top: 14px;
        margin-left: 0 !important;
    }
}

@media (min-width: 900px) {
    .main__sidebar.sidebar .server {
        display: flex;
        align-items: center;
        min-height: 86px;
        padding: 12px 18px 12px 88px;
        border: 0;
        border-radius: 0;
        background:
            radial-gradient(circle at 64px 44px, rgba(102, 89, 214, .22), rgba(102, 89, 214, 0) 62px),
            linear-gradient(to right, rgba(21, 22, 22, .68), rgba(17, 18, 16, .22) 62%, rgba(17, 18, 16, 0) 100%);
        box-shadow: none;
    }

    .main__sidebar.sidebar .server::before {
        top: 50%;
        bottom: auto;
        left: 18px;
        width: 52px;
        height: 58px;
        transform: translateY(-50%);
        clip-path: polygon(50% 0, 90% 18%, 80% 75%, 50% 100%, 20% 75%, 10% 18%);
        background:
            radial-gradient(circle at 50% 34%, rgba(225, 235, 255, .48), rgba(116, 150, 255, .2) 28%, rgba(118, 74, 191, .08) 58%),
            linear-gradient(145deg, rgba(31, 42, 66, .98), rgba(34, 27, 54, .98));
        box-shadow:
            0 0 18px rgba(86, 121, 255, .46),
            0 0 34px rgba(132, 75, 202, .26),
            inset 0 0 0 1px rgba(231, 170, 48, .34);
    }

    .main__sidebar.sidebar .server::after {
        inset: auto;
        top: 50%;
        left: 37px;
        width: 14px;
        height: 38px;
        transform: translateY(-50%);
        clip-path: polygon(46% 0, 54% 0, 58% 68%, 78% 68%, 50% 100%, 22% 68%, 42% 68%);
        background: linear-gradient(to bottom, #f4f8ff 0%, #9fc7ff 42%, #7d65f2 100%);
        box-shadow:
            0 0 10px rgba(141, 190, 255, .78),
            0 0 18px rgba(128, 82, 218, .48);
        opacity: .92;
    }

    .main__sidebar.sidebar .server__container {
        display: block;
        width: 100%;
    }

    .main__sidebar.sidebar .server__container::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: -12px;
        left: 0;
        height: 1px;
        background: linear-gradient(to right, rgba(229, 165, 39, .42), rgba(103, 128, 226, .18), rgba(103, 128, 226, 0));
    }

    .main__sidebar.sidebar .server__row {
        flex-wrap: nowrap;
        align-items: center;
        gap: 18px;
        min-height: 0;
        margin-bottom: 0;
    }

    .main__sidebar.sidebar .server__title {
        flex: 0 1 auto;
        margin-right: 0;
        padding-right: 0;
        color: transparent;
        font-size: 0;
        line-height: 0;
        white-space: nowrap;
    }

    .main__sidebar.sidebar .server__title::before {
        content: attr(data-server-label);
        color: #f2f0e8;
        font-size: 22px;
        line-height: 26px;
        font-weight: 700;
        text-shadow: 0 2px 12px rgba(0, 0, 0, .78), 0 0 16px rgba(95, 126, 255, .18);
    }

    .main__sidebar.sidebar .server__title .color-orange {
        display: none;
    }

    .main__sidebar.sidebar .server__online {
        gap: 8px;
        margin-left: 0;
        padding: 0;
        border: 0;
        background: none;
        color: #a7adb5;
        font-size: 12px;
        line-height: 16px;
        text-transform: uppercase;
        box-shadow: none;
    }

    .main__sidebar.sidebar .server__online .color-orange {
        color: #f0aa2c;
        font-size: 22px;
        line-height: 24px;
        min-width: 0;
        text-shadow: 0 0 12px rgba(240, 170, 44, .32);
    }

    .main__sidebar.sidebar .server__progress {
        display: none;
    }
}

@media (min-width: 900px) {
    .main__sidebar.sidebar .server {
        min-height: 94px;
        padding: 14px 18px 14px 104px;
        background:
            radial-gradient(circle at 56px 46px, rgba(91, 111, 255, .26), rgba(91, 111, 255, 0) 58px),
            radial-gradient(circle at 48px 44px, rgba(151, 68, 210, .18), rgba(151, 68, 210, 0) 74px),
            linear-gradient(to right, rgba(18, 20, 22, .72), rgba(16, 17, 15, .28) 66%, rgba(16, 17, 15, 0) 100%);
    }

    .main__sidebar.sidebar .server::before {
        left: 22px;
        width: 62px;
        height: 68px;
        clip-path: polygon(50% 0, 84% 18%, 96% 50%, 74% 86%, 50% 100%, 26% 86%, 4% 50%, 16% 18%);
        background:
            linear-gradient(128deg, rgba(255, 255, 255, .34) 0 12%, rgba(255, 255, 255, 0) 13% 100%),
            linear-gradient(38deg, rgba(98, 188, 255, .58) 0 26%, rgba(81, 95, 230, .56) 27% 52%, rgba(115, 63, 184, .62) 53% 100%);
        box-shadow:
            0 0 18px rgba(82, 132, 255, .58),
            0 0 34px rgba(135, 72, 205, .34),
            inset 0 0 0 1px rgba(246, 196, 74, .38),
            inset 0 0 18px rgba(224, 240, 255, .18);
    }

    .main__sidebar.sidebar .server::after {
        left: 44px;
        width: 18px;
        height: 52px;
        clip-path: polygon(50% 0, 74% 42%, 58% 100%, 42% 100%, 26% 42%);
        background: linear-gradient(to bottom, rgba(255, 255, 255, .94), rgba(151, 211, 255, .56) 48%, rgba(96, 69, 214, .54));
        box-shadow:
            0 0 12px rgba(177, 219, 255, .82),
            0 0 22px rgba(121, 83, 220, .54);
        opacity: .9;
    }

    .main__sidebar.sidebar .server__container::after {
        bottom: -15px;
        height: 2px;
        background: linear-gradient(to right, rgba(236, 170, 39, .76), rgba(105, 126, 233, .4), rgba(105, 126, 233, 0));
        box-shadow: 0 0 14px rgba(226, 159, 34, .18);
    }

    .main__sidebar.sidebar .server__row {
        gap: 20px;
    }

    .main__sidebar.sidebar .server__title {
        flex: 1 1 auto;
    }

    .main__sidebar.sidebar .server__title::before {
        font-size: 24px;
        letter-spacing: 0;
        color: #f5f3ea;
        text-shadow:
            0 2px 12px rgba(0, 0, 0, .82),
            0 0 18px rgba(104, 123, 244, .22);
    }

    .main__sidebar.sidebar .server__online {
        margin-left: auto;
        padding: 7px 0 7px 16px;
        color: #b8bdc5;
    }

    .main__sidebar.sidebar .server__online .color-orange {
        color: #eeb03a;
        font-size: 24px;
        text-shadow:
            0 0 10px rgba(238, 176, 58, .42),
            0 0 20px rgba(106, 126, 238, .18);
    }
}

/* Codex premium status final desktop layer */
@media (min-width: 900px) {
    .main__sidebar.sidebar .server {
        min-height: 112px;
        padding: 18px 20px 17px 108px;
        border: 1px solid rgba(229, 168, 48, .28);
        border-radius: 4px;
        text-decoration: none;
        background:
            radial-gradient(circle at 62px 48px, rgba(92, 128, 255, .3), rgba(92, 128, 255, 0) 64px),
            radial-gradient(circle at 88% 18%, rgba(232, 171, 51, .12), rgba(232, 171, 51, 0) 34%),
            linear-gradient(to right, rgba(20, 21, 20, .82), rgba(16, 17, 15, .5) 66%, rgba(16, 17, 15, .16) 100%);
        box-shadow:
            inset 0 1px 0 rgba(255, 232, 153, .06),
            inset 0 -1px 0 rgba(0, 0, 0, .58),
            0 16px 34px rgba(0, 0, 0, .22);
        transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease, background .22s ease;
    }

    .main__sidebar.sidebar .server:hover {
        border-color: rgba(238, 184, 70, .52);
        background:
            radial-gradient(circle at 62px 48px, rgba(100, 138, 255, .34), rgba(100, 138, 255, 0) 66px),
            radial-gradient(circle at 88% 18%, rgba(238, 180, 64, .16), rgba(238, 180, 64, 0) 36%),
            linear-gradient(to right, rgba(24, 24, 22, .86), rgba(18, 18, 16, .54) 66%, rgba(16, 17, 15, .18) 100%);
        box-shadow:
            inset 0 1px 0 rgba(255, 232, 153, .08),
            inset 0 -1px 0 rgba(0, 0, 0, .58),
            0 18px 38px rgba(0, 0, 0, .28),
            0 0 22px rgba(226, 162, 43, .12);
        transform: translateY(-1px);
    }

    .main__sidebar.sidebar .server__row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 16px;
        align-items: center;
        margin-bottom: 0;
    }

    .main__sidebar.sidebar .server__title {
        min-width: 0;
    }

    .main__sidebar.sidebar .server__title::before {
        display: block;
        color: #f7f2e5;
        font-size: 24px;
        line-height: 26px;
        font-weight: 700;
        letter-spacing: 0;
        text-shadow:
            0 2px 12px rgba(0, 0, 0, .82),
            0 0 18px rgba(102, 128, 247, .2);
    }

    .main__sidebar.sidebar .server__title .color-orange {
        display: block;
        margin-top: 5px;
        color: #d8c08a;
        font-size: 11px;
        line-height: 14px;
        font-weight: 500;
        letter-spacing: 0;
        text-transform: uppercase;
        text-shadow: 0 1px 8px rgba(0, 0, 0, .62);
    }

    .main__sidebar.sidebar .server__online {
        justify-content: center;
        min-width: 82px;
        margin-left: 0;
        padding: 8px 12px;
        border: 1px solid rgba(102, 211, 128, .22);
        border-radius: 3px;
        background: rgba(7, 10, 8, .5);
        color: #c6ccc6;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .04),
            0 0 16px rgba(92, 202, 118, .08);
    }

    .main__sidebar.sidebar .server__online .color-orange {
        color: #f2bc53;
        font-size: 24px;
        line-height: 24px;
        text-shadow:
            0 0 10px rgba(242, 188, 83, .42),
            0 0 20px rgba(92, 202, 118, .14);
    }

    .main__sidebar.sidebar .server__details {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 86px;
        height: 34px;
        padding: 0 12px;
        box-sizing: border-box;
        border: 1px solid rgba(226, 166, 45, .28);
        border-radius: 3px;
        background: rgba(13, 13, 12, .34);
        color: #dfb557;
        font-size: 12px;
        line-height: 12px;
        font-weight: 700;
        white-space: nowrap;
        box-shadow: inset 0 1px 0 rgba(255, 232, 153, .04);
        transition: border-color .22s ease, color .22s ease, box-shadow .22s ease;
    }

    .main__sidebar.sidebar .server:hover .server__details {
        border-color: rgba(240, 188, 70, .56);
        color: #f6d58c;
        box-shadow:
            inset 0 1px 0 rgba(255, 232, 153, .08),
            0 0 18px rgba(224, 160, 39, .14);
    }
}

@media (min-width: 961px) and (max-width: 1280px) {
    .main__sidebar.sidebar .server__row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .main__sidebar.sidebar .server__details {
        display: none;
    }
}

/* Codex final CTA and server placement tune */
@media (min-width: 900px) {
    .hero-quick-actions {
        top: clamp(548px, 72%, 778px);
        left: clamp(180px, 18.8%, 360px);
    }

    .hero-quick-actions__button {
        min-width: 176px;
    }

    .main__sidebar.sidebar .sidebar__servers {
        margin-left: -48px;
        width: calc(100% + 48px);
    }
}

@media (min-width: 961px) and (max-width: 1280px) {
    .hero-quick-actions {
        top: 72%;
        left: 18%;
    }
}

/* Codex server online align after details removal */
@media (min-width: 900px) {
    .main__sidebar.sidebar .server__row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 22px;
    }

    .main__sidebar.sidebar .server__online {
        margin-left: auto;
        margin-right: 0;
        min-width: 104px;
    }
}

/* Codex center hero CTA under Lineage logo */
@media (min-width: 900px) {
    .hero-quick-actions {
        left: calc(clamp(120px, 15.2%, 292px) + clamp(240px, 19.6%, 376px) / 2);
        transform: translateX(-50%);
    }

    .hero-quick-actions__button--primary {
        transform: translateY(-8px);
    }

    .hero-quick-actions__button--primary:hover {
        transform: translateY(-9px);
    }
}

@media (min-width: 961px) and (max-width: 1280px) {
    .hero-quick-actions {
        left: calc(14% + 11.2%);
        transform: translateX(-50%);
    }
}

/* Codex move desktop server card into hero under CTA */
@media (min-width: 900px) {
    .main > .main__sidebar.sidebar {
        display: none !important;
    }

    .main > .main__content.content {
        width: calc(100% - 20px) !important;
        width: calc(100% - (var(--margin) * 2)) !important;
        margin-left: 10px;
        margin-left: var(--margin);
    }

    .hero-server-slot.main__sidebar.sidebar {
        width: auto !important;
        margin: 0 !important;
        padding-top: 0 !important;
    }

    .hero-server-slot.main__sidebar.sidebar .sidebar__servers {
        width: min(468px, calc(100vw - 40px)) !important;
        margin: 0 !important;
    }

    .hero-server-slot.main__sidebar.sidebar .servers__list {
        width: 100%;
    }
}

.chronicle-roadmap {
    display: none;
}

@media (min-width: 900px) {
    .chronicle-roadmap {
        position: relative;
        z-index: 3;
        display: block;
        margin-top: clamp(72px, 6.4vw, 124px);
        margin-bottom: clamp(30px, 2.8vw, 54px);
    }

    .chronicle-roadmap__rail {
        position: relative;
        box-sizing: border-box;
        width: calc(100% - 20px);
        margin: 0 10px;
        padding: 24px 28px 22px;
        overflow: visible;
        border-top: 1px solid rgba(225, 166, 49, .24);
        border-bottom: 1px solid rgba(225, 166, 49, .18);
        background:
            radial-gradient(circle at 18% 50%, rgba(226, 166, 45, .1), rgba(226, 166, 45, 0) 26%),
            radial-gradient(circle at 82% 50%, rgba(95, 125, 226, .12), rgba(95, 125, 226, 0) 28%),
            linear-gradient(to right, rgba(9, 11, 10, 0), rgba(17, 18, 15, .78) 16%, rgba(17, 18, 15, .78) 84%, rgba(9, 11, 10, 0));
        box-shadow:
            inset 0 1px 0 rgba(255, 232, 153, .04),
            0 18px 42px rgba(0, 0, 0, .24);
    }

    .chronicle-roadmap__rail::before {
        content: "";
        position: absolute;
        top: 50%;
        right: 34px;
        left: 34px;
        height: 2px;
        transform: translateY(-50%);
        background: linear-gradient(to right, rgba(210, 143, 34, 0), rgba(220, 160, 44, .5), rgba(98, 121, 220, .36), rgba(220, 160, 44, .5), rgba(210, 143, 34, 0));
        box-shadow:
            0 0 14px rgba(222, 159, 40, .22),
            0 0 24px rgba(103, 126, 225, .1);
    }

    .chronicle-roadmap__list {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 12px;
        align-items: center;
    }

    .chronicle-roadmap__item {
        appearance: none;
        position: relative;
        display: block;
        height: clamp(76px, 5.8vw, 92px);
        min-width: 0;
        overflow: hidden;
        padding: 0;
        border: 1px solid rgba(218, 158, 43, .32);
        border-radius: 4px;
        background: #11120f;
        color: #f3e8cd;
        cursor: pointer;
        font: inherit;
        box-shadow:
            inset 0 1px 0 rgba(255, 232, 153, .08),
            inset 0 -1px 0 rgba(0, 0, 0, .72),
            0 10px 22px rgba(0, 0, 0, .26);
        transform: translateZ(0);
        transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
    }

    .chronicle-roadmap__item::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background:
            linear-gradient(to bottom, rgba(4, 5, 5, .02), rgba(4, 5, 5, .24) 46%, rgba(4, 5, 5, .72) 100%),
            linear-gradient(120deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 34%);
    }

    .chronicle-roadmap__item::after {
        content: "";
        position: absolute;
        inset: 1px;
        z-index: 2;
        pointer-events: none;
        border: 1px solid rgba(255, 232, 153, .08);
        border-radius: 3px;
    }

    .chronicle-roadmap__item:hover {
        z-index: 3;
        border-color: rgba(244, 194, 82, .72);
        box-shadow:
            inset 0 1px 0 rgba(255, 232, 153, .14),
            inset 0 -1px 0 rgba(0, 0, 0, .72),
            0 14px 28px rgba(0, 0, 0, .34),
            0 0 24px rgba(232, 169, 52, .24);
        transform: translateY(-4px) scale(1.045);
    }

    .chronicle-roadmap__item:focus-visible {
        outline: 2px solid rgba(244, 194, 82, .72);
        outline-offset: 3px;
    }

    .chronicle-roadmap__item--active {
        border-color: rgba(244, 194, 82, .78);
        box-shadow:
            inset 0 1px 0 rgba(255, 232, 153, .16),
            inset 0 -1px 0 rgba(0, 0, 0, .72),
            0 14px 30px rgba(0, 0, 0, .32),
            0 0 28px rgba(232, 169, 52, .22);
    }

    .chronicle-roadmap__image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: .78;
        filter: brightness(.76) saturate(.92);
        transform: scale(1.01);
        transition: opacity .22s ease, filter .22s ease, transform .22s ease;
    }

    .chronicle-roadmap__item:hover .chronicle-roadmap__image,
    .chronicle-roadmap__item--active .chronicle-roadmap__image {
        opacity: .94;
        filter: brightness(.95) saturate(1.04);
        transform: scale(1.08);
    }

    .chronicle-roadmap__stage,
    .chronicle-roadmap__title {
        position: absolute;
        right: 9px;
        left: 9px;
        z-index: 3;
        display: block;
        overflow: hidden;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-shadow:
            0 1px 8px rgba(0, 0, 0, .9),
            0 0 12px rgba(0, 0, 0, .72);
    }

    .chronicle-roadmap__stage {
        top: 8px;
        color: #d9b967;
        font-size: 9px;
        line-height: 10px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .chronicle-roadmap__title {
        bottom: 9px;
        color: #f3ead6;
        font-size: clamp(10px, .8vw, 13px);
        line-height: 14px;
        font-weight: 700;
    }
}

@media (min-width: 900px) and (max-width: 1280px) {
    .chronicle-roadmap {
        margin-top: 96px;
    }

    .chronicle-roadmap__rail {
        padding-right: 20px;
        padding-left: 20px;
    }

    .chronicle-roadmap__list {
        gap: 9px;
    }

    .chronicle-roadmap__stage {
        display: none;
    }
}

/* Codex roadmap placement fix */
@media (min-width: 900px) {
    .chronicle-roadmap {
        width: 100%;
        margin-top: clamp(260px, 13.8vw, 344px);
        margin-bottom: clamp(56px, 4vw, 78px);
    }

    .chronicle-roadmap .container {
        width: 100%;
        max-width: none;
        padding-right: 0;
        padding-left: 0;
    }

    .chronicle-roadmap__rail {
        width: min(78vw, 1180px);
        margin-right: auto;
        margin-left: auto;
    }
}

@media (min-width: 900px) and (max-width: 1280px) {
    .chronicle-roadmap {
        margin-top: 235px;
    }

    .chronicle-roadmap__rail {
        width: min(86vw, 1080px);
    }
}

/* Codex pull main blocks closer to roadmap */
@media (min-width: 900px) {
    .chronicle-roadmap {
        margin-bottom: 22px;
    }

    .main__sidebar.sidebar {
        padding-top: 70px !important;
    }

    .content__about.about {
        margin-top: 70px !important;
    }
}

@media (min-width: 900px) and (max-width: 1280px) {
    .main__sidebar.sidebar {
        padding-top: 60px !important;
    }

    .content__about.about {
        margin-top: 60px !important;
    }
}

/* Codex align server card and online text */
@media (min-width: 900px) {
    .main__sidebar.sidebar .sidebar__servers {
        margin-left: -76px;
        width: calc(100% + 76px);
    }

    .main__sidebar.sidebar .server__online {
        justify-content: flex-start;
        gap: 8px;
        margin-right: 0;
        padding-left: 18px;
    }
}

/* Codex compact server status card */
@media (min-width: 900px) {
    .main__sidebar.sidebar .sidebar__servers {
        margin-left: -64px;
        width: calc(100% + 38px);
    }

    .main__sidebar.sidebar .server {
        min-height: 88px;
        padding: 11px 14px 11px 88px;
    }

    .main__sidebar.sidebar .server::before {
        left: 20px;
        width: 52px;
        height: 58px;
    }

    .main__sidebar.sidebar .server::after {
        left: 38px;
        width: 15px;
        height: 43px;
    }

    .main__sidebar.sidebar .server__row {
        gap: 14px;
    }

    .main__sidebar.sidebar .server__title::before {
        font-size: 21px;
        line-height: 23px;
    }

    .main__sidebar.sidebar .server__title .color-orange {
        margin-top: 3px;
        font-size: 10px;
        line-height: 12px;
    }

    .main__sidebar.sidebar .server__online {
        min-width: 96px;
        gap: 7px;
        padding: 6px 10px 6px 14px;
    }

    .main__sidebar.sidebar .server__online .color-orange {
        font-size: 22px;
        line-height: 22px;
    }

    .main__sidebar.sidebar .server__container::after {
        bottom: -10px;
    }
}

.server__emblem,
.server__emblem>* {
    box-sizing: border-box;
}

.server__emblem {
    display: none;
}

@media (min-width: 900px) {
    .main__sidebar.sidebar .server {
        padding-left: 116px;
    }

    .main__sidebar.sidebar .server__emblem {
        position: absolute;
        top: 50%;
        left: 14px;
        display: block;
        width: 76px;
        height: 76px;
        pointer-events: none;
        z-index: 3;
        transform: translateY(-50%);
        filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .46));
        animation: codex-talisman-float 4.8s ease-in-out infinite;
    }

    .main__sidebar.sidebar .server__emblem>* {
        position: absolute;
        top: 50%;
        left: 50%;
        display: block;
        transform-origin: center;
    }

    .main__sidebar.sidebar .server__emblem-halo {
        width: 86px;
        height: 86px;
        transform: translate(-50%, -50%);
        background:
            radial-gradient(circle at 47% 50%, rgba(255, 242, 250, .92) 0 18%, rgba(255, 173, 227, .6) 28%, rgba(255, 123, 214, .24) 48%, rgba(255, 123, 214, 0) 68%);
        opacity: .9;
        filter:
            blur(8px)
            saturate(1.22)
            brightness(1.12)
            drop-shadow(0 0 16px rgba(255, 150, 221, .26));
        animation: codex-talisman-core 3.2s ease-in-out infinite;
    }

    .main__sidebar.sidebar .server__emblem-core {
        width: 72px;
        height: 72px;
        transform: translate(-50%, -50%);
        background:
            radial-gradient(circle at 49% 52%, rgba(255, 252, 255, .98) 0 10%, rgba(255, 214, 241, .88) 20%, rgba(255, 143, 222, .48) 42%, rgba(255, 143, 222, 0) 72%);
        opacity: .95;
        filter: blur(3.5px) saturate(1.16) brightness(1.12);
        animation: codex-talisman-breathe 3.2s ease-in-out infinite;
    }

    .main__sidebar.sidebar .server__emblem-sparks {
        display: none;
    }

    .main__sidebar.sidebar .server__emblem-orbit::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        border: 1.4px solid rgba(255, 194, 236, .62);
        border-right-color: rgba(255, 194, 236, .05);
        border-bottom-color: rgba(255, 194, 236, .09);
        box-shadow:
            0 0 12px rgba(255, 151, 223, .22),
            inset 0 0 6px rgba(255, 232, 246, .12);
        mix-blend-mode: screen;
    }

    .main__sidebar.sidebar .server__emblem-orbit--outer {
        width: 66px;
        height: 46px;
        transform: translate(-50%, -50%) rotate(14deg);
        opacity: .72;
    }

    .main__sidebar.sidebar .server__emblem-orbit--outer::before {
        animation: codex-talisman-orbit-a 6.2s linear infinite;
    }

    .main__sidebar.sidebar .server__emblem-orbit--middle {
        width: 56px;
        height: 66px;
        transform: translate(-50%, -50%) rotate(-29deg);
        opacity: .56;
    }

    .main__sidebar.sidebar .server__emblem-orbit--middle::before {
        animation: codex-talisman-orbit-b 4.8s linear infinite reverse;
    }

    .main__sidebar.sidebar .server__emblem-orbit--inner {
        width: 42px;
        height: 60px;
        transform: translate(-50%, -50%) rotate(43deg);
        opacity: .48;
    }

    .main__sidebar.sidebar .server__emblem-orbit--inner::before {
        animation: codex-talisman-orbit-c 3.6s linear infinite;
    }

    .main__sidebar.sidebar .server__emblem-shard {
        width: 44px;
        height: 92px;
        display: none;
        transform: translate(-18%, -49%) rotate(-3deg);
        background: center / contain no-repeat url("../images/servers/bayum-shard-3d.png");
        filter:
            drop-shadow(0 0 12px rgba(255, 104, 62, .16))
            drop-shadow(0 6px 16px rgba(0, 0, 0, .32));
        animation: codex-talisman-emblem 4.2s ease-in-out infinite;
    }

}

@keyframes codex-talisman-float {
    0%, 100% {
        transform: translateY(-50%) translateX(0) translateY(0);
    }
    50% {
        transform: translateY(-50%) translateX(1px) translateY(-2px);
    }
}

@keyframes codex-talisman-core {
    0%, 100% {
        opacity: .88;
        transform: translate(-50%, -50%) scale(.95);
    }
    45% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.07);
    }
    68% {
        opacity: .92;
        transform: translate(-50%, -50%) scale(.99);
    }
}

@keyframes codex-talisman-breathe {
    0%, 100% {
        opacity: .82;
        transform: translate(-50%, -50%) scale(.9);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.13);
    }
}

@keyframes codex-talisman-burst {
    0%, 100% {
        opacity: .42;
        transform: translate(-50%, -50%) scale(.94);
    }
    50% {
        opacity: .82;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

@keyframes codex-talisman-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes codex-talisman-orbit-a {
    from {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.03);
    }
    to {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes codex-talisman-orbit-b {
    from {
        transform: rotate(0deg) scale(.98);
    }
    50% {
        transform: rotate(180deg) scale(1.04);
    }
    to {
        transform: rotate(360deg) scale(.98);
    }
}

@keyframes codex-talisman-orbit-c {
    from {
        transform: rotate(0deg) scale(.94);
    }
    50% {
        transform: rotate(180deg) scale(1.06);
    }
    to {
        transform: rotate(360deg) scale(.94);
    }
}

@keyframes codex-talisman-shard {
    0%, 100% {
        transform: translate(-35%, -44%) rotate(6deg);
    }
    35% {
        transform: translate(-33%, -45%) rotate(9deg);
    }
    65% {
        transform: translate(-36%, -43%) rotate(4deg);
    }
}

@keyframes codex-talisman-emblem {
    0%, 100% {
        transform: translate(-18%, -49%) rotate(-4deg) scale(.98);
    }
    35% {
        transform: translate(-17%, -50%) rotate(-1deg) scale(1.02);
    }
    65% {
        transform: translate(-19%, -48%) rotate(-7deg) scale(.99);
    }
}

@media (prefers-reduced-motion: reduce) {
    .server__emblem,
    .server__emblem-halo,
    .server__emblem-core,
    .server__emblem-sparks,
    .server__emblem-orbit::before,
    .server__emblem-shard {
        animation: none !important;
        transition: none !important;
    }
}

/* Codex forged chronicle roadmap redesign */
@media (min-width: 900px) {
    .chronicle-roadmap {
        margin-bottom: 18px;
    }

    .chronicle-roadmap__rail {
        padding: 0 18px;
        border: 0;
        background: none;
        box-shadow: none;
        overflow: visible;
    }

    .chronicle-roadmap__rail::before {
        content: "";
        position: absolute;
        top: 44px;
        right: 28px;
        left: 28px;
        height: 18px;
        transform: none;
        border: 1px solid rgba(184, 129, 48, .42);
        border-radius: 999px;
        background:
            linear-gradient(to bottom,
                rgba(255, 230, 166, .22) 0%,
                rgba(156, 103, 38, .44) 28%,
                rgba(58, 38, 21, .98) 50%,
                rgba(149, 101, 42, .42) 72%,
                rgba(244, 206, 122, .16) 100%);
        box-shadow:
            inset 0 1px 0 rgba(255, 235, 178, .28),
            inset 0 -2px 4px rgba(0, 0, 0, .56),
            0 10px 28px rgba(0, 0, 0, .24),
            0 0 22px rgba(226, 165, 56, .1);
    }

    .chronicle-roadmap__rail::after {
        content: "";
        position: absolute;
        top: 30px;
        right: 6px;
        left: 6px;
        height: 46px;
        pointer-events: none;
        background:
            radial-gradient(circle at 18px 23px, rgba(232, 180, 76, .62) 0 7px, rgba(73, 48, 24, .96) 8px 12px, transparent 13px),
            radial-gradient(circle at calc(100% - 18px) 23px, rgba(232, 180, 76, .62) 0 7px, rgba(73, 48, 24, .96) 8px 12px, transparent 13px),
            linear-gradient(to right, rgba(214, 157, 52, 0), rgba(214, 157, 52, .18) 8%, rgba(214, 157, 52, .18) 92%, rgba(214, 157, 52, 0));
        opacity: .92;
    }

    .chronicle-roadmap__list {
        grid-template-columns: repeat(8, minmax(104px, 1fr));
        gap: 10px;
        align-items: start;
        min-height: 148px;
    }

    .chronicle-roadmap__item {
        width: 100%;
        max-width: 118px;
        height: 148px;
        margin: 0 auto;
        overflow: visible;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
        color: #f2ead7;
        transform: none;
    }

    .chronicle-roadmap__item::before {
        content: "";
        position: absolute;
        top: 6px;
        left: 50%;
        width: 96px;
        height: 96px;
        transform: translateX(-50%);
        border: 1px solid rgba(209, 157, 63, .56);
        border-radius: 50%;
        background:
            radial-gradient(circle at 34% 28%, rgba(255, 244, 208, .28), rgba(255, 244, 208, 0) 26%),
            linear-gradient(145deg, rgba(167, 117, 44, .96), rgba(70, 47, 26, .98) 42%, rgba(132, 87, 35, .96) 70%, rgba(31, 21, 14, .98));
        box-shadow:
            inset 0 1px 0 rgba(255, 234, 177, .26),
            inset 0 -2px 4px rgba(0, 0, 0, .62),
            0 10px 22px rgba(0, 0, 0, .34);
        transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    }

    .chronicle-roadmap__item::after {
        content: "";
        position: absolute;
        top: 13px;
        left: 50%;
        width: 82px;
        height: 82px;
        transform: translateX(-50%);
        border: 1px solid rgba(250, 223, 154, .14);
        border-radius: 50%;
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3);
        transition: transform .22s ease, box-shadow .22s ease;
    }

    .chronicle-roadmap__item:hover {
        z-index: 3;
        transform: translateY(-4px);
    }

    .chronicle-roadmap__item:hover::before,
    .chronicle-roadmap__item--active::before {
        transform: translateX(-50%) translateY(-4px);
        border-color: rgba(244, 194, 82, .86);
        box-shadow:
            inset 0 1px 0 rgba(255, 236, 186, .34),
            inset 0 -2px 4px rgba(0, 0, 0, .62),
            0 14px 28px rgba(0, 0, 0, .38),
            0 0 26px rgba(232, 169, 52, .2);
    }

    .chronicle-roadmap__item:hover::after,
    .chronicle-roadmap__item--active::after {
        transform: translateX(-50%) translateY(-4px);
        box-shadow:
            inset 0 0 0 1px rgba(255, 225, 160, .18),
            0 0 18px rgba(239, 177, 62, .16);
    }

    .chronicle-roadmap__image {
        top: 18px;
        left: 50%;
        width: 72px;
        height: 72px;
        transform: translateX(-50%);
        border-radius: 50%;
        opacity: .86;
        filter: brightness(.82) saturate(.92);
        box-shadow: 0 0 0 1px rgba(255, 232, 176, .06);
    }

    .chronicle-roadmap__item:hover .chronicle-roadmap__image,
    .chronicle-roadmap__item--active .chronicle-roadmap__image {
        transform: translateX(-50%) scale(1.06);
        opacity: .98;
        filter: brightness(.98) saturate(1.04);
    }

    .chronicle-roadmap__stage,
    .chronicle-roadmap__title {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        white-space: normal;
        text-overflow: clip;
    }

    .chronicle-roadmap__stage {
        top: 103px;
        width: 116px;
        color: #b69659;
        font-size: 8px;
        line-height: 10px;
        letter-spacing: .06em;
    }

    .chronicle-roadmap__title {
        top: 116px;
        width: 132px;
        bottom: auto;
        color: #f1ead9;
        font-size: clamp(11px, .86vw, 13px);
        line-height: 14px;
        font-weight: 700;
    }

    .chronicle-roadmap__item--active .chronicle-roadmap__stage,
    .chronicle-roadmap__item--active .chronicle-roadmap__title {
        color: #f5e0b6;
    }
}

@media (min-width: 900px) and (max-width: 1280px) {
    .chronicle-roadmap__rail {
        padding: 0 8px;
    }

    .chronicle-roadmap__rail::before {
        top: 39px;
        right: 16px;
        left: 16px;
        height: 15px;
    }

    .chronicle-roadmap__rail::after {
        top: 27px;
        right: 2px;
        left: 2px;
        height: 38px;
    }

    .chronicle-roadmap__list {
        grid-template-columns: repeat(8, minmax(92px, 1fr));
        gap: 4px;
        min-height: 130px;
    }

    .chronicle-roadmap__item {
        max-width: 98px;
        height: 130px;
    }

    .chronicle-roadmap__item::before {
        top: 7px;
        width: 82px;
        height: 82px;
    }

    .chronicle-roadmap__item::after {
        top: 13px;
        width: 70px;
        height: 70px;
    }

    .chronicle-roadmap__image {
        top: 18px;
        width: 62px;
        height: 62px;
    }

    .chronicle-roadmap__stage {
        display: none;
    }

    .chronicle-roadmap__title {
        top: 99px;
        width: 100px;
        font-size: 11px;
        line-height: 12px;
    }
}

/* Codex roadmap palette aligned with site */
@media (min-width: 900px) {
    .chronicle-roadmap {
        margin-bottom: 18px;
    }

    .chronicle-roadmap__rail {
        padding: 0 14px;
        transform: translateX(18px);
        border: 0;
        background: none;
        box-shadow: none;
        overflow: visible;
    }

    .chronicle-roadmap__rail::before {
        content: "";
        position: absolute;
        top: 41px;
        right: 34px;
        left: 34px;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(
            to right,
            rgba(245, 161, 23, 0) 0%,
            rgba(245, 161, 23, .16) 10%,
            rgba(44, 40, 38, .96) 50%,
            rgba(245, 161, 23, .16) 90%,
            rgba(245, 161, 23, 0) 100%
        );
        box-shadow:
            0 0 10px rgba(245, 161, 23, .06),
            0 1px 0 rgba(230, 192, 132, .08);
    }

    .chronicle-roadmap__rail::after {
        content: "";
        position: absolute;
        top: 40px;
        right: 34px;
        left: 34px;
        height: 1px;
        border-radius: 999px;
        background: linear-gradient(
            to right,
            rgba(245, 161, 23, 0) 0%,
            rgba(230, 192, 132, .34) 14%,
            rgba(245, 161, 23, .16) 50%,
            rgba(230, 192, 132, .34) 86%,
            rgba(245, 161, 23, 0) 100%
        );
        opacity: .78;
    }

    .chronicle-roadmap__list {
        grid-template-columns: repeat(8, minmax(104px, 1fr));
        gap: 10px;
        align-items: start;
        min-height: 132px;
    }

    .chronicle-roadmap__item {
        width: 100%;
        max-width: 110px;
        height: 132px;
        margin: 0 auto;
        overflow: visible;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
        color: #f1e8d3;
        transform: none;
    }

    .chronicle-roadmap__item::before {
        content: "";
        position: absolute;
        top: 4px;
        left: 50%;
        z-index: 1;
        width: 82px;
        height: 82px;
        transform: translateX(-50%);
        border: 1px solid rgba(245, 161, 23, .34);
        border-radius: 50%;
        background:
            linear-gradient(145deg, rgba(49, 45, 43, .98), rgba(28, 27, 26, .98) 52%, rgba(41, 37, 34, .96));
        box-shadow:
            inset 0 1px 0 rgba(230, 192, 132, .12),
            inset 0 -2px 4px rgba(0, 0, 0, .28),
            0 8px 16px rgba(0, 0, 0, .18);
        transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    }

    .chronicle-roadmap__item::after {
        content: "";
        position: absolute;
        top: 10px;
        left: 50%;
        z-index: 3;
        width: 74px;
        height: 74px;
        transform: translateX(-50%);
        border: 1px solid rgba(230, 192, 132, .08);
        border-radius: 50%;
        box-shadow:
            inset 0 0 0 1px rgba(0, 0, 0, .18),
            0 0 0 1px rgba(245, 161, 23, .03);
        transition: box-shadow .2s ease, transform .2s ease;
    }

    .chronicle-roadmap__item:hover {
        z-index: 3;
        transform: translateY(-3px);
    }

    .chronicle-roadmap__item:hover::before,
    .chronicle-roadmap__item--active::before {
        transform: translateX(-50%) translateY(-3px);
        border-color: rgba(245, 161, 23, .58);
        box-shadow:
            inset 0 1px 0 rgba(230, 192, 132, .18),
            inset 0 -2px 4px rgba(0, 0, 0, .28),
            0 10px 18px rgba(0, 0, 0, .2),
            0 0 12px rgba(245, 161, 23, .1);
    }

    .chronicle-roadmap__item:hover::after,
    .chronicle-roadmap__item--active::after {
        transform: translateX(-50%) translateY(-3px);
        box-shadow:
            inset 0 0 0 1px rgba(230, 192, 132, .08),
            0 0 10px rgba(245, 161, 23, .06);
    }

    .chronicle-roadmap__image {
        top: 14px;
        left: 50%;
        z-index: 2;
        width: 68px;
        height: 68px;
        transform: translateX(-50%);
        border-radius: 50%;
        opacity: .96;
        filter: brightness(.92) saturate(.98);
        box-shadow:
            0 0 0 1px rgba(0, 0, 0, .36),
            inset 0 0 10px rgba(0, 0, 0, .18);
    }

    .chronicle-roadmap__item:hover .chronicle-roadmap__image,
    .chronicle-roadmap__item--active .chronicle-roadmap__image {
        transform: translateX(-50%) scale(1.04);
        opacity: 1;
        filter: brightness(1) saturate(1.04);
    }

    .chronicle-roadmap__stage,
    .chronicle-roadmap__title {
        right: auto;
        left: 50%;
        z-index: 4;
        transform: translateX(-50%);
        text-overflow: clip;
        white-space: normal;
        text-shadow:
            0 1px 8px rgba(0, 0, 0, .92),
            0 0 10px rgba(0, 0, 0, .74);
    }

    .chronicle-roadmap__stage {
        top: 92px;
        width: 116px;
        color: rgba(230, 192, 132, .66);
        font-size: 8px;
        line-height: 10px;
        font-weight: 700;
        letter-spacing: .08em;
    }

    .chronicle-roadmap__title {
        top: 103px;
        width: 122px;
        bottom: auto;
        color: #d6d1c7;
        font-size: clamp(11px, .84vw, 13px);
        line-height: 13px;
        font-weight: 700;
    }

    .chronicle-roadmap__item--active .chronicle-roadmap__stage,
    .chronicle-roadmap__item--active .chronicle-roadmap__title {
        color: #f5a117;
    }
}

@media (min-width: 900px) and (max-width: 1280px) {
    .chronicle-roadmap__rail {
        padding: 0 6px;
        transform: translateX(10px);
    }

    .chronicle-roadmap__rail::before,
    .chronicle-roadmap__rail::after {
        right: 22px;
        left: 22px;
    }

    .chronicle-roadmap__list {
        grid-template-columns: repeat(8, minmax(90px, 1fr));
        gap: 4px;
        min-height: 120px;
    }

    .chronicle-roadmap__item {
        max-width: 96px;
        height: 120px;
    }

    .chronicle-roadmap__item::before {
        width: 72px;
        height: 72px;
    }

    .chronicle-roadmap__item::after {
        top: 9px;
        width: 64px;
        height: 64px;
    }

    .chronicle-roadmap__image {
        top: 14px;
        width: 58px;
        height: 58px;
    }

    .chronicle-roadmap__stage {
        top: 81px;
        width: 92px;
        font-size: 7px;
        line-height: 8px;
    }

    .chronicle-roadmap__title {
        top: 91px;
        width: 98px;
        font-size: 11px;
        line-height: 12px;
    }
}

/* Codex restore first roadmap variant */
@media (min-width: 900px) {
    .chronicle-roadmap {
        width: 100%;
        margin-top: clamp(260px, 13.8vw, 344px);
        margin-bottom: 22px;
    }

    .chronicle-roadmap .container {
        width: 100%;
        max-width: none;
        padding-right: 0;
        padding-left: 0;
    }

    .chronicle-roadmap__rail {
        position: relative;
        box-sizing: border-box;
        width: min(98vw, 1492px);
        margin-right: auto;
        margin-left: auto;
        padding: 24px 12px 22px;
        overflow-x: auto;
        overflow-y: visible;
        scrollbar-width: none;
        -ms-overflow-style: none;
        transform: none;
        background:
            linear-gradient(to right, rgba(141, 108, 76, 0), rgba(141, 108, 76, .22) 14%, rgba(141, 108, 76, .22) 86%, rgba(141, 108, 76, 0)) top / 100% 1px no-repeat,
            linear-gradient(to right, rgba(141, 108, 76, 0), rgba(141, 108, 76, .16) 14%, rgba(141, 108, 76, .16) 86%, rgba(141, 108, 76, 0)) bottom / 100% 1px no-repeat,
            radial-gradient(circle at 18% 50%, rgba(145, 111, 78, .09), rgba(145, 111, 78, 0) 26%),
            radial-gradient(circle at 82% 50%, rgba(95, 125, 226, .12), rgba(95, 125, 226, 0) 28%),
            linear-gradient(to right, rgba(4, 5, 5, .94), rgba(4, 5, 5, .72) 18px, rgba(4, 5, 5, 0) 58px) left / 88px 100% no-repeat,
            linear-gradient(to left, rgba(4, 5, 5, .94), rgba(4, 5, 5, .72) 18px, rgba(4, 5, 5, 0) 58px) right / 88px 100% no-repeat,
            linear-gradient(to right, rgba(9, 11, 10, 0), rgba(17, 18, 15, .78) 16%, rgba(17, 18, 15, .78) 84%, rgba(9, 11, 10, 0));
        box-shadow:
            inset 0 1px 0 rgba(203, 175, 142, .04),
            0 18px 42px rgba(0, 0, 0, .24);
    }

    .chronicle-roadmap__rail::-webkit-scrollbar {
        display: none;
    }

    .chronicle-roadmap__rail::before {
        content: "";
        position: absolute;
        top: 50%;
        right: 34px;
        left: 34px;
        height: 2px;
        transform: translateY(-50%);
        border-radius: 0;
        background: linear-gradient(to right, rgba(133, 101, 72, 0), rgba(146, 113, 81, .48), rgba(98, 121, 220, .34), rgba(146, 113, 81, .48), rgba(133, 101, 72, 0));
        box-shadow:
            0 0 14px rgba(146, 113, 81, .18),
            0 0 24px rgba(103, 126, 225, .1);
    }

    .chronicle-roadmap__rail::after {
        content: none;
    }

    .chronicle-roadmap__list {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: repeat(8, 173px);
        gap: 12px;
        align-items: center;
        width: max-content;
        margin-right: auto;
        margin-left: auto;
        min-height: 0;
    }

    .chronicle-roadmap__item {
        appearance: none;
        position: relative;
        display: block;
        width: auto;
        max-width: none;
        height: clamp(76px, 5.8vw, 92px);
        min-width: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
        border: 1px solid rgba(134, 104, 76, .34);
        border-radius: 4px;
        background: #11120f;
        color: #f3e8cd;
        cursor: pointer;
        font: inherit;
        box-shadow:
            inset 0 1px 0 rgba(208, 181, 148, .08),
            inset 0 -1px 0 rgba(0, 0, 0, .72),
            0 10px 22px rgba(0, 0, 0, .26);
        transform: translateZ(0);
        transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
    }

    .chronicle-roadmap__item::before {
        content: none;
    }

    .chronicle-roadmap__item::after {
        content: "";
        position: absolute;
        inset: 1px;
        z-index: 2;
        pointer-events: none;
        width: auto;
        height: auto;
        transform: none;
        border: 1px solid rgba(208, 181, 148, .08);
        border-radius: 3px;
        box-shadow: none;
    }

    .chronicle-roadmap__item:hover {
        z-index: 3;
        border-color: rgba(162, 125, 92, .72);
        box-shadow:
            inset 0 1px 0 rgba(217, 191, 157, .14),
            inset 0 -1px 0 rgba(0, 0, 0, .72),
            0 14px 28px rgba(0, 0, 0, .34),
            0 0 24px rgba(148, 113, 78, .22);
        transform: translateY(-4px) scale(1.045);
    }

    .chronicle-roadmap__item:focus-visible {
        outline: 2px solid rgba(162, 125, 92, .72);
        outline-offset: 3px;
    }

    .chronicle-roadmap__item--active {
        border-color: rgba(166, 129, 95, .76);
        box-shadow:
            inset 0 1px 0 rgba(220, 194, 160, .14),
            inset 0 -1px 0 rgba(0, 0, 0, .72),
            0 14px 30px rgba(0, 0, 0, .32),
            0 0 28px rgba(152, 116, 84, .20);
    }

    .chronicle-roadmap__item:hover::before,
    .chronicle-roadmap__item--active::before,
    .chronicle-roadmap__item:hover::after,
    .chronicle-roadmap__item--active::after {
        transform: none;
    }

    .chronicle-roadmap__image {
        position: absolute;
        inset: 0;
        top: 0;
        left: 0;
        z-index: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        border-radius: 0;
        opacity: .9;
        filter: brightness(.52) saturate(.82);
        transform: scale(1.01);
        box-shadow: none;
        transition: opacity .22s ease, filter .22s ease, transform .22s ease;
    }

    .chronicle-roadmap__item:hover .chronicle-roadmap__image {
        opacity: 1;
        filter: brightness(1) saturate(1.03);
        transform: scale(1.08);
    }

    .chronicle-roadmap__item--active .chronicle-roadmap__image {
        opacity: .9;
        filter: brightness(.52) saturate(.82);
        transform: scale(1.01);
    }

    .chronicle-roadmap__stage,
    .chronicle-roadmap__title {
        position: absolute;
        right: 9px;
        left: 9px;
        z-index: 3;
        display: block;
        overflow: hidden;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
        transform: none;
        text-shadow:
            0 1px 8px rgba(0, 0, 0, .9),
            0 0 12px rgba(0, 0, 0, .72);
    }

    .chronicle-roadmap__stage {
        top: 8px;
        width: auto;
        color: #d9b967;
        font-size: 9px;
        line-height: 10px;
        font-weight: 700;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .chronicle-roadmap__title {
        top: auto;
        bottom: 9px;
        width: auto;
        color: #f3ead6;
        font-size: clamp(10px, .8vw, 13px);
        line-height: 14px;
        font-weight: 700;
    }

    .chronicle-roadmap__item--active .chronicle-roadmap__stage,
    .chronicle-roadmap__item--active .chronicle-roadmap__title {
        color: inherit;
    }
}

@media (min-width: 900px) and (max-width: 1280px) {
    .chronicle-roadmap {
        margin-top: 235px;
    }

    .chronicle-roadmap__rail {
        width: min(98vw, 1248px);
        padding-right: 10px;
        padding-left: 10px;
        transform: none;
    }

    .chronicle-roadmap__list {
        gap: 9px;
        grid-template-columns: repeat(8, 173px);
        width: max-content;
        margin-right: auto;
        margin-left: auto;
        min-height: 0;
    }

    .chronicle-roadmap__stage {
        display: none;
    }

    .chronicle-roadmap__item {
        max-width: none;
        height: clamp(76px, 5.8vw, 92px);
    }
}

/* Codex roadmap active stage refinement */
@media (min-width: 900px) {
    .chronicle-roadmap__item--active {
        border-color: rgba(245, 161, 23, .62);
        box-shadow:
            inset 0 1px 0 rgba(255, 232, 153, .16),
            inset 0 -1px 0 rgba(0, 0, 0, .72),
            0 12px 24px rgba(0, 0, 0, .28),
            0 0 16px rgba(245, 161, 23, .12);
    }

    .chronicle-roadmap__list {
        --roadmap-gap: 12px;
    }

    .chronicle-roadmap__item::before {
        content: none;
    }

    .chronicle-roadmap__list::before {
        content: "";
        position: absolute;
        left: calc((100% - (7 * var(--roadmap-gap))) / 16);
        top: -24px;
        bottom: auto;
        z-index: 5;
        width: 44px;
        height: 2px;
        transform: translateX(-50%);
        border-radius: 999px;
        background: linear-gradient(to right, rgba(245, 161, 23, 0), rgba(245, 161, 23, .92), rgba(245, 161, 23, 0));
        box-shadow:
            0 0 8px rgba(245, 161, 23, .24),
            0 0 14px rgba(245, 161, 23, .12);
        pointer-events: none;
        opacity: 1;
    }

    .chronicle-roadmap__item--active .chronicle-roadmap__stage {
        color: #f5a117;
    }

    .chronicle-roadmap__item--active .chronicle-roadmap__title {
        color: #f2e4bf;
    }

    .chronicle-roadmap__item:nth-child(1).chronicle-roadmap__item--active {
        border-color: rgba(207, 154, 205, .62);
        box-shadow:
            inset 0 1px 0 rgba(244, 214, 244, .15),
            inset 0 -1px 0 rgba(0, 0, 0, .72),
            0 14px 28px rgba(0, 0, 0, .34),
            0 0 22px rgba(189, 129, 194, .30);
    }

    .chronicle-roadmap__item:nth-child(1).chronicle-roadmap__item--active::after {
        border-color: rgba(228, 182, 232, .86);
        box-shadow:
            0 0 14px rgba(205, 145, 210, .34),
            0 0 28px rgba(205, 145, 210, .16);
    }

    .chronicle-roadmap__item:nth-child(1).chronicle-roadmap__item--active::before {
        border-color: rgba(207, 154, 205, .62);
        box-shadow:
            inset 0 1px 0 rgba(244, 214, 244, .15),
            inset 0 -2px 4px rgba(0, 0, 0, .28),
            0 10px 18px rgba(0, 0, 0, .2),
            0 0 12px rgba(189, 129, 194, .14);
    }

    .chronicle-roadmap__item:nth-child(1).chronicle-roadmap__item--active .chronicle-roadmap__stage {
        color: #cd91d2;
    }

    .chronicle-roadmap__list::before {
        background: linear-gradient(to right, rgba(205, 145, 210, 0), rgba(205, 145, 210, .92), rgba(205, 145, 210, 0));
        box-shadow:
            0 0 8px rgba(205, 145, 210, .24),
            0 0 14px rgba(205, 145, 210, .12);
    }
}

@media (min-width: 900px) and (max-width: 1280px) {
    .chronicle-roadmap__list {
        --roadmap-gap: 9px;
    }
}

/* Codex move roadmap labels below cards */
@media (min-width: 900px) {
    .chronicle-roadmap__rail {
        padding-top: 20px;
        padding-bottom: 12px;
    }

    .chronicle-roadmap__item {
        height: clamp(76px, 5.8vw, 92px);
        overflow: visible;
        border: 1px solid rgba(134, 104, 76, .34);
        border-radius: 4px;
        background: #11120f;
        box-shadow:
            inset 0 1px 0 rgba(208, 181, 148, .08),
            inset 0 -1px 0 rgba(0, 0, 0, .72),
            0 10px 22px rgba(0, 0, 0, .26);
        transform: none;
    }

    .chronicle-roadmap__item:hover,
    .chronicle-roadmap__item--active {
        transform: none;
        border-color: rgba(162, 125, 92, .36);
        box-shadow:
            inset 0 1px 0 rgba(217, 191, 157, .14),
            inset 0 -1px 0 rgba(0, 0, 0, .72),
            0 14px 28px rgba(0, 0, 0, .34),
            0 0 24px rgba(152, 116, 84, .20);
    }

    .chronicle-roadmap__item::after {
        inset: -3px;
        border: 1px solid rgba(134, 104, 76, .14);
        border-radius: 6px;
        box-shadow: none;
        transition:
            border-color .25s ease,
            box-shadow .25s ease,
            opacity .25s ease,
            transform .25s ease;
    }

    .chronicle-roadmap__item:hover::after,
    .chronicle-roadmap__item--active::after {
        border-color: rgba(170, 132, 98, .72);
        box-shadow:
            0 0 14px rgba(152, 116, 84, .10);
        transform: scale(1.035);
    }

    .chronicle-roadmap__stage {
        top: auto;
        bottom: -22px;
        right: 0;
        left: 0;
        height: auto;
        padding: 0;
        overflow: visible;
        color: rgba(183, 151, 119, .9);
        font-size: 12px;
        line-height: 14px;
        font-weight: 700;
        text-align: center;
        white-space: nowrap;
        text-transform: none;
        background: none;
        border-bottom: 0;
        text-shadow:
            0 1px 5px rgba(0, 0, 0, .82);
    }

    .chronicle-roadmap__image {
        top: 3px;
        left: 3px;
        width: calc(100% - 6px);
        height: calc(100% - 6px);
        border-radius: 3px;
        opacity: .95;
        filter: brightness(.64) saturate(.9);
        transform: translateZ(0) scale(1.002);
        backface-visibility: hidden;
        will-change: transform, filter, opacity;
    }

    .chronicle-roadmap__item:nth-child(1) .chronicle-roadmap__image {
        object-position: center center;
        transform-origin: center center;
    }

    .chronicle-roadmap__item:hover .chronicle-roadmap__image {
        opacity: 1;
        filter: brightness(.86) saturate(.98);
        transform: scale(1.06);
    }

    .chronicle-roadmap__title {
        bottom: 9px;
    }

    .chronicle-roadmap__item:not(.chronicle-roadmap__item--active) .chronicle-roadmap__title {
        color: #e2ddd5;
        text-shadow:
            0 1px 8px rgba(0, 0, 0, .94),
            0 0 10px rgba(222, 214, 201, .10);
    }

    .chronicle-roadmap__item--active .chronicle-roadmap__image {
        opacity: 1;
        filter: brightness(.86) saturate(.98);
        transform: scale(1.06);
    }

    .chronicle-roadmap__item:nth-child(1):hover {
        border-color: rgba(207, 154, 205, .62);
        box-shadow:
            inset 0 1px 0 rgba(244, 214, 244, .15),
            inset 0 -1px 0 rgba(0, 0, 0, .72),
            0 14px 28px rgba(0, 0, 0, .34),
            0 0 22px rgba(189, 129, 194, .30);
    }

    .chronicle-roadmap__item:nth-child(1):hover::after {
        border-color: rgba(228, 182, 232, .86);
        box-shadow: 0 0 14px rgba(205, 145, 210, .34), 0 0 28px rgba(205, 145, 210, .16);
    }

    .chronicle-roadmap__item:nth-child(2):hover {
        border-color: rgba(223, 197, 132, .62);
        box-shadow:
            inset 0 1px 0 rgba(255, 241, 198, .16),
            inset 0 -1px 0 rgba(0, 0, 0, .72),
            0 14px 28px rgba(0, 0, 0, .34),
            0 0 22px rgba(210, 178, 98, .28);
    }

    .chronicle-roadmap__item:nth-child(2):hover::after {
        border-color: rgba(244, 223, 164, .84);
        box-shadow: 0 0 14px rgba(225, 194, 116, .34), 0 0 28px rgba(225, 194, 116, .15);
    }

    .chronicle-roadmap__item:nth-child(3):hover {
        border-color: rgba(165, 173, 182, .62);
        box-shadow:
            inset 0 1px 0 rgba(232, 236, 240, .14),
            inset 0 -1px 0 rgba(0, 0, 0, .72),
            0 14px 28px rgba(0, 0, 0, .34),
            0 0 22px rgba(143, 152, 161, .24);
    }

    .chronicle-roadmap__item:nth-child(3):hover::after {
        border-color: rgba(204, 210, 218, .82);
        box-shadow: 0 0 14px rgba(167, 176, 186, .30), 0 0 28px rgba(167, 176, 186, .14);
    }

    .chronicle-roadmap__item:nth-child(4):hover {
        border-color: rgba(98, 138, 171, .62);
        box-shadow:
            inset 0 1px 0 rgba(194, 224, 242, .14),
            inset 0 -1px 0 rgba(0, 0, 0, .72),
            0 14px 28px rgba(0, 0, 0, .34),
            0 0 22px rgba(82, 127, 166, .28);
    }

    .chronicle-roadmap__item:nth-child(4):hover::after {
        border-color: rgba(132, 173, 205, .84);
        box-shadow: 0 0 14px rgba(104, 151, 192, .36), 0 0 30px rgba(104, 151, 192, .17);
    }

    .chronicle-roadmap__item:nth-child(5):hover {
        border-color: rgba(92, 104, 58, .64);
        box-shadow:
            inset 0 1px 0 rgba(174, 182, 124, .13),
            inset 0 -1px 0 rgba(0, 0, 0, .72),
            0 14px 28px rgba(0, 0, 0, .34),
            0 0 24px rgba(79, 92, 43, .30);
    }

    .chronicle-roadmap__item:nth-child(5):hover::after {
        border-color: rgba(128, 144, 84, .82);
        box-shadow: 0 0 14px rgba(97, 114, 56, .36), 0 0 30px rgba(97, 114, 56, .17);
    }

    .chronicle-roadmap__item:nth-child(6):hover {
        border-color: rgba(122, 104, 232, .62);
        box-shadow:
            inset 0 1px 0 rgba(211, 203, 255, .14),
            inset 0 -1px 0 rgba(0, 0, 0, .72),
            0 14px 28px rgba(0, 0, 0, .34),
            0 0 24px rgba(108, 83, 225, .30);
    }

    .chronicle-roadmap__item:nth-child(6):hover::after {
        border-color: rgba(154, 135, 255, .84);
        box-shadow: 0 0 14px rgba(128, 104, 242, .38), 0 0 30px rgba(128, 104, 242, .18);
    }

    .chronicle-roadmap__item:nth-child(7):hover {
        border-color: rgba(171, 79, 214, .62);
        box-shadow:
            inset 0 1px 0 rgba(234, 190, 255, .14),
            inset 0 -1px 0 rgba(0, 0, 0, .72),
            0 14px 28px rgba(0, 0, 0, .34),
            0 0 24px rgba(155, 59, 209, .30);
    }

    .chronicle-roadmap__item:nth-child(7):hover::after {
        border-color: rgba(205, 112, 255, .84);
        box-shadow: 0 0 14px rgba(183, 82, 238, .38), 0 0 30px rgba(183, 82, 238, .18);
    }

    .chronicle-roadmap__item--rise-dynasty:hover {
        border-color: rgba(226, 116, 58, .68);
        box-shadow:
            inset 0 1px 0 rgba(255, 214, 168, .18),
            inset 0 -1px 0 rgba(0, 0, 0, .72),
            0 14px 28px rgba(0, 0, 0, .34),
            0 0 26px rgba(214, 92, 36, .34);
    }

    .chronicle-roadmap__item--rise-dynasty:hover::after {
        border-color: rgba(255, 154, 98, .88);
        box-shadow:
            0 0 14px rgba(236, 122, 61, .42),
            0 0 30px rgba(236, 122, 61, .20);
    }

}

/* Codex hero server card refresh */
@media (min-width: 900px) {
    .hero-server-slot.main__sidebar.sidebar .sidebar__servers {
        width: min(428px, calc(100vw - 40px)) !important;
    }

    .hero-server-slot.main__sidebar.sidebar .servers__server {
        width: 100%;
    }

    .hero-server-slot.main__sidebar.sidebar .server,
    .hero-server-slot.main__sidebar.sidebar .server:hover {
        min-height: 79px;
        padding: 11px 16px 11px 88px;
        border: 1px solid rgba(255, 255, 255, .10);
        border-radius: 14px;
        text-decoration: none;
        background:
            radial-gradient(circle at 14% 50%, rgba(248, 177, 255, .18), rgba(248, 177, 255, 0) 24%),
            radial-gradient(circle at 88% 18%, rgba(97, 235, 156, .08), rgba(97, 235, 156, 0) 20%),
            linear-gradient(135deg, rgba(19, 20, 24, .88) 0%, rgba(12, 14, 18, .84) 52%, rgba(10, 12, 15, .88) 100%);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .06),
            inset 0 -1px 0 rgba(255, 255, 255, .02),
            0 22px 46px rgba(0, 0, 0, .32);
        transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
    }

    .hero-server-slot.main__sidebar.sidebar .server:hover {
        border-color: rgba(255, 255, 255, .14);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .08),
            inset 0 -1px 0 rgba(255, 255, 255, .02),
            0 24px 52px rgba(0, 0, 0, .36);
    }

    .hero-server-slot.main__sidebar.sidebar .server::before,
    .hero-server-slot.main__sidebar.sidebar .server::after {
        display: none;
    }

    .hero-server-slot.main__sidebar.sidebar .server__container::after {
        bottom: -5px;
        height: 1px;
        background: linear-gradient(to right, rgba(255, 255, 255, .12), rgba(255, 177, 242, .32), rgba(255, 177, 242, 0));
        box-shadow: none;
    }

    .hero-server-slot.main__sidebar.sidebar .server__row {
        gap: 11px;
        margin-bottom: 9px;
    }

    .hero-server-slot.main__sidebar.sidebar .server__title {
        min-width: 0;
    }

    .hero-server-slot.main__sidebar.sidebar .server__title::before {
        color: #fbf6ff;
        font-size: 20px;
        line-height: 22px;
        font-weight: 700;
        text-shadow: 0 6px 18px rgba(0, 0, 0, .46);
    }

    .hero-server-slot.main__sidebar.sidebar .server__title .color-orange {
        display: block;
        margin-top: 2px;
        color: transparent;
        font-size: 0;
        line-height: 0;
        font-weight: 600;
        letter-spacing: 0;
        text-transform: none;
        text-shadow: none;
    }

    .hero-server-slot.main__sidebar.sidebar .server__title .color-orange::before {
        content: attr(data-server-chronicle);
        display: block;
        color: rgba(222, 213, 232, .78);
        font-size: 9px;
        line-height: 11px;
        font-weight: 600;
        letter-spacing: .12em;
        text-transform: uppercase;
    }

    .hero-server-slot.main__sidebar.sidebar .server__online {
        justify-content: center;
        min-width: 79px;
        gap: 5px;
        padding: 5px 9px 5px 11px;
        border: 1px solid rgba(106, 170, 124, .22);
        border-radius: 9px;
        background: linear-gradient(180deg, rgba(13, 20, 16, .76), rgba(10, 13, 12, .64));
        color: #e6ece7;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .05),
            0 0 14px rgba(78, 144, 96, .06);
    }

    .hero-server-slot.main__sidebar.sidebar .server__online::before {
        width: 6px;
        height: 6px;
        box-shadow:
            0 0 4px rgba(100, 215, 128, .22),
            0 0 10px rgba(76, 168, 99, .12);
    }

    .hero-server-slot.main__sidebar.sidebar .server__online .color-orange {
        color: #fff0c8;
        font-size: 18px;
        line-height: 18px;
        text-shadow: 0 0 12px rgba(255, 232, 182, .18);
    }

    .hero-server-slot.main__sidebar.sidebar .server__progress {
        height: 3px;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, .08);
        box-shadow: none;
        overflow: hidden;
    }

    .hero-server-slot.main__sidebar.sidebar .server__progress::after {
        display: none;
    }

    .hero-server-slot.main__sidebar.sidebar .server__load {
        border-radius: 999px;
        background: linear-gradient(90deg, #ffb6ef 0%, #f8c6ff 48%, #fff4ff 100%);
        box-shadow: 0 0 13px rgba(246, 183, 255, .35);
    }

    .hero-server-slot.main__sidebar.sidebar .server__emblem {
        left: 13px;
        width: 68px;
        height: 68px;
        filter:
            saturate(1.06)
            brightness(1.06)
            drop-shadow(0 7px 16px rgba(0, 0, 0, .46));
    }

    .hero-server-slot.main__sidebar.sidebar .server__emblem-halo {
        opacity: .96;
        filter:
            blur(7px)
            saturate(1.28)
            brightness(1.18)
            drop-shadow(0 0 14px rgba(255, 162, 225, .24));
    }

    .hero-server-slot.main__sidebar.sidebar .server__emblem-core {
        opacity: .98;
        filter: blur(3px) saturate(1.2) brightness(1.18);
    }

    .hero-server-slot.main__sidebar.sidebar .server__emblem-orbit--outer {
        opacity: .78;
    }

    .hero-server-slot.main__sidebar.sidebar .server__emblem-orbit--middle {
        opacity: .62;
    }

    .hero-server-slot.main__sidebar.sidebar .server__emblem-orbit--inner {
        opacity: .54;
    }

    .hero-server-slot.main__sidebar.sidebar .server__emblem-orbit::before {
        border-color: rgba(255, 204, 241, .68);
        border-right-color: rgba(255, 204, 241, .08);
        border-bottom-color: rgba(255, 204, 241, .12);
        box-shadow:
            0 0 10px rgba(255, 160, 226, .20),
            inset 0 0 5px rgba(255, 237, 248, .12);
    }
}

/* Codex ribbon clearance for hero server card */
@media (min-width: 900px) {
    .hero-server-slot.main__sidebar.sidebar {
        margin-top: clamp(34px, 2.35vw, 46px) !important;
    }

    .chronicle-roadmap {
        margin-top: clamp(296px, 15.2vw, 380px) !important;
    }
}

@media (min-width: 900px) and (max-width: 1280px) {
    .hero-server-slot.main__sidebar.sidebar {
        margin-top: 32px !important;
    }

    .chronicle-roadmap {
        margin-top: 266px !important;
    }
}

/* Codex place hero server card under left soldier */
@media (min-width: 900px) {
    .hero-quick-actions {
        top: clamp(510px, 67.5%, 728px);
        left: calc(clamp(92px, 12.4%, 238px) + clamp(240px, 19.6%, 376px) / 2);
        display: flex;
        flex-direction: row;
        gap: clamp(30px, 2.2vw, 44px);
        align-items: center;
        transform: translateX(-50%);
    }

    .hero-server-slot.main__sidebar.sidebar {
        order: 1;
        margin-top: 0 !important;
        transform: translate(-82px, 8px);
    }

    .hero-quick-actions__button--primary {
        order: 2;
        transform: translate(18px, -2px) !important;
    }

    .hero-quick-actions__button--primary:hover {
        transform: translate(18px, -3px) !important;
    }

    .chronicle-roadmap {
        margin-top: clamp(260px, 13.8vw, 344px) !important;
    }
}

@media (min-width: 900px) and (max-width: 1280px) {
    .hero-quick-actions {
        top: 67%;
        left: calc(10.8% + 11.2%);
        gap: 22px;
        transform: translateX(-50%);
    }

    .hero-server-slot.main__sidebar.sidebar {
        transform: translate(-56px, 12px);
    }

    .chronicle-roadmap {
        margin-top: 235px !important;
    }
}

/* Codex align Classic logo above CTA */
@media (min-width: 900px) {
    .hero-quick-actions {
        left: calc(clamp(66px, 10.7%, 206px) + clamp(240px, 19.6%, 376px) / 2);
    }

    .hero-quick-actions__button--primary {
        transform: translate(0, -2px) !important;
    }

    .hero-quick-actions__button--primary:hover {
        transform: translate(0, -3px) !important;
    }

    .lineage-classic-logo {
        left: calc(clamp(66px, 10.7%, 206px) + clamp(240px, 19.6%, 376px) / 2);
        top: clamp(476px, 62.5%, 675px);
        width: clamp(176px, 14vw, 268px);
        transform: translateX(-50%);
    }
}

@media (min-width: 900px) and (max-width: 1280px) {
    .hero-quick-actions {
        left: calc(9.6% + 11.2%);
    }

    .lineage-classic-logo {
        left: calc(9.6% + 11.2%);
        top: 59.4%;
        width: 19%;
        transform: translateX(-50%);
    }
}

/* Codex center Classic on Start Playing */
@media (min-width: 900px) {
    .hero-quick-actions {
        left: calc(clamp(40px, 9.4%, 180px) + clamp(240px, 19.6%, 376px) / 2);
    }

    .lineage-classic-logo {
        left: calc(clamp(40px, 9.4%, 180px) + clamp(240px, 19.6%, 376px) / 2 + clamp(218px, 12.1vw, 236px));
        top: clamp(472px, 62%, 670px);
        transform: translateX(-50%);
    }
}

@media (min-width: 900px) and (max-width: 1280px) {
    .hero-quick-actions {
        left: calc(8.4% + 11.2%);
    }

    .lineage-classic-logo {
        left: calc(8.4% + 11.2% + 218px);
        top: 58.8%;
        transform: translateX(-50%);
    }
}

/* Codex scale hero server card up */
@media (min-width: 900px) {
    .hero-server-slot.main__sidebar.sidebar .sidebar__servers {
        width: min(514px, calc(100vw - 40px)) !important;
    }

    .hero-server-slot.main__sidebar.sidebar .server,
    .hero-server-slot.main__sidebar.sidebar .server:hover {
        min-height: 95px;
        padding: 13px 19px 13px 106px;
        border-radius: 16px;
    }

    .hero-server-slot.main__sidebar.sidebar .server__row {
        gap: 14px;
        margin-bottom: 11px;
    }

    .hero-server-slot.main__sidebar.sidebar .server__title::before {
        font-size: 24px;
        line-height: 26px;
    }

    .hero-server-slot.main__sidebar.sidebar .server__title .color-orange::before {
        font-size: 11px;
        line-height: 13px;
    }

    .hero-server-slot.main__sidebar.sidebar .server__online {
        min-width: 95px;
        gap: 6px;
        padding: 6px 11px 6px 13px;
        border-radius: 11px;
    }

    .hero-server-slot.main__sidebar.sidebar .server__online::before {
        width: 7px;
        height: 7px;
    }

    .hero-server-slot.main__sidebar.sidebar .server__online .color-orange {
        font-size: 22px;
        line-height: 22px;
    }

    .hero-server-slot.main__sidebar.sidebar .server__progress {
        height: 4px;
    }

    .hero-server-slot.main__sidebar.sidebar .server__emblem {
        left: 16px;
        width: 82px;
        height: 82px;
    }
}

@media (min-width: 900px) and (max-width: 1280px) {
    .hero-server-slot.main__sidebar.sidebar .sidebar__servers {
        width: min(500px, calc(100vw - 40px)) !important;
    }
}

/* Codex restore hero server card size and enlarge roadmap */
@media (min-width: 900px) {
    .hero-server-slot.main__sidebar.sidebar .sidebar__servers {
        width: min(428px, calc(100vw - 40px)) !important;
    }

    .hero-server-slot.main__sidebar.sidebar .server,
    .hero-server-slot.main__sidebar.sidebar .server:hover {
        min-height: 79px;
        padding: 11px 16px 11px 88px;
        border-radius: 14px;
    }

    .hero-server-slot.main__sidebar.sidebar .server__row {
        gap: 11px;
        margin-bottom: 9px;
    }

    .hero-server-slot.main__sidebar.sidebar .server__title::before {
        font-size: 20px;
        line-height: 22px;
    }

    .hero-server-slot.main__sidebar.sidebar .server__title .color-orange::before {
        font-size: 9px;
        line-height: 11px;
    }

    .hero-server-slot.main__sidebar.sidebar .server__online {
        min-width: 79px;
        gap: 5px;
        padding: 5px 9px 5px 11px;
        border-radius: 9px;
    }

    .hero-server-slot.main__sidebar.sidebar .server__online::before {
        width: 6px;
        height: 6px;
    }

    .hero-server-slot.main__sidebar.sidebar .server__online .color-orange {
        font-size: 18px;
        line-height: 18px;
    }

    .hero-server-slot.main__sidebar.sidebar .server__progress {
        height: 3px;
    }

    .hero-server-slot.main__sidebar.sidebar .server__emblem {
        left: 13px;
        width: 68px;
        height: 68px;
    }

    .chronicle-roadmap {
        margin-bottom: 32px !important;
    }

    .chronicle-roadmap__rail {
        width: min(98vw, 1492px);
        padding-top: 23px;
        padding-bottom: 20px;
    }

    .chronicle-roadmap__list {
        gap: 12px;
    }

    .chronicle-roadmap__item {
        height: clamp(86px, 6.6vw, 104px);
    }

    .chronicle-roadmap__stage {
        bottom: -23px;
        font-size: 12px;
        line-height: 14px;
    }

    .chronicle-roadmap__title {
        bottom: 10px;
        font-size: clamp(10px, .82vw, 13px);
        line-height: 15px;
    }
}

@media (min-width: 900px) and (max-width: 1280px) {
    .hero-server-slot.main__sidebar.sidebar .sidebar__servers {
        width: min(428px, calc(100vw - 40px)) !important;
    }

    .chronicle-roadmap__rail {
        width: min(98vw, 1248px);
        padding-right: 14px;
        padding-left: 14px;
    }

    .chronicle-roadmap__list {
        gap: 8px;
    }

    .chronicle-roadmap__item {
        height: clamp(77px, 6.3vw, 95px);
    }
}

/* Codex lift roadmap slightly */
@media (min-width: 900px) {
    .chronicle-roadmap {
        margin-top: clamp(238px, 12.7vw, 316px) !important;
    }
}

@media (min-width: 900px) and (max-width: 1280px) {
    .chronicle-roadmap {
        margin-top: 214px !important;
    }
}

/* Codex restore server card and center Classic over only the CTA */
@media (min-width: 900px) {
    .hero-quick-actions {
        left: calc(clamp(92px, 12.4%, 238px) + clamp(240px, 19.6%, 376px) / 2);
    }

    .hero-server-slot.main__sidebar.sidebar {
        transform: translate(-82px, 8px);
    }

    .hero-quick-actions__button--primary {
        transform: translate(-18px, calc(4px + .5vh)) !important;
    }

    .hero-quick-actions__button--primary:hover {
        transform: translate(-18px, calc(3px + .5vh)) !important;
    }

    .lineage-classic-logo {
        left: 33% !important;
        top: 60.2% !important;
        width: 230px !important;
        height: 89px !important;
        opacity: .94 !important;
        transform: translateX(-50%) !important;
    }

    .lineage-classic-version {
        position: absolute;
        left: calc(30.5% + clamp(84px, 5.1vw, 104px)) !important;
        top: calc(58.7% + clamp(46px, 3.7vw, 66px)) !important;
        z-index: 4;
        color: rgba(232, 226, 214, .94);
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(18px, 1.32vw, 26px);
        font-weight: 600;
        line-height: 1;
        letter-spacing: .02em;
        pointer-events: none;
        text-shadow:
            0 2px 8px rgba(0, 0, 0, .72),
            0 0 10px rgba(224, 211, 184, .20);
        transform: translateX(0);
    }
}

@media (min-width: 900px) and (max-width: 1280px) {
    .hero-quick-actions {
        left: calc(10.8% + 11.2%);
    }

    .hero-server-slot.main__sidebar.sidebar {
        transform: translate(-56px, 12px);
    }

    .hero-quick-actions__button--primary {
        transform: translate(-14px, calc(4px + .5vh)) !important;
    }

    .hero-quick-actions__button--primary:hover {
        transform: translate(-14px, calc(3px + .5vh)) !important;
    }

    .lineage-classic-logo {
        left: 33% !important;
        top: 57.5% !important;
        width: 230px !important;
        height: 89px !important;
        opacity: .94 !important;
        transform: translateX(-50%) !important;
    }

    .lineage-classic-version {
        position: absolute;
        left: calc(30.5% + 76px) !important;
        top: calc(56% + 44px) !important;
        z-index: 4;
        color: rgba(232, 226, 214, .94);
        font-family: Georgia, "Times New Roman", serif;
        font-size: 19px;
        font-weight: 600;
        line-height: 1;
        letter-spacing: .02em;
        pointer-events: none;
        text-shadow:
            0 2px 8px rgba(0, 0, 0, .72),
            0 0 10px rgba(224, 211, 184, .20);
        transform: translateX(0);
    }
}
/* Codex final hero stack: center Classic + CTA over shifted online card */
@media (min-width: 900px) {
    .hero-quick-actions {
        left: calc(20.1% + 10% - 20% + 5%) !important;
        top: clamp(462px, calc(56.8% - 2.5%), 614px) !important;
        width: clamp(340px, 26vw, 500px) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: clamp(8px, .72vw, 13px) !important;
        transform: translateX(-50%) !important;
    }

    .hero-classic-cta {
        order: 1 !important;
        width: 230px !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        position: relative !important;
        transform: none !important;
        z-index: 5 !important;
    }

    .hero-classic-cta .lineage-classic-logo {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 230px !important;
        height: 89px !important;
        opacity: .94 !important;
        transform: none !important;
        display: block !important;
        flex: 0 0 auto !important;
    }

    .hero-classic-cta .hero-quick-actions__button--primary {
        order: 2 !important;
        margin-top: 0 !important;
        transform: none !important;
        flex: 0 0 auto !important;
        position: relative !important;
        isolation: isolate !important;
        z-index: 12 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        color: #e5d4bf !important;
        border-color: rgba(132, 108, 78, .64) !important;
        background:
            linear-gradient(to bottom, rgba(35, 28, 21, .88), rgba(16, 13, 10, .90)) !important;
        text-shadow:
            0 1px 8px rgba(0, 0, 0, .66),
            0 0 8px rgba(151, 114, 74, .08) !important;
        box-shadow:
            inset 0 1px 0 rgba(236, 218, 194, .08),
            0 10px 24px rgba(0, 0, 0, .32),
            0 0 12px rgba(126, 95, 62, .10) !important;
        transition:
            border-color .22s ease,
            box-shadow .22s ease,
            background .22s ease,
            color .22s ease !important;
    }

    .hero-classic-cta .hero-quick-actions__button--primary::before {
        content: none !important;
        display: none !important;
    }

    .hero-classic-cta .hero-quick-actions__button--primary::after {
        content: none !important;
        display: none !important;
    }

    .hero-classic-cta .hero-quick-actions__button--primary:hover,
    .hero-classic-cta .hero-quick-actions__button--primary:focus-visible,
    .hero-classic-cta .hero-quick-actions__button--primary.is-proxy-hovered {
        color: #f2e5d2 !important;
        border-color: rgba(172, 138, 96, .84) !important;
        background:
            linear-gradient(to bottom, rgba(46, 36, 27, .90), rgba(20, 15, 12, .92)) !important;
        text-shadow:
            0 1px 10px rgba(0, 0, 0, .74),
            0 0 8px rgba(201, 165, 117, .12) !important;
        box-shadow:
            inset 0 1px 0 rgba(245, 227, 205, .10),
            0 10px 24px rgba(0, 0, 0, .32),
            0 0 14px rgba(156, 118, 74, .12) !important;
        transform: none !important;
    }

    .hero-server-slot.main__sidebar.sidebar {
        order: 2 !important;
        margin-top: 0 !important;
        transform: none !important;
        align-self: center !important;
    }
}

@media (min-width: 900px) and (max-width: 1280px) {
    .hero-quick-actions {
        left: calc(22% + 10% - 20% + 5%) !important;
        top: 53.9% !important;
        width: 360px !important;
    }

    .hero-classic-cta {
        width: 230px !important;
        height: auto !important;
    }
}

/* Codex: keep the first event artwork vivid and lift the title above the letter tiles. */
.events__event:first-child .event__img {
    background-blend-mode: normal !important;
    background-color: transparent !important;
    background-size: contain !important;
    opacity: 1 !important;
    filter: saturate(1.04) contrast(1.02);
}

.events__event:first-child:hover .event__img {
    opacity: 1 !important;
    filter: saturate(1.08) contrast(1.04) brightness(1.03);
}

/* Codex: keep every current and future event title aligned above the visual center. */
.events__event .event__content {
    top: 38% !important;
    color: #fff !important;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, .92),
        0 0 14px rgba(255, 255, 255, .36);
}

.events__event:hover .event__content {
    color: #9cff72 !important;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, .94),
        0 0 14px rgba(116, 255, 96, .68),
        0 0 26px rgba(58, 190, 72, .42);
}

/* Codex: SphereWeb's default event cards desaturate artwork through luminosity blend. Keep all current and future event images full-color. */
.events__event .event__img {
    background-blend-mode: normal !important;
    background-color: transparent !important;
    opacity: 1 !important;
    filter: saturate(1.04) contrast(1.02);
}

.events__event:hover .event__img {
    opacity: 1 !important;
    filter: saturate(1.08) contrast(1.04) brightness(1.03);
}

/* Codex: Files modal redesign to match the dark bronze + lilac site palette. */
body.files-modal-open .page,
body.files-modal-open .videobg {
    filter: none !important;
}

body.files-modal-open .fancybox-bg {
    background: rgba(14, 12, 15, .82) !important;
}

.files-modal {
    width: min(100%, 980px);
    background:
        radial-gradient(circle at top center, rgba(98, 66, 108, .18), transparent 42%),
        linear-gradient(180deg, rgba(31, 24, 28, .98) 0%, rgba(18, 15, 18, .985) 100%);
    border: 1px solid rgba(144, 111, 77, .26);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .52),
        inset 0 1px 0 rgba(255, 231, 214, .05),
        0 0 0 1px rgba(246, 202, 155, .04);
    color: rgba(230, 222, 212, .92);
}

.files-modal .ww__inner,
.files-modal .ww__body {
    background: transparent;
}

.files-modal__body {
    padding: 34px 34px 30px;
    will-change: auto;
}

.files-modal__close {
    opacity: .72;
    transition: opacity .18s ease, transform .18s ease;
}

.files-modal__close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.files-modal__hero {
    margin-bottom: 24px;
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(140, 109, 78, .18);
}

.files-modal__title {
    margin-bottom: 12px;
    color: #f3ece3;
    text-shadow:
        0 2px 12px rgba(0, 0, 0, .72),
        0 0 16px rgba(221, 170, 111, .08);
}

.files-modal__title .color-orange {
    color: #d3a06d;
    text-shadow:
        0 0 14px rgba(213, 155, 88, .16),
        0 0 28px rgba(213, 155, 88, .08);
}

.files-modal__desc {
    max-width: 700px;
    color: rgba(207, 196, 185, .78);
    line-height: 1.7;
}

.files-modal__content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.files-modal__section-head {
    margin: 0;
}

.files-modal__section-head .m-heading__title {
    color: rgba(239, 232, 221, .94);
    letter-spacing: .02em;
}

.files-downloads {
    display: grid;
    gap: 14px;
}

.files-download-card {
    position: relative;
    border: 1px solid rgba(128, 99, 72, .26);
    background:
        linear-gradient(180deg, rgba(34, 28, 28, .92), rgba(22, 18, 19, .96));
    box-shadow:
        inset 0 1px 0 rgba(255, 234, 209, .04),
        0 14px 30px rgba(0, 0, 0, .20);
    overflow: hidden;
    transition: border-color .24s ease, box-shadow .24s ease, background .24s ease;
}

.files-download-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(120, 83, 55, .06), rgba(120, 83, 55, 0));
    opacity: 0;
    transition: opacity .24s ease;
}

.files-download-card:hover,
.files-download-card.is-open {
    border-color: rgba(156, 122, 88, .36);
    box-shadow:
        inset 0 1px 0 rgba(255, 234, 209, .06),
        0 16px 34px rgba(0, 0, 0, .22),
        0 0 16px rgba(191, 128, 90, .05);
}

.files-download-card:hover::before,
.files-download-card.is-open::before {
    opacity: 1;
}

.files-download-card__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
}

.files-download-card__eyebrow {
    margin-bottom: 6px;
    color: rgba(208, 161, 107, .92);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.files-download-card__title {
    color: #f3ede4;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.files-download-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.files-download-card__meta-item {
    padding: 6px 10px;
    border: 1px solid rgba(120, 96, 74, .26);
    background: rgba(255, 255, 255, .02);
    color: rgba(216, 205, 193, .76);
    font-size: 12px;
    line-height: 1;
}

.files-download-card__toggle {
    min-width: 192px;
    min-height: 52px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(147, 115, 82, .50);
    background:
        linear-gradient(180deg, rgba(42, 33, 27, .94), rgba(24, 19, 16, .96));
    color: #eadac7;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease,
        color .18s ease;
}

.files-download-card__toggle:focus {
    border-color: rgba(147, 115, 82, .50);
    background:
        linear-gradient(180deg, rgba(42, 33, 27, .94), rgba(24, 19, 16, .96));
    color: #eadac7;
    box-shadow: none;
}

.files-download-card__toggle:hover,
.files-download-card__toggle:focus-visible,
.files-download-card.is-open .files-download-card__toggle {
    border-color: rgba(188, 145, 98, .82);
    background:
        linear-gradient(180deg, rgba(56, 42, 32, .96), rgba(28, 22, 18, .98));
    color: #f4e6d4;
    box-shadow:
        inset 0 1px 0 rgba(255, 236, 214, .08),
        0 0 16px rgba(180, 124, 74, .12);
}

.files-download-card__toggle-icon {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform .18s ease;
}

.files-download-card.is-open .files-download-card__toggle-icon {
    transform: rotate(225deg) translateY(-1px);
}

.files-download-card__sources {
    padding: 0 20px 20px;
    display: grid;
    gap: 10px;
}

.files-download-card__sources[hidden] {
    display: none !important;
}

.files-download-source {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(113, 89, 71, .20);
    background:
        linear-gradient(180deg, rgba(28, 25, 27, .88), rgba(20, 18, 21, .94));
}

.files-download-source__info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.files-download-source__icon {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 115, 90, .24);
    background: rgba(255, 255, 255, .03);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.files-download-source__icon img {
    max-width: 22px;
    max-height: 22px;
    opacity: .95;
}

.files-download-source__title {
    color: #f1e7dc;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.files-download-source__note {
    margin-top: 4px;
    color: rgba(205, 195, 185, .68);
    font-size: 12px;
    line-height: 1.55;
}

.files-download-source__action {
    min-width: 128px;
    padding: 11px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(159, 120, 90, .54);
    background:
        linear-gradient(180deg, rgba(57, 40, 30, .94), rgba(29, 21, 18, .96));
    color: #f4e8d8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease,
        color .18s ease;
}

.files-download-source__action:hover,
.files-download-source__action:focus-visible {
    border-color: rgba(202, 149, 100, .82);
    background:
        linear-gradient(180deg, rgba(72, 49, 34, .96), rgba(34, 23, 19, .98));
    color: #fff1e0;
    box-shadow:
        0 0 18px rgba(177, 122, 76, .12),
        inset 0 1px 0 rgba(255, 236, 214, .08);
}

.files-modal__alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 18px 20px;
    border: 1px solid rgba(155, 88, 67, .28);
    background:
        linear-gradient(180deg, rgba(54, 27, 23, .34), rgba(27, 18, 18, .72));
    box-shadow:
        inset 0 1px 0 rgba(255, 215, 190, .03),
        0 12px 26px rgba(0, 0, 0, .16);
}

.files-modal__alert-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.files-modal__alert-img {
    width: 22px;
    height: 22px;
}

.files-modal__alert-title {
    color: #f1b19b;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.files-modal__alert-text {
    margin-top: 6px;
    color: rgba(229, 208, 198, .82);
    line-height: 1.65;
}

.files-modal__alert-text code {
    padding: 2px 6px;
    border: 1px solid rgba(185, 132, 102, .26);
    background: rgba(255, 255, 255, .03);
    color: #f0d8c8;
}

.files-modal__register {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 20px 22px;
    border: 1px solid rgba(116, 85, 99, .26);
    background:
        radial-gradient(circle at left center, rgba(129, 77, 127, .12), transparent 34%),
        linear-gradient(180deg, rgba(32, 24, 31, .92), rgba(19, 16, 21, .96));
}

.files-modal__register-copy {
    color: rgba(214, 204, 196, .74);
    line-height: 1.7;
}

.files-modal__register-btn {
    min-width: 196px;
    min-height: 56px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(150, 91, 141, .52);
    background:
        linear-gradient(180deg, rgba(67, 40, 64, .96), rgba(36, 22, 36, .98));
    color: #f4d6ef;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 233, 248, .06),
        0 0 22px rgba(136, 72, 130, .12);
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease,
        color .18s ease;
}

.files-modal__register-btn:hover,
.files-modal__register-btn:focus-visible {
    border-color: rgba(183, 114, 169, .76);
    background:
        linear-gradient(180deg, rgba(80, 48, 76, .98), rgba(45, 27, 44, .98));
    color: #ffebfb;
    box-shadow:
        inset 0 1px 0 rgba(255, 239, 250, .08),
        0 0 24px rgba(168, 96, 156, .16);
}

@media (max-width: 860px) {
    .files-modal__body {
        padding: 22px 18px 20px;
    }

    .files-download-card__main,
    .files-download-source,
    .files-modal__register {
        grid-template-columns: 1fr;
    }

    .files-download-card__toggle,
    .files-download-source__action,
    .files-modal__register-btn {
        width: 100%;
        min-width: 0;
    }
}

/* Codex: rebuild the footer into a LastHope-owned block and retire the old generic SphereWeb look. */
[data-section="footer"] {
    position: relative;
}

.footer {
    display: block;
    padding-top: 70px;
    padding-bottom: 46px;
    color: #f2ede6;
}

.footer__navigation {
    position: relative;
    display: grid;
    grid-template-columns: minmax(320px, 1.08fr) minmax(0, 1.52fr);
    gap: 24px;
    align-items: start;
    padding: 28px 0 26px;
    border-top: 1px solid rgba(137, 104, 78, 0.34);
    border-bottom: 0;
}

.footer__navigation::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(130, 96, 73, 0) 0%,
        rgba(130, 96, 73, 0.12) 18%,
        rgba(130, 96, 73, 0.26) 42%,
        rgba(130, 96, 73, 0.42) 100%
    );
}

.footer__site.footer-brand {
    position: relative;
    max-width: none;
    margin: 0;
    padding: 28px 30px 26px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(140, 104, 79, 0.34);
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.025), transparent 26%),
        radial-gradient(circle at 84% 100%, rgba(119, 88, 64, 0.035), transparent 36%),
        linear-gradient(180deg, rgba(18, 18, 19, 0.99) 0%, rgba(11, 11, 12, 0.993) 56%, rgba(7, 7, 8, 0.996) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 234, 214, 0.06),
        inset 0 -1px 0 rgba(47, 39, 33, 0.1),
        0 20px 46px rgba(4, 4, 6, 0.32);
}

.footer__site.footer-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.38;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.13) 0 1px, transparent 1.8px),
        radial-gradient(circle at 23% 9%, rgba(255, 241, 233, 0.08) 0 0.9px, transparent 1.5px),
        radial-gradient(circle at 38% 24%, rgba(255, 255, 255, 0.08) 0 0.9px, transparent 1.4px),
        radial-gradient(circle at 61% 11%, rgba(242, 223, 211, 0.08) 0 1px, transparent 1.7px),
        radial-gradient(circle at 74% 20%, rgba(255, 255, 255, 0.08) 0 0.8px, transparent 1.4px),
        radial-gradient(circle at 88% 14%, rgba(230, 212, 201, 0.06) 0 0.9px, transparent 1.5px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 42%);
}

.footer__site.footer-brand > * {
    position: relative;
    z-index: 1;
}

.footer-brand__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-left: 4px;
}

.footer-brand__divider {
    width: 142px;
    height: 1px;
    margin: 14px 0 0 6px;
    background: linear-gradient(
        90deg,
        rgba(217, 178, 137, 0.94) 0%,
        rgba(201, 157, 119, 0.72) 28%,
        rgba(170, 128, 95, 0.34) 62%,
        rgba(170, 128, 95, 0.08) 84%,
        rgba(170, 128, 95, 0) 100%
    );
    box-shadow:
        0 0 10px rgba(133, 94, 67, 0.1),
        0 0 18px rgba(133, 94, 67, 0.04);
}

.footer-brand__title {
    display: none;
}

.footer-brand__motto {
    position: relative;
    width: fit-content;
    max-width: calc(100% - 12px);
    margin: auto auto 20px;
    padding: 22px 26px 0;
    display: grid;
    gap: 2px;
    text-align: center;
}

.footer-brand__motto::before,
.footer-brand__motto::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 16px;
    height: 1px;
    background: linear-gradient(90deg, rgba(212, 170, 129, 0), rgba(212, 170, 129, 0.58));
    transform: translateY(-50%);
}

.footer-brand__motto::before {
    left: 0;
}

.footer-brand__motto::after {
    right: 0;
    transform: translateY(-50%) scaleX(-1);
}

.footer-brand__motto span {
    display: block;
    font-family: var(--font-second);
    font-size: 16px;
    line-height: 1.14;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: rgba(242, 232, 220, 0.88);
    text-shadow:
        0 1px 0 rgba(255, 244, 232, 0.02),
        0 4px 10px rgba(0, 0, 0, 0.1);
}

.footer-brand__motto span + span {
    margin-top: 2px;
}

.footer__contacts {
    margin: 22px 0 0;
}

.footer__fnav.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    min-width: 0;
}

.footer-links__box {
    position: relative;
    min-height: 0;
    padding: 22px 22px 20px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(131, 98, 74, 0.28);
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.02), transparent 24%),
        radial-gradient(circle at 86% 100%, rgba(117, 88, 66, 0.03), transparent 34%),
        linear-gradient(180deg, rgba(19, 19, 20, 0.975), rgba(9, 9, 10, 0.986));
    box-shadow:
        inset 0 1px 0 rgba(255, 236, 216, 0.04),
        inset 0 -1px 0 rgba(46, 39, 33, 0.08),
        0 16px 34px rgba(4, 4, 6, 0.2);
}

.footer-links__box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.26;
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.08) 0 0.8px, transparent 1.4px),
        radial-gradient(circle at 62% 11%, rgba(236, 220, 209, 0.06) 0 0.8px, transparent 1.4px),
        radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.06) 0 0.7px, transparent 1.3px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 40%);
}

.footer-links__box > * {
    position: relative;
    z-index: 1;
}

.footer-links__box_note {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.02), transparent 22%),
        radial-gradient(circle at bottom left, rgba(122, 92, 69, 0.035), transparent 34%),
        linear-gradient(180deg, rgba(20, 20, 21, 0.975), rgba(10, 10, 11, 0.986));
}

.footer-links__header {
    min-height: 0;
    margin-bottom: 14px;
}

.footer-links__title {
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(212, 170, 129, 0.88);
}

.footer-links__title_pair {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-links__title-accent {
    color: rgba(224, 186, 144, 0.76);
}

.footer-links__list {
    display: grid;
    gap: 0;
}

.footer .fnav__el {
    margin-bottom: 9px;
}

.footer .fnav__el:last-child {
    margin-bottom: 0;
}

.footer .fnav__link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    line-height: 1.12;
    color: rgba(230, 223, 213, 0.78);
    text-decoration: none;
    transition: color 0.18s ease, text-shadow 0.18s ease, transform 0.18s ease;
}

.footer .fnav__link:hover {
    color: #ebd1b7;
    text-shadow: 0 0 14px rgba(171, 116, 78, 0.24);
    transform: translateX(2px);
}

.footer-links__note {
    max-width: 31ch;
    font-size: 13px;
    line-height: 1.24;
    color: rgba(206, 191, 176, 0.76);
    text-wrap: auto;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    padding-top: 12px;
}

.footer-meta__line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(130, 96, 73, 0.42), rgba(130, 96, 73, 0));
}

.footer-meta__copy {
    font-size: 13px;
    letter-spacing: 0.08em;
    color: rgba(196, 171, 146, 0.66);
}

.footer-meta__subcopy {
    font-size: 13px;
    color: rgba(174, 169, 162, 0.64);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.footer-social .scl__item {
    width: 42px;
    height: 42px;
    margin: 0;
    border: 1px solid rgba(124, 92, 72, 0.36);
    border-radius: 12px;
    background: rgba(24, 21, 26, 0.78);
    color: rgba(233, 223, 211, 0.82);
    font-size: 16px;
    transition: border-color 0.22s ease, color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.footer-social .scl__item:after {
    opacity: 0;
    transform: scale(0.88);
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(91, 48, 72, 0.42), rgba(145, 103, 77, 0.34));
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.footer-social .scl__item:hover {
    color: #fff8f0;
    border-color: rgba(179, 133, 102, 0.6);
    background-color: rgba(39, 31, 34, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 237, 220, 0.05),
        0 0 20px rgba(111, 58, 82, 0.18);
}

.footer-social .scl__item:hover:after {
    opacity: 1;
    transform: scale(1);
}

.footer-social .gwi {
    position: relative;
    z-index: 1;
}

/* Compact notice for roadmap stages that are not published yet. */
.chronicle-roadmap-info {
    width: min(calc(100vw - 32px), 520px);
    max-width: 520px;
    color: rgba(232, 224, 214, .92);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, .56),
        0 0 34px rgba(105, 65, 84, .12);
}

.chronicle-roadmap-info .ww__inner {
    background: transparent;
}

.chronicle-roadmap-info__body {
    padding: 34px 42px 36px;
    border: 1px solid rgba(150, 110, 83, .42);
    border-radius: 5px;
    background:
        radial-gradient(circle at 50% 0, rgba(91, 54, 83, .20), transparent 52%),
        linear-gradient(180deg, rgba(34, 29, 32, .98), rgba(20, 18, 20, .99));
    box-shadow:
        inset 0 1px 0 rgba(255, 236, 216, .05),
        inset 0 -1px 0 rgba(0, 0, 0, .42);
    text-align: center;
}

.chronicle-roadmap-info__close {
    top: 15px;
    right: 15px;
    z-index: 2;
    opacity: .72;
}

.chronicle-roadmap-info__close:hover {
    opacity: 1;
}

.chronicle-roadmap-info__close:hover::before {
    background: #b98a61;
    transform: rotate(-45deg);
}

.chronicle-roadmap-info__close:hover::after {
    background: #b98a61;
    transform: rotate(45deg);
}

/* Keep close controls as an X on hover in every site modal. */
.ww__close:hover,
.files-modal__close:hover {
    opacity: 1;
    transform: none;
}

.ww__close:hover::before {
    background: #b98a61;
    transform: rotate(-45deg);
}

.ww__close:hover::after {
    background: #b98a61;
    transform: rotate(45deg);
}

.chronicle-roadmap-info__eyebrow {
    margin-bottom: 10px;
    color: #b98a61;
    font-size: 11px;
    line-height: 14px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.chronicle-roadmap-info__title {
    color: #f0e7dc;
    font-family: var(--font-second);
    font-size: 24px;
    line-height: 30px;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .54);
}

.chronicle-roadmap-info__text {
    max-width: 400px;
    margin: 14px auto 0;
    color: rgba(202, 194, 185, .80);
    font-size: 14px;
    line-height: 22px;
}

@media (max-width: 1180px) {
    .footer__navigation {
        grid-template-columns: 1fr;
    }

    .footer__fnav.footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .chronicle-roadmap-info__body {
        padding: 30px 24px 32px;
    }

    .chronicle-roadmap-info__title {
        font-size: 21px;
        line-height: 27px;
    }

    .footer {
        padding-top: 52px;
        padding-bottom: 36px;
    }

    .footer__navigation {
        gap: 18px;
        padding: 22px 0 22px;
    }

    .footer__site.footer-brand,
    .footer-links__box {
        padding: 22px 20px 20px;
        border-radius: 16px;
    }

    .footer-brand__title {
        max-width: 18ch;
        font-family: var(--font-second);
        font-style: normal;
        font-size: 20px;
        line-height: 1.12;
        white-space: normal;
    }

    .footer__fnav.footer-links {
        grid-template-columns: 1fr;
    }
}

/* Discourage casual copying without interfering with forms and editors. */
html.content-copy-protected body {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

html.content-copy-protected input,
html.content-copy-protected textarea,
html.content-copy-protected [contenteditable="true"],
html.content-copy-protected [contenteditable="true"] *,
html.content-copy-protected [contenteditable=""],
html.content-copy-protected [contenteditable=""] *,
html.content-copy-protected .allow-copy,
html.content-copy-protected .allow-copy * {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

html.content-copy-protected img,
html.content-copy-protected picture,
html.content-copy-protected svg,
html.content-copy-protected video,
html.content-copy-protected canvas {
    -webkit-user-drag: none;
    user-drag: none;
}

@media print {
    html.content-copy-protected body {
        display: none !important;
    }
}
