/* Solscape: dark warm stone, RuneScape gold and sunfire orange.
   Layout follows big-MMO sites: full-bleed art, a realm card, news cards,
   feature banners and a roadmap. */
:root {
    --bg: #110d09;
    --bg-2: #18120c;
    --panel: #1f1812;
    --panel-2: #291f16;
    --line: #4a3824;
    --line-soft: rgba(232, 182, 76, 0.22);
    --gold: #e8b64c;
    --gold-light: #ffd98a;
    --ember: #e0621f;
    --red: #d2533f;
    --text: #efe4cf;
    --muted: #b09f81;
    --online: #44d46f;
    --offline: #e5533d;

    --font-display: 'Cinzel', Georgia, serif;
    --font-deco: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
    --font-body: 'Alegreya Sans', system-ui, sans-serif;

    --gutter: clamp(1rem, 4vw, 2.5rem);
    --width: 76rem;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 1.075rem/1.6 var(--font-body);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--gold);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--gold-light);
}

:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 50;
    padding: 0.5rem 1rem;
    background: var(--gold);
    color: #1a1005;
}

.skip-link:focus {
    left: 0;
}

.wrap {
    max-width: var(--width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.875rem;
}

/* ---------- Logotype ---------- */

.logotype {
    font-family: var(--font-deco);
    font-weight: 900;
    letter-spacing: 0.03em;
    line-height: 1;
    background: linear-gradient(180deg, #fff6d6 0%, #ffd66e 38%, #d8912a 64%, #8a4a10 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 0 #2e1604) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.65));
}

/* ---------- Top bar ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 1rem 2rem;
    padding: 0.55rem var(--gutter);
    background: rgba(14, 10, 7, 0.92);
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: blur(6px);
}

.is-home .topbar {
    position: absolute;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(10, 7, 4, 0.85), rgba(10, 7, 4, 0));
    border-bottom-color: transparent;
    backdrop-filter: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex: none;
}

.brand img {
    width: 42px;
    height: 42px;
}

.brand .logotype {
    font-size: 1.45rem;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1.6rem;
    margin-right: auto;
}

.nav a {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: var(--text);
    text-decoration: none;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current='page'] {
    color: var(--gold-light);
    border-bottom-color: var(--gold);
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.account-link {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gold-light);
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border: 1.5px solid #a8791f;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.3);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 3px;
    padding: 0.55em 1.3em;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
    font-size: 1rem;
    line-height: 1.2;
}

.btn:hover {
    filter: brightness(1.12);
}

.btn--login {
    color: #ff7a64;
    border: 1.5px solid #b8412f;
    background: rgba(0, 0, 0, 0.3);
}

.btn--join {
    color: var(--gold);
    border: 1.5px solid #a8791f;
    background: rgba(0, 0, 0, 0.3);
}

.btn--login:hover,
.btn--join:hover {
    color: #fff;
}

.btn--gold {
    color: #2a1805;
    background: linear-gradient(180deg, #f6cd66, #c38a22);
    border: 1px solid #ffe3a3;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

.btn--gold:hover {
    color: #2a1805;
}

/* The one loud element on the page: a glowing sunfire button. */
.btn--play {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    letter-spacing: 0.12em;
    padding: 0.85em 2.4em;
    color: #fff5dc;
    background: linear-gradient(180deg, #f27b27 0%, #c9500f 55%, #9c3a0a 100%);
    border: 2px solid #ffb055;
    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 124, 34, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
}

.btn--play:hover {
    color: #fff;
    transform: translateY(-1px);
}

.btn--block {
    width: 100%;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: min(92vh, 56rem);
    display: grid;
    place-items: center;
    padding: 7rem var(--gutter) 5rem;
    overflow: hidden;
    isolation: isolate;
}

.hero__art {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 50% 42%, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.45) 70%),
        linear-gradient(180deg, rgba(10, 7, 4, 0.55) 0%, rgba(10, 7, 4, 0.1) 25%, rgba(10, 7, 4, 0.25) 60%, var(--bg) 100%);
}

.hero__content {
    text-align: center;
    max-width: 48rem;
}

.hero__emblem {
    width: clamp(7rem, 16vw, 11rem);
    margin: 0 auto -0.5rem;
    filter: drop-shadow(0 6px 24px rgba(255, 150, 40, 0.45));
}

.hero .logotype {
    font-size: clamp(3rem, 10vw, 6.5rem);
}

.hero__title {
    margin: 1.1rem 0 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.6vw, 2.5rem);
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.hero__lede {
    margin: 0 auto 2rem;
    max-width: 36rem;
    font-size: 1.15rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

.hero__sub {
    margin-top: 1rem;
    font-size: 0.95rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.hero__sub a {
    color: var(--gold-light);
}

/* Realm status, top right of the hero. */
.realm-card {
    position: absolute;
    top: 6.5rem;
    right: var(--gutter);
    width: 17rem;
    background: rgba(14, 10, 7, 0.8);
    border: 1px solid var(--line-soft);
    backdrop-filter: blur(4px);
    font-size: 0.95rem;
}

.realm-card__head {
    padding: 0.7rem 1rem 0.3rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: var(--muted);
}

.realm-card__row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1rem;
}

.realm-card__row strong {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

.realm-card__total {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--line-soft);
    font-family: var(--font-display);
    font-weight: 700;
}

.realm-card__total strong {
    font-size: 1.3rem;
    font-variant-numeric: tabular-nums;
}

.realm-card__discord {
    display: block;
    padding: 0.6rem 1rem;
    border-top: 1px solid var(--line-soft);
    font-family: var(--font-display);
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

.dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--offline);
    flex: none;
    box-shadow: 0 0 8px currentColor;
    color: var(--offline);
}

.dot.is-online {
    background: var(--online);
    color: var(--online);
}

/* ---------- Sections ---------- */

.section {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section--alt {
    background: var(--bg-2);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1.8rem;
}

.section-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    line-height: 1.15;
}

.section-link {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: #6fc3d6;
}

.kicker {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    color: var(--gold);
}

/* ---------- News ---------- */

.featured {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    background: var(--panel);
    border: 1px solid var(--line);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.featured__art {
    position: relative;
    min-height: 20rem;
}

.featured__art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured__art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(31, 24, 18, 0) 55%, var(--panel) 100%);
}

