/* Novus Modern owns its presentation. No imports from other templates. */

:root {
    color-scheme: dark;
    --v2-bg: var(--color-bg);
    --v2-accent: var(--color-font-primary);
    --v2-text: var(--color-font-secondary);
    --v2-muted: var(--color-muted);
    --v2-line: var(--color-border);
    --v2-panel: var(--color-panel);
}

/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.v2-site {
    margin: 0;
    background: var(--v2-bg);
    color: var(--v2-text);
    font: 500 16px/1.6 'Rajdhani', 'Segoe UI', Arial, sans-serif;
}

button,
input,
select {
    font: inherit;
}

button,
a,
select {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: 0;
    background: transparent;
}

button,
select {
    color: inherit;
}

img {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
    outline: 2px solid var(--v2-accent);
    outline-offset: 4px;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    line-height: 1.25;
}

select {
    background: color-mix(in srgb, var(--color-panel) 82%, var(--color-font-secondary));
    border: 1px solid var(--v2-line);
    border-radius: 7px;
    padding: 5px;
    font-size: 12px;
    max-width: 100%;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.v2-menu-bar {
    position: relative;
    z-index: 30;
    margin: 0;
    background: color-mix(in srgb, var(--color-navigation-bg) 96%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--color-navigation-border) 20%, transparent);
}

.v2-site[data-custom-sticky-navigation="1"] .v2-menu-bar {
    position: sticky;
    top: 0;
}

.v2-menu-inner {
    max-width: calc(var(--custom-content-width, 1320) * 1px);
    margin: auto;
    min-height: 76px;
    padding: 0 24px;
}
.v2-menu {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2px;
    list-style: none;
    padding: 0;
    margin: 0;
    min-height: 76px;
}

.v2-menu-item {
    position: relative;
    display: flex;
}

.v2-menu-item > a,
.v2-submenu-toggle {
    position: relative;
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 0 20px;
    border-radius: 0;
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .055em;
}

.v2-menu-item > a:after,
.v2-submenu-toggle:after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 2px;
    background: var(--v2-accent);
    transform: scaleX(0);
    transition: transform .2s;
}

.v2-menu-item > a:hover,
.v2-submenu-toggle:hover,
.v2-current > a,
.v2-current > .v2-submenu-toggle {
    color: var(--v2-accent);
    background: color-mix(in srgb, var(--color-font-secondary) 2%, transparent);
}

.v2-menu-item > a:hover:after,
.v2-submenu-toggle:hover:after,
.v2-current > a:after,
.v2-current > .v2-submenu-toggle:after {
    transform: scaleX(1);
}

.v2-nav-icon {
    display: none;
    font-size: 15px;
    color: var(--v2-accent);
}

.v2-site[data-custom-navigation-icons="always"] .v2-nav-icon,
.v2-site[data-custom-navigation-icons="active"] .v2-current > a > .v2-nav-icon,
.v2-site[data-custom-navigation-icons="active"] .v2-current > .v2-submenu-toggle > .v2-nav-icon {
    display: inline-block;
}

.v2-submenu {
    position: absolute;
    inset-block-start: 100%;
    inset-inline-start: 0;
    min-width: 215px;
    max-width: min(290px, 85vw);
    list-style: none;
    background: var(--color-submenu-bg);
    border: 1px solid color-mix(in srgb, var(--color-navigation-border) 17%, transparent);
    box-shadow: 0 18px 45px color-mix(in srgb, var(--color-shadow) 53%, transparent);
    border-radius: 0;
    padding: 8px;
    display: none;
}

.v2-menu-item.v2-open > .v2-submenu {
    display: block;
}

.v2-submenu .v2-submenu {
    inset-block-start: 0;
    inset-inline-start: 100%;
}

.v2-submenu .v2-menu-item {
    display: block;
}

.v2-submenu a,
.v2-submenu-toggle {
    width: 100%;
    min-height: 44px;
    text-align: start;
}

.v2-menu-toggle {
    display: none;
    padding: 18px;
    width: 100%;
    text-align: start;
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
}


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

