@font-face {
    font-family: Eason Pro;
    src: url('../fonts/easonpro-regular-webfont.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: Cronos Pro;
    src: url('../fonts/cronospro-regular-webfont.woff') format('woff');
    font-display: swap;
}

:root {
    color-scheme: dark;
    --background: #0c0c0d;
    --panel: #1c1c1b;
    --border: #755735;
    --gold: #e2b77a;
    --cream: #f1e4cd;
    --muted: #c8b8a3;
    --display: 'Eason Pro', Georgia, serif;
    font-family: 'Cronos Pro', system-ui, sans-serif;
    color: var(--cream);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(#0c0c0d22, #0c0c0de0 1100px),
        var(--background) url('../images/neros/page-bg.jpg') center top / max(100%, 1100px) auto no-repeat;
}

h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #f5ca88; outline-offset: 4px; }
img { display: block; max-width: 100%; }

.container { width: min(1024px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
    position: relative;
    z-index: 1;
    background: #171411b8;
    border-bottom: 1px solid #ad7d435d;
}

.site-nav {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font: 600 0.79rem var(--display);
    text-transform: uppercase;
}

.site-nav a:not(.nav-download):hover,
.site-nav a:not(.nav-download)[aria-current='page'] { color: var(--gold); }
.site-nav .nav-mark { color: var(--gold); font-size: 1.75rem; line-height: 1; }

.nav-download {
    padding: 9px 20px;
    color: #23160d;
    background: linear-gradient(#dfb881, #ad7b46);
    border: 1px solid #e1b782;
    text-align: center;
}

.nav-download:hover { background: #edc68d; }

.home .nav-download {
    color: var(--cream);
    background: #21141185;
    border-color: #ad7d4380;
}

.home .nav-download:hover { color: var(--gold); }

.hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(355px, 34vw, 545px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 11% 20px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -55px 0 auto;
    height: clamp(560px, 55vw, 950px);
    background: linear-gradient(180deg, #14090940, #26090c18 35%, #310d165c 65%, #0c0c0df0 96%, #0c0c0d),
        url('../images/neros/hero.jpg') center 35% / cover no-repeat;
    mask-image: linear-gradient(#000 76%, transparent);
    pointer-events: none;
}

.hero-brand {
    width: clamp(260px, 34vw, 440px);
    text-align: center;
    font: 700 1.15rem var(--display);
    color: #fff0d9;
    text-transform: uppercase;
    text-shadow: 0 2px 5px #170d08, 0 4px 32px #170d08;
}

.hero-brand img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 18px #170a04d9);
}

.hero-brand p {
    width: fit-content;
    margin: 4px auto 0;
    padding: 9px 20px 0;
    border-top: 1px solid #deb477ad;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}

.hero-download {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    border: 1px solid #c99b65;
    background: linear-gradient(#9a3b3d, #50171b);
    box-shadow: 0 4px 20px #170a04a6, inset 0 0 0 2px #f9bf6f26;
    font-size: 0.85rem;
}

.hero-download:hover { background: linear-gradient(#b34b4c, #692027); }

.home-content { position: relative; width: min(1160px, calc(100% - 40px)); }
.page-content { min-height: 62vh; padding-top: clamp(32px, 9vw, 130px); }

.portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.35fr) minmax(0, 1fr);
    grid-template-areas: 'left main right';
    align-items: start;
    gap: 16px;
}

.portal-main { grid-area: main; }
.portal-left { grid-area: left; }
.portal-right { grid-area: right; }

.portal-main, .portal-left, .portal-right {
    display: grid;
    min-width: 0;
    gap: 14px;
}

.panel {
    min-width: 0;
    background: linear-gradient(180deg, #151616, var(--panel));
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px #0005;
}

.panel-title {
    padding: 11px 15px;
    background: linear-gradient(#3c3329, #26231f);
    border-bottom: 1px solid var(--border);
    font: 700 0.87rem var(--display);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.portal-panel {
    background: linear-gradient(160deg, #30171a, #181214 75%);
    border-color: #8b603b;
    box-shadow: inset 0 0 0 3px #1b1011, inset 0 0 0 4px #9d664542, 0 8px 24px #0007;
}

.portal-panel .panel-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 4px 4px 0;
    padding-inline: 6px;
    background: linear-gradient(#652d31, #32181c);
    border-color: #8b603b;
    color: #f6ddb3;
    text-align: center;
}

.portal-panel .panel-title::before, .portal-panel .panel-title::after {
    content: '';
    flex: 0 0 5px;
    height: 5px;
    background: #d9a962;
    transform: rotate(45deg);
}

.portal-download {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 17px 10px;
    background: linear-gradient(#652d31, #36171c);
    border: 1px solid #9a7047;
    box-shadow: inset 0 0 0 3px #46191a80, 0 8px 24px #0007;
    text-align: center;
}

.portal-download:hover { background: linear-gradient(#804045, #471d22); }
.portal-download strong { font: 700 1rem var(--display); text-transform: uppercase; }
.portal-download small { color: #ffe7da; font-size: 0.85rem; }

.showcase {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 225px;
    aspect-ratio: 2.1;
    overflow: hidden;
}

.showcase img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.showcase-caption {
    position: relative;
    align-self: end;
    padding: 36px 17px 14px;
    background: linear-gradient(transparent, #12100ef0);
}

.showcase-caption h2 { font: 700 1.5rem var(--display); }
.showcase-caption .text-link { display: inline-block; margin-top: 4px; }

.server-status { padding: 6px 15px; }
.server-status div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 8px; padding: 12px 0; }
.server-status div + div { border-top: 1px solid #75573559; }
.server-status dt { color: var(--muted); }
.server-status dd { color: var(--gold); }

.account-content {
    display: grid;
    justify-items: center;
    gap: 17px;
    padding: 24px 18px;
    text-align: center;
    color: var(--muted);
}

.account-mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--gold);
    font: 2rem var(--display);
}

.text-link, .news-entry a { color: var(--gold); }
.text-link:hover, .news-entry a:hover { text-decoration: underline; }

.home-content .journal { background: linear-gradient(#241719, #181315); }
.home-content .journal .panel-title { background: linear-gradient(#53282b, #29191d); }
.journal h1.panel-title { padding: 20px 24px; font-size: clamp(1.3rem, 3vw, 2rem); }
.journal-content { padding: 21px 24px; }
.journal-content > p + .text-link { display: inline-block; margin-top: 16px; }
.news-entry + .news-entry { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.news-entry time { display: block; color: var(--muted); font-size: 0.85rem; }
.news-entry h2, .news-entry h3 { margin-top: 5px; font: 700 1.35rem var(--display); }
.news-entry p { margin-top: 7px; max-width: 68ch; color: var(--cream); line-height: 1.55; }
.news-entry + .text-link { display: inline-block; margin-top: 18px; }

.ranking-preview-body { padding: 14px 15px; color: var(--muted); }
.ranking-preview-body > .text-link { display: inline-block; margin-top: 9px; }
.ranking-preview-list { margin: 0; padding-left: 1.45rem; }
.ranking-preview-list li { padding: 7px 0; overflow-wrap: anywhere; }
.ranking-preview-list li + li { border-top: 1px solid #75573559; }
.ranking-preview-list li::marker, .ranking-score { color: var(--gold); }
.ranking-score { display: block; font-size: 0.87rem; }

.presentation-cover {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.presentation-cover img { width: 100%; height: 100%; object-fit: cover; }
.presentation-intro { padding: clamp(20px, 4vw, 42px); }
.presentation-intro h1 {
    color: var(--gold);
    font: 700 clamp(2rem, 5vw, 3.25rem) / 1.1 var(--display);
}

.presentation-intro p { margin-block: 12px 18px; color: var(--muted); line-height: 1.5; }
.presentation-body { padding: clamp(16px, 3vw, 30px); }
.presentation-body h2, .rankings-grid h2 { color: var(--gold); font: 700 1.35rem var(--display); }
.presentation-gallery, .rankings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.presentation-gallery { margin-top: 12px; }
.presentation-gallery figure { margin: 0; }
.presentation-gallery a { display: block; }
.presentation-gallery img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--border); }
.presentation-gallery figcaption { margin-top: 6px; color: var(--muted); }
.trailer-status { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.trailer-status p { margin-top: 6px; color: var(--muted); }

.ranking-table { width: 100%; margin-top: 10px; border-collapse: collapse; text-align: left; }
.ranking-table th, .ranking-table td { padding: 8px; border-bottom: 1px solid #75573559; }
.ranking-table thead { color: var(--muted); }
.ranking-table tbody th { overflow-wrap: anywhere; font-weight: 400; }
.ranking-table td:last-child, .ranking-table thead th:last-child { text-align: right; }

.registration-form {
    display: grid;
    gap: 12px;
    max-width: 360px;
    margin-top: 18px;
}

.registration-form label { display: grid; gap: 5px; }
.registration-form input, .registration-form button {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--cream);
    font: inherit;
}

.registration-form button { background: #652d31; cursor: pointer; }
.registration-feedback { margin-top: 12px; color: var(--gold); }

.shop-demo-note { margin-bottom: 18px; color: var(--muted); }

.shop-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.shop-categories a, .shop-product {
    border: 1px solid var(--border);
    background: #231719;
}

.shop-categories a { padding: 7px 12px; }
.shop-categories a[aria-current='page'], .shop-product:hover { background: #482528; color: var(--gold); }
.shop-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-product, .shop-detail { display: flex; align-items: flex-start; gap: 14px; }
.shop-product { height: 100%; padding: 14px; }
.shop-product h2 { font: 700 1.15rem var(--display); overflow-wrap: anywhere; }
.shop-product p, .shop-status { color: var(--muted); }
.shop-product p { margin-top: 6px; }
.shop-icon { flex: 0 0 72px; object-fit: contain; background: var(--background); }
.shop-detail { margin-top: 18px; }
.shop-detail p { overflow-wrap: anywhere; }
.shop-facts { margin-block: 12px; }
.shop-facts div { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-facts dd { color: var(--gold); }

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-block: 30px 0;
    padding: 16px 0 24px;
    border-top: 1px solid #75573580;
    color: var(--muted);
    font-size: 0.89rem;
}

.site-footer a { color: var(--gold); font-family: var(--display); text-transform: uppercase; }

@media (max-width: 760px) {
    .hero { min-height: 345px; padding-right: 7%; }
    .hero::before { background-position: center, 45% center; }
    .portal-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 'main main' 'left right';
    }
    .showcase { min-height: 250px; }
}

@media (max-width: 620px) {
    .site-nav { min-height: 70px; justify-content: center; flex-wrap: wrap; gap: 8px 14px; padding: 9px 0; }
    .nav-mark { display: none; }
    .nav-download { padding: 6px 10px; }
}

@media (max-width: 520px) {
    .container, .home-content { width: calc(100% - 24px); }
    .hero { justify-content: center; align-items: flex-end; min-height: 330px; padding: 0 12px 36px; }
    .hero::before { inset-block-start: -72px; height: 550px; background-position: center, 35% center; }
    .hero-brand { width: min(290px, 85vw); }
    .portal-grid { grid-template-columns: 1fr; grid-template-areas: 'main' 'left' 'right'; }
    .showcase { min-height: 205px; }
    .journal-content { padding-inline: 16px; }
    .presentation-cover, .presentation-gallery, .rankings-grid { grid-template-columns: 1fr; }
}