.featured__body {
    padding: clamp(1.5rem, 3vw, 2.8rem);
    align-self: center;
}

.featured__title {
    margin: 0 0 0.7rem;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    line-height: 1.15;
}

.featured__title a {
    color: var(--text);
    text-decoration: none;
}

.featured__body p {
    color: var(--muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
    gap: 1.25rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.15s ease;
}

.card:hover {
    border-color: var(--gold);
    color: var(--text);
}

.card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
}

.card__body {
    padding: 1rem 1.1rem 1.2rem;
}

.card__title {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.25;
}

.card__date {
    font-size: 0.85rem;
    color: var(--muted);
}

/* ---------- Feature banners ---------- */

.banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 22rem;
    border-top: 1px solid var(--line-soft);
    overflow: hidden;
    isolation: isolate;
}

.banner__art {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.banner__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(11, 8, 5, 0.94) 0%, rgba(11, 8, 5, 0.82) 38%, rgba(11, 8, 5, 0.1) 70%);
}

.banner--right::after {
    background: linear-gradient(270deg, rgba(11, 8, 5, 0.94) 0%, rgba(11, 8, 5, 0.82) 38%, rgba(11, 8, 5, 0.1) 70%);
}

.banner__body {
    align-self: center;
    padding: 3rem var(--gutter);
    max-width: 36rem;
}

.banner--right .banner__body {
    grid-column: 2;
}

.banner__title {
    margin: 0 0 0.7rem;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.15;
}

.banner__body p {
    margin: 0 0 1.3rem;
    color: #d8ccb3;
}

/* ---------- Roadmap ---------- */

.roadmap {
    position: relative;
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
    isolation: isolate;
    overflow: hidden;
}

.roadmap__art {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.roadmap__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.roadmap::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(12, 9, 18, 0.55) 22%, rgba(12, 9, 18, 0.55) 78%, var(--bg) 100%);
}

.roadmap__title {
    text-align: center;
    margin: 0 0 2.2rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    letter-spacing: 0.3em;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.8);
}