.v2-hero {
    height: calc(var(--custom-hero-height, 530) * 1px);
    min-height: 300px;
    position: relative;
    isolation: isolate;
    overflow: hidden;

    background-size: cover;
    background-position: center top;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    padding: 45px 20px;
}

.v2-hero:before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
            radial-gradient(
                    circle at center,
                    color-mix(in srgb, var(--color-hero-overlay) 6%, transparent) 0%,
                    color-mix(in srgb, var(--color-hero-overlay) 31%, transparent) 52%,
                    var(--v2-bg) 100%
            ),
            linear-gradient(
                    180deg,
                    color-mix(in srgb, var(--color-hero-overlay) 8%, transparent),
                    var(--v2-bg)
            );
}

.v2-brand {
    display: block;
    filter: drop-shadow(0 10px 35px color-mix(in srgb, var(--color-shadow) 60%, transparent));
    transform: scale(1);
    transform-origin: center;
    transition: transform .25s ease, filter .25s ease;
}

.v2-brand:hover,
.v2-brand:focus-visible {
    transform: scale(1.04);
    filter:
        drop-shadow(0 10px 35px color-mix(in srgb, var(--color-shadow) 60%, transparent))
        drop-shadow(0 0 24px color-mix(in srgb, var(--color-font-primary) 62%, transparent));
}


/* =========================================================
   LOGO
   =========================================================
   IMPORTANT:
   Logo is now treated as ONE normal image.
   No more 2-frame / horizontal sprite behavior.
   ========================================================= */

.v2-logo {
    display: block;

    width: min(
            calc(var(--custom-logo-width, 400) * 1px),
            70vw
    );

    aspect-ratio:
            var(--custom-logo-width, 400) /
        var(--custom-logo-height, 352);

    background-repeat: no-repeat;

    /* Always show the whole logo */
    background-size: contain;

    /* Always center the logo */
    background-position: center;

    flex-shrink: 0;
}


/* Uploaded logo uses exactly the same behavior */
.v2-site[data-logo-uploaded="1"] .v2-logo {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}


/* HERO CAPTION */

.v2-hero-caption {
    margin-top: 28px;
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .24em;
    text-align: center;
    color: var(--color-hero-caption);
    text-shadow: 0 2px 12px var(--color-shadow);
}

.v2-hero-caption:empty {
    display: none;
}

.v2-site[data-custom-show-hero="0"] .v2-hero {
    display: none;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.v2-layout {
    max-width: calc(var(--custom-content-width, 1320) * 1px);
    padding: 0 24px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 315px;
    gap: 28px;

    margin: 0 auto 80px;

    direction: ltr;
    position: relative;
}

.v2-main,
.v2-sidebar {
    min-width: 0;
    direction: ltr;
}

html[dir="rtl"] .v2-main,
html[dir="rtl"] .v2-sidebar {
    direction: rtl;
}

.v2-main {
    grid-column: 1;
    grid-row: 1;
}

.v2-sidebar {
    grid-column: 2;
    grid-row: 1;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.v2-site.sidebar-left .v2-layout {
    grid-template-columns: 315px minmax(0, 1fr);
}

.v2-site.sidebar-left .v2-main {
    grid-column: 2;
}

.v2-site.sidebar-left .v2-sidebar {
    grid-column: 1;
}

.v2-home {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.v2-site[data-custom-section-order="news-first"] .v2-news {
    order: -1;
}


/* =========================================================
   CARDS
   ========================================================= */

.v2-card {
    background: linear-gradient(135deg, color-mix(in srgb, var(--color-panel) 88%, var(--color-font-secondary)), var(--color-panel));
    border: 1px solid var(--v2-line);
    border-radius: 14px;
    padding: 22px;
}

.v2-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.v2-card-heading h2 {
    font-size: 15px;
    font-weight: 600;
}

.v2-card-heading > span {
    font-size: 11px;
    color: var(--v2-muted);
}

.v2-status-badge {
    border: 1px solid var(--v2-line);
    border-radius: 30px;
    padding: 3px 8px;
}

.v2-status-badge[data-state="online"] {
    color: var(--color-success);
    background: color-mix(in srgb, var(--color-success) 8%, transparent);
}

.v2-online-number {
    font-size: 48px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.04em;
    color: var(--v2-accent);
}

.v2-status > p {
    margin-top: 9px;
    font-size: 12px;
    color: var(--v2-muted);
}


/* =========================================================
   FACTS
   ========================================================= */

.v2-facts {
    margin: 0;
    font-size: 12px;
}

.v2-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--v2-line);
}

.v2-facts > div:last-child {
    border: 0;
    padding-bottom: 0;
}

.v2-facts dt {
    color: var(--v2-muted);
}

.v2-facts dd {
    margin: 0;
    text-align: end;
    overflow-wrap: anywhere;
}


/* =========================================================
   CHIP / RACE STATUS
   ========================================================= */

.v2-chip {
    margin-bottom: 13px;
}

.v2-chip-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 6px;
    color: var(--v2-muted);
}