/* The gold bar the columns hang from. */
.roadmap__bar {
    height: 0.75rem;
    background: linear-gradient(180deg, #f8d77a, #b7801f 60%, #7c5210);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    margin: 0 var(--gutter);
}

.roadmap__columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: 1.25rem;
    max-width: var(--width);
    margin: -0.4rem auto 0;
    padding: 0 var(--gutter);
}

.pennant {
    padding: 1.2rem 1rem 2.6rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(20, 18, 34, 0.92), rgba(28, 24, 46, 0.86));
    border: 1px solid rgba(160, 150, 220, 0.25);
    border-top: 3px solid var(--gold);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 1.6rem), 0 100%);
}

.pennant__when {
    margin: 0 0 0.2rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--gold);
}

.pennant__title {
    margin: 0 0 0.9rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
}

.pennant ul {
    list-style: none;
    margin: 0;
    padding: 0;
    color: #dcd3f0;
}

.pennant li + li {
    margin-top: 0.55rem;
}

/* ---------- Panels, tables, forms ---------- */

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 1.3rem 1.5rem 1.5rem;
}

.panel__title {
    margin: 0 0 0.9rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--gold-light);
}

.scores {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.scores th {
    text-align: left;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    padding: 0 0.6rem 0.5rem;
    border-bottom: 1px solid var(--line);
}

.scores td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scores tbody tr:hover {
    background: rgba(232, 182, 76, 0.05);
}

.scores .num {
    text-align: right;
}

.scores td a {
    color: var(--text);
}

.scores td a:hover {
    color: var(--gold-light);
}

.scores__total td,
.scores__total td a {
    color: var(--gold-light);
    font-weight: 700;
}

.rank-1 td:first-child {
    color: var(--gold-light);
    font-weight: 700;
}

.mode-tag {
    margin-left: 0.4rem;
    padding: 0.05rem 0.35rem;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.72rem;
    text-decoration: none;
    cursor: help;
}

.form {
    display: grid;
    gap: 1.1rem;
}

.field label,
.lookup label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

input[type='text'],
input[type='password'] {
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    font: inherit;
    border: 1px solid var(--line);
    border-radius: 2px;
}

input[type='text']:focus,
input[type='password']:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 182, 76, 0.2);
}

input[aria-invalid='true'] {
    border-color: var(--red);
}

.field__hint {
    margin: 0.3rem 0 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.field__error {
    margin: 0.3rem 0 0;
    color: #ff8f7c;
    font-size: 0.875rem;
    font-weight: 700;
}

.field--trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.notice {
    padding: 0.8rem 1rem;
    border: 1px solid;
    margin: 0 0 1.2rem;
}

.notice--error {
    border-color: var(--red);
    color: #ff9a88;
    background: rgba(210, 83, 63, 0.08);
}

.notice--ok {
    border-color: var(--online);
    background: rgba(68, 212, 111, 0.08);
}

/* ---------- Inner page banner ---------- */

.page-banner {
    position: relative;
    padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3rem);
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid var(--line-soft);
}

.page-banner__art {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.page-banner__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}

.page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(11, 8, 5, 0.95) 0%, rgba(11, 8, 5, 0.75) 45%, rgba(11, 8, 5, 0.35) 100%);
}

.page-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.page-lede {
    margin: 0.7rem 0 0;
    max-width: 40rem;
    color: #ddd0b6;
    font-size: 1.1rem;
}

.page {
    padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.prose {
    max-width: 44rem;
    line-height: 1.7;
}

.prose h2 {
    margin: 2.2rem 0 0.6rem;
    font-family: var(--font-display);
    font-size: 1.55rem;
    color: var(--gold-light);
}

.prose h3 {
    margin: 1.5rem 0 0.3rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.prose h3 + p {
    margin-top: 0;
}

.prose li + li {
    margin-top: 0.35rem;
}

/* ---------- Full-art auth pages (register / login) ---------- */

.auth {
    position: relative;
    min-height: calc(100vh - 4rem);
    display: grid;
    place-items: center;
    padding: 3rem var(--gutter) 4rem;
    isolation: isolate;
}

.auth__art {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.auth__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(8, 6, 4, 0.35);
}

.auth__panel {
    width: min(100%, 30rem);
    padding: 2rem clamp(1.3rem, 4vw, 2.6rem) 2.2rem;
    background: rgba(20, 15, 11, 0.94);
    border: 1px solid var(--line);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.auth__head {
    text-align: center;
    margin-bottom: 1.6rem;
}

.auth__title {
    margin: 0.2rem 0 0.2rem;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 6vw, 2.8rem);
    line-height: 1.1;
}

.auth__foot {
    margin: 1.2rem 0 0;
    text-align: center;
    color: var(--muted);
}

/* ---------- Hiscores ---------- */

.lookup {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.6rem;
    margin: 0 0 1.4rem;
}

.lookup > div {
    flex: 1 1 14rem;
    max-width: 22rem;
}

.mode-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1.4rem;
}

.mode-tabs a {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
}

.mode-tabs a:hover,
.mode-tabs a[aria-current='page'] {
    border-color: var(--gold);
    color: var(--gold-light);
}

.hiscores {
    display: grid;
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.skill-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.skill-list a {
    display: block;
    padding: 0.3rem 0.6rem;
    color: var(--text);
    text-decoration: none;
    border-left: 2px solid transparent;
}

.skill-list a:hover {
    color: var(--gold-light);
}

.skill-list a[aria-current='page'] {
    border-left-color: var(--gold);
    background: rgba(232, 182, 76, 0.08);
    color: var(--gold-light);
}

.pager {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
    margin-top: 1.2rem;
}

/* ---------- Account ---------- */

.account-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.7rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--line-soft);
    font-size: 0.9rem;
}

.account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.account-side {
    display: grid;
    gap: 1.5rem;
}

.skills-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
}

.skills-grid a {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.7rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.skills-grid a:hover {
    border-color: var(--gold);
}

.skills-grid__level {
    color: var(--gold-light);
    font-weight: 700;
}

.totals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 2.2rem;
    margin: 1.2rem 0 0;
}

.totals dt {
    color: var(--muted);
    font-size: 0.85rem;
}

.totals dd {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
}

.sessions {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sessions li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- Download ---------- */

.download-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.steps {
    padding-left: 1.3rem;
}

.steps li + li {
    margin-top: 0.4rem;
}

.download__action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
    margin: 1.2rem 0 0;
}

code {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.1em 0.4em;
    font-size: 0.9em;
    white-space: nowrap;
}

/* ---------- CTA band ---------- */

.cta {
    position: relative;
    padding: clamp(4rem, 10vw, 7rem) var(--gutter);
    text-align: center;
    isolation: isolate;
    overflow: hidden;
}

.cta__art {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.cta__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.cta::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(10, 7, 4, 0.45) 30%, rgba(10, 7, 4, 0.6) 100%);
}

.cta__title {
    margin: 0 0 1.6rem;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

/* ---------- Footer ---------- */

.footer {
    border-top: 1px solid var(--line-soft);
    background: #0c0906;
    padding: 2.5rem 0 3rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.footer h2 {
    margin: 0 0 0.6rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--text);
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer li + li {
    margin-top: 0.35rem;
}

.footer a {
    color: var(--muted);
    text-decoration: none;
}

.footer a:hover {
    color: var(--gold-light);
}

.footer .brand {
    margin-bottom: 0.8rem;
}

/* ---------- Small screens ---------- */

@media (max-width: 64rem) {
    .realm-card {
        position: static;
        width: auto;
        max-width: 22rem;
        margin: 2rem auto 0;
    }

    .hero {
        display: block;
        padding-top: 8rem;
    }

    .hero__content {
        margin: 0 auto;
    }
}

@media (max-width: 52rem) {
    .topbar {
        flex-wrap: wrap;
    }

    .nav {
        order: 3;
        width: 100%;
        gap: 0.2rem 1.1rem;
    }

    .featured,
    .banner,
    .account-grid,
    .download-grid,
    .hiscores,
    .footer__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .banner--right .banner__body {
        grid-column: 1;
    }

    .banner::after,
    .banner--right::after {
        background: linear-gradient(180deg, rgba(11, 8, 5, 0.6), rgba(11, 8, 5, 0.9));
    }

    .featured__art::after {
        background: linear-gradient(180deg, rgba(31, 24, 18, 0) 55%, var(--panel) 100%);
    }

    .skill-list ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.2rem 0.3rem;
    }
}

@media (max-width: 30rem) {
    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scores th:nth-child(4),
    .scores td:nth-child(4) {
        display: none;
    }

    .brand .logotype {
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }
}