.v2-chip progress {
    appearance: none;
    display: block;
    width: 100%;
    height: 5px;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background: color-mix(in srgb, var(--color-font-secondary) 4%, transparent);
    accent-color: var(--race-color);
}

.v2-chip progress::-webkit-progress-bar {
    background: color-mix(in srgb, var(--color-font-secondary) 4%, transparent);
}

.v2-chip progress::-webkit-progress-value {
    background: var(--race-color);
    border-radius: 20px;
}

.v2-chip progress::-moz-progress-bar {
    background: var(--race-color);
}

.v2-chip:nth-child(1) {
    --race-color: var(--color-accretia);
}

.v2-chip:nth-child(2) {
    --race-color: var(--color-bellato);
}

.v2-chip:nth-child(3) {
    --race-color: var(--color-cora);
}


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

.v2-community {
    background:
            radial-gradient(
                    ellipse at top right,
                    color-mix(in srgb, var(--color-discord-accent) 23%, transparent),
                    transparent 85%
            ),
            var(--color-discord-panel);
}

.v2-community h2 {
    margin: 10px 0;
    font-size: 21px;
}

.v2-community p {
    font-size: 12px;
    color: var(--v2-muted);
}

.v2-live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--color-success);
    border-radius: 50%;
    margin-inline-end: 5px;
}

.v2-discord-members {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 18px 0;
    gap: 0;
}

.v2-discord-members li {
    margin-inline-end: -7px;
}

.v2-discord-members img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid color-mix(in srgb, var(--color-discord-panel) 85%, var(--color-font-secondary));
    object-fit: cover;
}


/* =========================================================
   BUTTON
   ========================================================= */

.v2-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    background: var(--v2-accent);
    color: var(--color-button-text);

    border-radius: 8px;
    padding: 10px 18px;

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

    margin-top: 16px;
}

.v2-community .v2-button {
    background: var(--color-discord-accent);
    color: var(--color-discord-button-text);
    width: 100%;
}

.v2-button:hover {
    filter: brightness(1.12);
}


/* =========================================================
   LEADERBOARD
   ========================================================= */

.v2-leaderboard {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: rank;
}

.v2-leaderboard li {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--v2-line);
    font-size: 12px;
}

.v2-leaderboard li:last-child {
    border: 0;
    padding-bottom: 0;
}

.v2-rank-number {
    color: var(--v2-accent);
    width: 16px;
    font-weight: 700;
}

.v2-rank-name {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.v2-rank-name small {
    display: block;
    color: var(--v2-muted);
    font-size: 10px;
}

.v2-rank-meta {
    min-height: 18px;
    margin-top: 3px;
}

.v2-rank-meta img {
    display: inline-block;
    width: auto;
    height: 18px;
    margin-inline-end: 5px;
    object-fit: contain;
    vertical-align: middle;
}

.v2-ranking-loading {
    color: var(--v2-muted);
    justify-content: center;
}

.v2-leaderboard[aria-busy="true"] {
    opacity: .72;
}

.v2-rank-value {
    font-variant-numeric: tabular-nums;
    color: var(--v2-muted);
    font-size: 11px;
}


/* =========================================================
   SLIDESHOW
   ========================================================= */

.v2-slideshow {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--v2-line);
    background: var(--v2-panel);
}

.v2-slide {
    display: block;
    width: 100%;
    aspect-ratio: 3.4;
    object-fit: cover;
}

.v2-slide-prev,
.v2-slide-next {
    position: absolute;
    top: 45%;
    background: color-mix(in srgb, var(--color-shadow) 53%, transparent);
    width: 30px;
    height: 38px;
    border-radius: 6px;
    font-size: 25px;
    line-height: 1;
}

.v2-slide-prev {
    left: 12px;
}

.v2-slide-next {
    right: 12px;
}

.v2-slide-dots {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;

    display: flex;
    justify-content: center;
    gap: 6px;
}

.v2-slide-dots button {
    height: 5px;
    width: 18px;
    background: color-mix(in srgb, var(--color-font-secondary) 38%, transparent);
    border-radius: 8px;
    padding: 0;
}

.v2-slide-dots button[aria-pressed="true"] {
    background: var(--v2-accent);
    width: 28px;
}


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

.v2-section-heading > span,
.v2-footer-kicker {
    color: var(--v2-accent);
    font-size: 10px;
    letter-spacing: .2em;
    font-weight: 600;
}

.v2-section-heading h1 {
    font-size: 30px;
    margin: 8px 0 22px;
    letter-spacing: -.025em;
}

.v2-news-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;

    margin-bottom: 22px;
    padding-bottom: 18px;

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

.v2-news-tabs button {
    padding: 7px 17px;
    border-radius: 7px;
    color: var(--v2-muted);
    font-size: 12px;
}

.v2-news-tabs button[aria-pressed="true"] {
    background: var(--v2-accent);
    color: var(--color-button-text);
    font-weight: 650;
}

.v2-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.v2-news-card {
    background: var(--v2-panel);
    border: 1px solid var(--v2-line);
    border-radius: 12px;
    overflow: hidden;
}

.v2-news-cover {
    display: block;
    position: relative;
    overflow: hidden;
}

.v2-news-cover img {
    width: 100%;
    aspect-ratio: 1.9;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.v2-news-cover .v2-news-image-template {
    display: none;
}

.v2-news-card:not(.v2-has-post-cover) .v2-news-image-template,
.v2-site[data-custom-news-image-source="template"] .v2-news-cover .v2-news-image-template {
    display: block;
}

.v2-site[data-custom-news-image-source="template"] .v2-news-cover .v2-news-image-post {
    display: none;
}

.v2-news-card:hover .v2-news-cover img {
    transform: scale(1.03);
}

.v2-news-cover:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, color-mix(in srgb, var(--color-shadow) 53%, transparent));
}

.v2-news-cover time,
.v2-news-cover > span {
    position: absolute;
    bottom: 13px;
    z-index: 1;
    font-size: 10px;
    letter-spacing: .06em;
}

.v2-news-cover time {
    inset-inline-end: 16px;
}

.v2-news-cover > span {
    inset-inline-start: 16px;
    color: var(--color-news-category);
    text-transform: uppercase;
}

.v2-news-copy {
    padding: 20px;
}

.v2-news-copy h2 {
    font-size: 17px;
}

.v2-news-copy p {
    font-size: 12px;
    color: var(--v2-muted);
    margin: 12px 0 18px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.v2-read-more {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--v2-accent);
}

.v2-site[data-custom-news-layout="list"] .v2-news-grid {
    grid-template-columns: 1fr;
}

.v2-site[data-custom-news-layout="list"] .v2-news-card {
    display: grid;
    grid-template-columns: 35% 1fr;
}

.v2-site[data-custom-news-layout="list"] .v2-news-cover img {
    height: 100%;
}

.v2-empty {
    color: var(--v2-muted);
    padding: 22px;
    text-align: center;
}


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

.v2-footer {
    border-top: 1px solid color-mix(in srgb, var(--color-font-primary) 25%, transparent);

    background:
            radial-gradient(
                    ellipse at bottom left,
                    color-mix(in srgb, var(--color-font-primary) 8%, transparent),
                    transparent 65%
            ),
            var(--color-footer-bg);
}

.v2-footer-inner {
    max-width: calc(var(--custom-content-width, 1320) * 1px);
    margin: auto;
    padding: 54px 24px;

    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 70px;
}

.v2-footer h2 {
    font-size: 27px;
    margin: 12px 0;
}

.v2-footer p {
    font-size: 12px;
    color: var(--v2-muted);
    max-width: 340px;
}

.v2-footer h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: 18px;
}

.v2-footer-links nav,
.v2-footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.v2-footer-social h3 {
    margin-bottom: 8px;
}

.v2-footer a {
    font-size: 12px;
    color: var(--v2-muted);
}

.v2-footer a:hover {
    color: var(--v2-accent);
}

.v2-footer-bottom {
    position: relative;

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

    max-width: calc(var(--custom-content-width, 1320) * 1px);
    padding: 23px 64px 23px 24px;
    margin: auto;

    display: flex;
    justify-content: space-between;
    gap: 20px;

    font-size: 10px;
    color: var(--color-footer-muted);
}

.v2-footer-language {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--v2-accent);
}

.v2-footer-language select {
    min-width: 7rem;
    padding: .35rem 1.7rem .35rem .6rem;
    color: var(--v2-text);
    background: color-mix(in srgb, var(--v2-bg) 92%, transparent);
    border: 1px solid var(--v2-line);
    border-radius: 4px;
    font: 600 .75rem Rajdhani, sans-serif;
}

.v2-back-top {
    position: absolute;
    right: 24px;
    top: 17px;

    border: 1px solid var(--v2-line);
    padding: 4px 10px;
    border-radius: 6px;
}


/* =========================================================
   PAGE
   ========================================================= */

.v2-page {
    padding: 28px;
    background: var(--v2-panel);
    border: 1px solid var(--v2-line);
    border-radius: 14px;
}

.v2-page h1 {
    font-size: 30px;
    margin: 8px 0 24px;
}

.v2-page h2 {
    font-size: 20px;
    margin: 28px 0 15px;
}

.v2-page h3 {
    font-size: 16px;
    margin: 22px 0 12px;
}

.v2-ranking-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--v2-line);
}

.v2-ranking-tabs button {
    padding: 8px 17px;
    border-radius: 7px;
    color: var(--v2-muted);
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.v2-ranking-tabs button[aria-selected="true"] {
    background: var(--v2-accent);
    color: var(--color-button-text);
}

.v2-ranking-panel[hidden] {
    display: none;
}

.v2-player-name {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.v2-player-name img {
    width: auto;
    height: 12px;
}

.v2-race-icon,
.v2-class-icon {
    display: inline-block;
    width: auto;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
}

.v2-class-icon {
    height: 19px;
}

.v2-prose {
    overflow-wrap: anywhere;
}

.v2-prose p {
    margin: 0 0 18px;
}

.v2-prose a {
    color: var(--v2-accent);
    text-decoration: underline;
}

.v2-prose img,
.v2-prose video,
.v2-prose iframe {
    max-width: 100%;
}

.v2-prose table {
    display: block;
    max-width: 100%;
    overflow: auto;
}

.v2-article-meta {
    color: var(--v2-muted);
    font-size: 12px;
    margin-bottom: 24px;
}


/* =========================================================
   TABLE
   ========================================================= */

.v2-table-scroll {
    overflow-x: auto;
}

.v2-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: start;
}

.v2-table th {
    color: var(--v2-accent);
    font-weight: 600;
    background: color-mix(in srgb, var(--color-font-secondary) 1%, transparent);
}

.v2-table th,
.v2-table td {
    padding: 12px;
    border-bottom: 1px solid var(--v2-line);
    text-align: start;
}

.v2-table .v2-button {
    margin: 0;
    white-space: nowrap;
}


/* =========================================================
   REQUIREMENTS / GUIDES
   ========================================================= */

.v2-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.v2-guide {
    padding-inline-start: 20px;
    font-size: 13px;
    color: var(--v2-muted);
}

.v2-guide li {
    padding: 8px;
}


/* =========================================================
   404
   ========================================================= */

.v2-not-found {
    min-height: 460px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    text-align: center;

    background:
            radial-gradient(
                    circle at center,
                    color-mix(in srgb, var(--color-not-found-glow) 14%, transparent),
                    transparent 62%
            ),
            var(--v2-panel);
}

.v2-not-found-code {
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    font-size: clamp(82px, 15vw, 170px);
    font-weight: 700;
    line-height: .9;

    color: transparent;
    -webkit-text-stroke: 1px var(--v2-accent);

    opacity: .72;
}

.v2-not-found h1 {
    margin: 14px 0 12px;
}

.v2-not-found > p:not(.v2-footer-kicker) {
    max-width: 480px;
    color: var(--v2-muted);
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 901px) {

    .v2-menu-item:hover > .v2-submenu {
        display: block;
    }

}


/* =========================================================
   TABLET / SMALL DESKTOP
   ========================================================= */

@media (max-width: 1100px) {

    .v2-menu {
        gap: 0;
    }

    .v2-menu-item > a,
    .v2-submenu-toggle {
        padding: 13px;
    }

    .v2-layout {
        gap: 20px;
        grid-template-columns: minmax(0, 1fr) 290px;
    }

    .v2-site.sidebar-left .v2-layout {
        grid-template-columns: 290px minmax(0, 1fr);
    }

    .v2-card {
        padding: 18px;
    }

    .v2-footer-inner {
        gap: 30px;
    }

}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .v2-menu-inner {
        min-height: 58px;
        padding: 0 16px;
    }

    .v2-menu-toggle {
        display: block;
    }

    #v2-navigation {
        display: none;
        max-height: 70vh;
        overflow: auto;
        border-top: 1px solid var(--v2-line);
    }

    #v2-navigation.v2-expanded {
        display: block;
    }

    .v2-menu {
        display: block;
        padding: 0 8px 10px;
        min-height: 0;
    }

    .v2-menu-item {
        display: block;
    }

    .v2-menu-item > a,
    .v2-submenu-toggle {
        padding: 12px;
    }

    .v2-submenu,
    .v2-submenu .v2-submenu {
        position: static;
        box-shadow: none;
        max-width: none;
        min-width: 0;
        margin: 0 10px;
        background: color-mix(in srgb, var(--color-font-secondary) 2%, transparent);
    }

    .v2-hero {
        height: 430px;
    }

    /* Responsive single-image logo */
    .v2-logo {
        width: min(
                calc(var(--custom-logo-width, 400) * 1px),
                55vw,
                250px
        );

        background-size: contain;
        background-position: center;
    }

    .v2-layout,
    .v2-site.sidebar-left .v2-layout {
        display: flex;
        flex-direction: column;
        padding: 0 16px;
    }

    .v2-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .v2-footer-inner {
        padding: 36px 20px;
        gap: 28px;
    }

    .v2-footer-bottom {
        flex-direction: column;
        gap: 6px;
    }

    .v2-main {
        width: 100%;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 550px) {

    .v2-hero {
        height: 360px;
        padding: 24px 20px;
    }

    .v2-logo {
        width: min(
                calc(var(--custom-logo-width, 400) * 1px),
                60vw,
                210px
        );

        background-size: contain;
        background-position: center;
    }

    .v2-hero-caption {
        font-size: 10px;
        letter-spacing: .13em;
    }

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

    .v2-sidebar {
        display: flex;
    }

    .v2-section-heading h1 {
        font-size: 26px;
    }

    .v2-card {
        padding: 22px;
    }

    .v2-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .v2-footer-inner > div:first-child {
        grid-column: 1 / -1;
    }

    .v2-site[data-custom-news-layout="list"] .v2-news-card {
        display: block;
    }

    .v2-slide {
        aspect-ratio: 2.3;
    }

    .v2-page {
        padding: 20px;
    }

    .v2-requirements {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *:before,
    *:after {
        transition: none !important;
        animation: none !important;
    }

}
