/* Tokens live in /theme.css (load it first). Faces are declared there too.
   Rules that cannot match the marketing home or the play shell live in /legacy.css. */


/* Colour tokens live in /theme.css, loaded before this file. */


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 184px;
    /* The marquee is intentionally wider than the viewport; clip it here so
       the document's scrollWidth stays at the viewport and no public page can
       scroll sideways. `clip` does not create a scroll container, so sticky
       positioning keeps working. */
    overflow-x: clip;
}


body {
    margin: 0;
    background:
        radial-gradient(1200px 800px at 86% -8%, rgba(217, 180, 90, 0.08), transparent 62%),
        radial-gradient(900px 760px at -10% 34%, rgba(96, 82, 48, 0.14), transparent 68%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 42%, var(--bg) 100%);
    color: var(--cream);
    font-family: var(--font-body);
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: clip;
}


body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(circle at 50% 12%, black, transparent 76%);
}


::selection {
    background: rgba(217, 180, 90, 0.34);
    color: #FFF8E6;
}


a {
    color: var(--gold-2);
    text-decoration: none;
}


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


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


img,
video {
    max-width: 100%;
}


/* Rules own their rhythm. A divider never borrows the margins of whatever
   happens to sit above it, and never collapses into it. */
hr {
    display: block;
    width: 100%;
    height: 0;
    margin: 28px 0;
    border: 0;
    border-top: 1px solid var(--line);
}


.skip-link,
a.skip {
    position: absolute;
    left: 16px;
    top: -70px;
    z-index: 300;
    padding: 10px 16px;
    background: var(--gold);
    color: #1D180E;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.skip-link:focus,
a.skip:focus {
    top: 16px;
}


.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 2px;
    background: rgba(239, 228, 200, 0.06);
    pointer-events: none;
}


.scroll-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--ember), var(--gold-2), var(--gold));
    transform: scaleX(0);
    transform-origin: 0 50%;
}


.wrap {
    width: min(var(--page-max), calc(100% - 48px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}


/* Navigation ------------------------------------------------------------- */

header.site-masthead {
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0;
    padding: 0;
    border-bottom: none;
    background: transparent;
}

.masthead-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
}

.nav.is-scrolled {
    border-bottom-color: transparent;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}


.brand {
    display: inline-flex;
    align-items: center;
    color: var(--cream);
    text-decoration: none;
}


.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: min(420px, 62vw);
}


/* Marketing crest lockup (site/public/brand). */
.brand-crest-img,
.brand-lockup-img {
    display: block;
    flex: 1 1 auto;
    width: auto;
    max-width: 100%;
    height: 48px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
}

.site-nav--compact .brand-lockup {
    gap: 8px;
    max-width: min(340px, 72vw);
}

.site-nav--compact .brand-crest-img,
.site-nav--compact .brand-lockup-img {
    height: 40px;
}


.brand-text {
    display: none;
    font-family: var(--font-display);
    font-size: clamp(32px, 8.2vw, 40px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--cream);
    white-space: nowrap;
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-family: var(--font-ui);
    font-size: 13px;
    letter-spacing: 0.01em;
    text-transform: none;
}


.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cream-2);
    padding: 4px 0;
    white-space: nowrap;
}


.ru-site-icon {
    display: block;
    line-height: 0;
}


/* The width/height attributes on each icon carry its intended size (18 px in
   the nav, 28 px in the hero CTA, 32 px on kit cards, 96 px on section heads).
   Do not override them here: `width: auto` made every icon paint at its
   intrinsic size, so 64 px nav icons covered their labels and the 512 px CTA
   icon stretched the hero button into a tall empty plate. */
.ru-site-icon img {
    display: block;
    max-width: 100%;
    image-rendering: auto;
}


.ru-site-icon--nav img,
.ru-icon--nav .ru-icon__img {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}


.ru-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    flex-shrink: 0;
}


.ru-icon__img {
    display: block;
    max-width: 100%;
}


.nav-links a,
.nav-drop-toggle,
.nav-logout button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


.nav-link-icon {
    display: inline-flex;
    flex-shrink: 0;
}


.ru-icon--menu .ru-icon__img {
    width: 20px;
    height: 20px;
}


.ru-icon--pillar .ru-icon__img {
    width: 40px;
    height: 40px;
}


.ru-icon--pillar-link .ru-icon__img,
.ru-icon--footer .ru-icon__img {
    width: 16px;
    height: 16px;
}


.home-pillar-icon {
    margin: 0 0 12px;
}


.home-pillar-links .text-link,
.footer-col a,
.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 12px;
}


.ru-simple-icon--footer {
    width: 16px;
    height: 16px;
}


.ru-site-icon--cta img {
    width: 28px;
    height: 28px;
}


.ru-site-icon--head img {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}


.ru-site-icon--list img {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}


.page-head-icon {
    margin: 0 0 14px;
    line-height: 0;
}


.section-head-icon,
.kit-card .ru-site-icon--kit {
    margin-bottom: 14px;
}


.nav-links a:hover {
    color: var(--gold-2);
}


.nav-links a.is-active {
    color: var(--gold-2);
}


.nav-links a.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
}


.nav-play {
    border: 1px solid var(--line-strong);
    padding: 10px 18px !important;
    min-height: 40px;
    color: var(--gold-2) !important;
    background: rgba(217, 180, 90, 0.07);
}


.nav-play:hover {
    border-color: var(--gold);
    background: rgba(217, 180, 90, 0.14);
}


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

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: stretch;
    width: 100vw;
    min-height: clamp(720px, 94vh, 920px);
    margin-left: calc(50% - 50vw);
    overflow: hidden;
}


.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--bg) url('/brand/login-runehd-1920.webp') center / cover no-repeat;
}


.hero-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 64% 50%;
    opacity: 0;
    transition: opacity 1.2s ease;
}


.hero-video.is-ready {
    opacity: 1;
}


.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(18, 17, 14, 0.98) 0%, rgba(18, 17, 14, 0.92) 28%, rgba(18, 17, 14, 0.56) 54%, rgba(18, 17, 14, 0.1) 78%, rgba(18, 17, 14, 0.34) 100%),
        linear-gradient(180deg, rgba(18, 17, 14, 0.7) 0%, transparent 22%, transparent 64%, var(--bg) 100%);
}


.hero-inner {
    width: min(var(--page-max), calc(100% - 48px));
    margin: 0 auto;
    padding: 96px 0 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.hero-copy {
    max-width: 888px;
}


.eyebrow,
.kicker {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}


.kicker {
    display: flex;
    align-items: center;
    gap: 12px;
}


.kicker::before {
    content: '';
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
}


.eyebrow::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 1px;
    margin-right: 10px;
    vertical-align: middle;
    background: var(--gold);
}


h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.02;
}


h1 {
    margin: 22px 0 26px;
    font-size: clamp(56px, 8vw, 104px);
    letter-spacing: -0.045em;
    color: var(--cream);
    text-wrap: balance;
}


h1 em,
h2 em {
    color: var(--gold-2);
    font-style: italic;
    background: linear-gradient(180deg, #F8EAC3 0%, #E3C47A 62%, #C79A43 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


.lede {
    max-width: 54ch;
    margin: 0;
    color: #C9BFA9;
    font-size: clamp(16px, 1.5vw, 18px);
}


.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 34px 0 24px;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 22px;
    border: 1px solid var(--line-strong);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}


.btn:focus-visible {
    outline: 2px solid var(--cream);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(18, 17, 14, 0.8);
}


.nav-links a:focus-visible,
.site-footer a:focus-visible,
.nav-account:focus-visible,
.nav-menu-toggle:focus-visible {
    outline: 2px solid var(--cream);
    outline-offset: 3px;
    border-radius: 4px;
}


.btn:active {
    transform: translateY(1px);
}


.btn-primary {
    color: #1D180E;
    border-color: var(--gold-2);
    background: linear-gradient(180deg, var(--gold-3), var(--gold));
    box-shadow: 0 10px 32px rgba(217, 180, 90, 0.16);
}


.btn-primary:hover {
    color: #1D180E;
    background: linear-gradient(180deg, #FBEECB, #DFC079);
    box-shadow: 0 14px 38px rgba(217, 180, 90, 0.26);
    transform: translateY(-1px);
}


.btn-primary:active {
    color: #1D180E;
    background: linear-gradient(180deg, var(--gold), #C9A348);
    box-shadow: inset 0 2px 7px rgba(29, 24, 14, 0.32);
    transform: translateY(1px);
}


.btn-ghost {
    color: var(--cream-2);
    background: rgba(255, 255, 255, 0.025);
}


.btn-ghost:hover {
    color: var(--cream);
    border-color: var(--cream-3);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}


.btn-ghost--icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}


.btn-ghost:active {
    color: var(--cream);
    border-color: var(--gold-2);
    background: rgba(217, 180, 90, 0.12);
    box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.28);
    transform: translateY(1px);
}


.btn:disabled,
.btn[aria-disabled="true"],
.btn.is-disabled {
    color: var(--muted-2);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: none;
    opacity: 0.45;
    filter: saturate(0.5);
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}


.btn-block {
    width: 100%;
}


.server-status {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted-2);
}


.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #665F50;
    box-shadow: 0 0 0 3px rgba(102, 95, 80, 0.14);
}


.status-dot.offline {
    background: #C26F5E;
    box-shadow: 0 0 0 3px rgba(194, 111, 94, 0.14);
}


.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin: auto 0 0;
    padding-top: 28px;
    border-top: 1px solid rgba(239, 228, 200, 0.16);
}


.hero-stats > div {
    padding: 0 24px;
    border-left: 1px solid rgba(239, 228, 200, 0.1);
}


.hero-stats > div:first-child {
    padding-left: 0;
    border-left: 0;
}


.hero-stats dt {
    margin-bottom: 6px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-2);
}


.hero-stats dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(26px, 2.6vw, 36px);
    line-height: 1;
    color: var(--cream);
}


/* Marquee ---------------------------------------------------------------- */

.marquee {
    position: relative;
    display: flex;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 14px 0;
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(36, 34, 28, 0.6);
    mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
}


.marquee-track {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 34px;
    padding-right: 34px;
    width: max-content;
    animation: marquee 46s linear infinite;
    will-change: transform;
}


.marquee-item {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}


.marquee-star {
    color: var(--gold);
    font-size: 9px;
}


@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}


/* Sections and headings --------------------------------------------------- */

.section {
    position: relative;
    padding: clamp(72px, 9vw, 118px) 0;
    border-top: 1px solid var(--line);
}


.world-section {
    border-top: 0;
}


.section-head {
    max-width: 800px;
    margin-bottom: clamp(36px, 5vw, 56px);
}


.section-head--split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: end;
    max-width: none;
}


.section-head h2,
.client-copy h2,
.ladder-copy h2,
.section-copy h2 {
    margin: 14px 0 0;
    font-size: clamp(42px, 5.6vw, 72px);
    letter-spacing: -0.04em;
    color: var(--cream);
    text-wrap: balance;
}


.section-lede {
    max-width: 62ch;
    margin: 22px 0 0;
    color: #C6BCA6;
    font-size: clamp(15px, 1.35vw, 17px);
}


.section-aside {
    padding-bottom: 6px;
}


.section-aside p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
}


.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(217, 180, 90, 0.38);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-2);
}


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


.mini-kicker {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}


.reveal {
    scroll-margin-top: 100px;
}


.js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}


.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}


/* Marketing blocks that must never be stuck invisible if reveal IO fails. */
.js .skills-section .skills-story.reveal,
.js .skills-section .exploration-spotlight.reveal,
.js .faq-section .reveal {
    opacity: 1;
    transform: none;
    transition: none;
}


/* Plates and field notes -------------------------------------------------- */

.plate {
    position: relative;
    margin: 0;
    padding: 10px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(34, 49, 39, 0.85), rgba(12, 19, 15, 0.94));
    box-shadow: var(--shadow);
}


.plate::before {
    content: '';
    position: absolute;
    inset: 5px;
    z-index: 1;
    border: 1px solid rgba(239, 228, 200, 0.1);
    pointer-events: none;
}


.plate img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(0, 0, 0, 0.5);
    filter: saturate(0.96) contrast(1.02);
    transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}


.plate:hover img {
    transform: scale(1.015);
}


.plate figcaption {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 10px 2px 2px;
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--muted-2);
}


.plate figcaption span {
    color: var(--gold);
}


/* Fallback card: shown behind the image, or in place of a broken one. */
.plate-fallback {
    position: absolute;
    inset: 10px;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px solid var(--line-strong);
    background:
        radial-gradient(120% 90% at 20% 0%, rgba(239, 228, 200, 0.08), transparent 60%),
        linear-gradient(160deg, rgba(34, 49, 39, 0.95), rgba(12, 19, 15, 0.98));
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
    pointer-events: none;
}


.plate-fallback span {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
}


.plate img {
    position: relative;
    z-index: 1;
}


.plate--missing img {
    visibility: hidden;
    font-size: 0;
    color: transparent;
}


.plate--missing .plate-fallback {
    z-index: 1;
}


.feature-index-card-media--missing img {
    visibility: hidden;
    font-size: 0;
    color: transparent;
}


/* Grand Bazaar: cinematic market loop with the real catalogue inset. */
.plate--bazaar {
    padding: 10px;
}


.bazaar-media {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.5);
    background: #1A1916;
}


.bazaar-video,
.bazaar-fallback {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}


.plate .bazaar-fallback {
    display: none;
}


.bazaar-ui {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 44%;
    max-width: 330px;
    max-height: calc(100% - 28px);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: #1A1916;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.58);
}


.bazaar-ui img {
    display: block;
    width: 100%;
    height: auto;
}


.bazaar-ui-label {
    margin: 0;
    padding: 6px 8px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
}


.world-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: stretch;
}


.field-notes {
    position: relative;
    align-self: center;
    padding: 28px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(44, 41, 31, 0.9), rgba(18, 17, 14, 0.94));
}


.field-notes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent 70%);
}


.notes-list {
    margin: 18px 0 0;
}


.notes-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(239, 228, 200, 0.08);
}


.notes-list dt {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
}


.notes-list dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--cream);
    text-align: right;
}


.note-copy {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 12px;
}


/* Skills ----------------------------------------------------------------- */

.skill-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}


.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}


.chip span {
    color: var(--muted-2);
    font-size: 8px;
}


.chip:hover {
    border-color: var(--line-strong);
    color: var(--cream);
}


.chip.is-active {
    border-color: var(--gold);
    background: rgba(217, 180, 90, 0.09);
    color: var(--gold-2);
}


.chip.is-active span {
    color: var(--gold);
}


.filter-count {
    margin: 0 0 0 auto;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
}


.skill-grid {
    display: grid;
    /* 19 live tiles + 2 teasers = 21, which fills three columns exactly. */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 10px;
}


.skill-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
        'medal copy'
        'reward reward';
    align-content: space-between;
    gap: 12px 14px;
    padding: 16px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(44, 41, 31, 0.86), rgba(18, 17, 14, 0.92));
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}


.skill-card:hover {
    border-color: rgba(217, 180, 90, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}


.skill-card.is-hidden {
    display: none;
}


.skill-medal {
    grid-area: medal;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(217, 180, 90, 0.32);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(217, 180, 90, 0.16), rgba(8, 14, 10, 0.88) 70%);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.55);
}


.skill-icon {
    display: block;
    width: 40px;
    height: 40px;
    background-image: url('/brand/skill-icons.png');
    background-repeat: no-repeat;
    background-size: 760px 40px;
    image-rendering: pixelated;
}


.skill-icon--attack { background-position: 0 0; }

.skill-icon--defence { background-position: -40px 0; }

.skill-icon--strength { background-position: -80px 0; }

.skill-icon--hitpoints { background-position: -120px 0; }

.skill-icon--ranged { background-position: -160px 0; }

.skill-icon--prayer { background-position: -200px 0; }

.skill-icon--magic { background-position: -240px 0; }

.skill-icon--cooking { background-position: -280px 0; }

.skill-icon--woodcutting { background-position: -320px 0; }

.skill-icon--fletching { background-position: -360px 0; }

.skill-icon--fishing { background-position: -400px 0; }

.skill-icon--firemaking { background-position: -440px 0; }

.skill-icon--crafting { background-position: -480px 0; }

.skill-icon--smithing { background-position: -520px 0; }

.skill-icon--mining { background-position: -560px 0; }

.skill-icon--herblore { background-position: -600px 0; }

.skill-icon--agility { background-position: -640px 0; }

.skill-icon--thieving { background-position: -680px 0; }

.skill-icon--runecraft { background-position: -720px 0; }


.skill-copy {
    grid-area: copy;
    min-width: 0;
}


.skill-copy h3 {
    margin: 1px 0 3px;
    color: var(--cream);
    font-size: 21px;
    letter-spacing: -0.01em;
}


.skill-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}


.skill-reward {
    grid-area: reward;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(239, 228, 200, 0.08);
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted-2);
}


.skill-reward b {
    color: var(--gold-2);
    font-weight: 400;
    white-space: nowrap;
}


.skill-reward small {
    font-size: 7.5px;
    color: var(--muted-2);
}


/* Skills narrative and teaser cards ------------------------------------- */

.skills-story {
    display: grid;
    gap: clamp(22px, 3vw, 32px);
    max-width: 900px;
    margin: clamp(8px, 2vw, 18px) 0 clamp(36px, 5vw, 48px);
    padding: clamp(22px, 3.5vw, 30px) clamp(22px, 3vw, 28px);
    border: 1px solid var(--line);
    background: linear-gradient(155deg, rgba(44, 41, 31, 0.92), rgba(18, 17, 14, 0.94));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}


.skills-story__beat + .skills-story__beat {
    padding-top: clamp(18px, 2.5vw, 24px);
    border-top: 1px solid rgba(239, 228, 200, 0.1);
}


.skills-story__line {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(20px, 2.4vw, 26px);
    font-style: italic;
    letter-spacing: -0.02em;
    color: var(--cream-2);
}


.skills-story__sub {
    margin: 10px 0 0;
    max-width: 68ch;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}


.skills-story__sub strong {
    color: var(--cream-3);
    font-weight: 600;
}


.skills-story__cite {
    margin: 14px 0 0;
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


.skills-story__cite a {
    color: var(--muted-2);
    border-bottom: 1px solid rgba(239, 228, 200, 0.12);
}


.skills-story__cite a:hover {
    color: var(--gold-2);
    border-color: rgba(217, 180, 90, 0.35);
}


.skills-story__inline-link {
    margin-top: 6px;
}


.skill-card--teaser {
    position: relative;
    border-style: dashed;
    border-color: rgba(239, 228, 200, 0.22);
    background: linear-gradient(160deg, rgba(44, 41, 31, 0.78), rgba(18, 17, 14, 0.88));
}


.skill-card--teaser::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.55;
    background: radial-gradient(120% 80% at 12% 0%, rgba(217, 180, 90, 0.07), transparent 55%);
}


.skill-card--slayer-teaser {
    border-color: rgba(184, 92, 74, 0.38);
    box-shadow: inset 0 0 0 1px rgba(224, 138, 60, 0.08);
}


.skill-card--slayer-teaser::after {
    background: radial-gradient(120% 85% at 10% -8%, rgba(224, 138, 60, 0.14), transparent 58%);
}


.skill-card--enchantment-teaser {
    --skill-accent: #a855f7;
}

.skill-card--salvage-teaser {
    --skill-accent: #b8860b;
}

.skill-card--enchantment-teaser .skill-medal--enchantment,
.skill-card--salvage-teaser .skill-medal--salvage {
    color: var(--skill-accent, currentColor);
}

.skill-card--slayer-teaser .skill-medal--slayer {
    border-color: rgba(224, 138, 60, 0.42);
    background: radial-gradient(circle at 35% 30%, rgba(224, 138, 60, 0.18), rgba(56, 28, 22, 0.72) 72%);
    color: rgba(245, 200, 160, 0.88);
}


.skill-card--exploration-teaser {
    grid-column: 1 / -1;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas:
        'medal copy'
        'reward reward';
    padding: clamp(18px, 2.5vw, 22px) clamp(18px, 2.5vw, 24px);
    border-color: rgba(90, 150, 168, 0.42);
    border-style: solid;
    background:
        linear-gradient(135deg, rgba(18, 52, 58, 0.35) 0%, transparent 42%),
        linear-gradient(160deg, rgba(22, 44, 48, 0.9), rgba(10, 20, 22, 0.94));
    box-shadow:
        0 22px 56px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(120, 190, 205, 0.12);
}


.skill-card--exploration-teaser:hover {
    border-color: rgba(120, 190, 205, 0.5);
    box-shadow:
        0 26px 60px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(120, 190, 205, 0.16);
}


.skill-card--exploration-teaser::after {
    background:
        radial-gradient(ellipse 90% 55% at 88% 12%, rgba(72, 140, 168, 0.2), transparent 55%),
        radial-gradient(ellipse 70% 50% at 4% 88%, rgba(46, 96, 112, 0.14), transparent 50%);
}


.skill-card--exploration-teaser .skill-copy h3 {
    font-size: clamp(22px, 2.6vw, 28px);
}


.skill-card--exploration-teaser .skill-copy p {
    font-size: 13px;
    max-width: 72ch;
}


.skill-card--exploration-teaser .skill-medal--exploration {
    width: 52px;
    height: 52px;
    border-color: rgba(120, 190, 205, 0.45);
    background: radial-gradient(circle at 38% 28%, rgba(110, 180, 198, 0.22), rgba(12, 28, 34, 0.92) 72%);
    color: rgba(190, 230, 240, 0.92);
}


.teaser-sigil {
    width: 28px;
    height: 28px;
}


.teaser-sigil--exploration {
    width: 30px;
    height: 30px;
}


.skill-reward--teaser {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}


.skill-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid rgba(239, 228, 200, 0.22);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
    background: rgba(8, 14, 12, 0.55);
}


.skill-pill--accent {
    border-color: rgba(120, 190, 205, 0.45);
    color: rgba(190, 230, 240, 0.95);
    background: rgba(12, 40, 48, 0.55);
}


.skill-teaser-note {
    font-size: 8px;
    letter-spacing: 0.08em;
    color: var(--muted-2);
}


.skill-teaser-link {
    margin-left: auto;
}


.faq-section__subtitle {
    margin-top: 12px;
}


.faq-list {
    max-width: none;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.faq-item {
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(44, 41, 31, 0.88), rgba(18, 17, 14, 0.94));
    transition: border-color 160ms ease, box-shadow 160ms ease;
}


.faq-item:hover {
    border-color: rgba(217, 180, 90, 0.22);
}


.faq-item[open] {
    border-color: rgba(217, 180, 90, 0.35);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}


.faq-item summary {
    padding: 18px 22px;
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--cream);
    cursor: pointer;
    list-style: none;
}


.faq-item summary::-webkit-details-marker {
    display: none;
}


.faq-item summary::after {
    content: '+';
    float: right;
    margin-left: 16px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--gold);
    opacity: 0.75;
}


.faq-item[open] summary::after {
    content: '-';
}


.faq-item summary:focus-visible {
    outline: 2px solid var(--gold-2);
    outline-offset: 2px;
}


.faq-item__body {
    padding: 0 22px 20px;
    border-top: 1px solid rgba(239, 228, 200, 0.08);
}


.faq-item__body p {
    margin: 14px 0 0;
    max-width: 72ch;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.58;
}


.faq-item__body p:first-child {
    margin-top: 16px;
}


.faq-item__body a {
    color: var(--gold-2);
}


.faq-item__body strong {
    color: var(--cream-3);
}


.points-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.85fr);
    gap: 1px;
    margin-top: 44px;
    border: 1px solid var(--line);
    background: var(--line);
}


.points-step {
    padding: 26px;
    background: var(--bg-2);
}


.step-index {
    margin: 0 0 10px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}


.points-step h3 {
    margin-bottom: 8px;
    font-size: 22px;
    color: var(--cream);
}


.points-step p {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
}


.points-cta {
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--bg-2);
}


.points-cta .btn {
    width: 100%;
}


/* Feature splits --------------------------------------------------------- */

.feature-list {
    display: grid;
    gap: clamp(64px, 8vw, 104px);
}


.feature-split {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: clamp(34px, 6vw, 76px);
    align-items: center;
}


.feature-media {
    min-width: 0;
}


.feature-split:nth-child(even) .feature-media {
    order: 2;
}


.feature-index {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}


.feature-copy h3 {
    margin: 14px 0 18px;
    font-size: clamp(32px, 3.8vw, 48px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--cream);
    text-wrap: balance;
}


/* Running copy only: the labelled children style themselves and must keep
   their own margins, size and colour. */
.feature-copy > p:not([class]) {
    max-width: 54ch;
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
}


/* Restore the authored gap above the feature caption divider. The copy rule
   above zeroes every direct child paragraph margin; .feature-meta's border-top
   draws the hairline, so without this override the rule sat flush on bullets.
   Supersedes tidaluxhq/runeultra#175 on post-#173 homepage content. */
.feature-copy > .feature-meta,
.adventurer-copy > .feature-meta {
    margin-top: 24px;
}


.feature-bullets {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}


.feature-bullets li {
    position: relative;
    padding-left: 18px;
    color: #D3C8B2;
    font-size: 13px;
}


.feature-bullets li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: -1px;
    color: var(--gold);
    font-size: 9px;
}


.feature-bullets--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
}


.feature-rule {
    margin: clamp(26px, 3vw, 32px) 0 0;
}


.feature-meta {
    margin: 14px 0 0;
    padding: 0;
    border-top: 0;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--muted-2);
}


/* Brand film ------------------------------------------------------------- */

.mark-section {
    overflow: hidden;
}


.mark-section::before {
    content: '';
    position: absolute;
    top: 8%;
    right: -12%;
    width: 76%;
    height: 84%;
    background: radial-gradient(circle at 60% 50%, rgba(224, 138, 60, 0.11), transparent 64%);
    pointer-events: none;
}


.mark-split {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: clamp(34px, 6vw, 76px);
    align-items: center;
}


.mark-copy h2 {
    margin: 14px 0 0;
    font-size: clamp(40px, 5.2vw, 64px);
    letter-spacing: -0.04em;
    color: var(--cream);
    text-wrap: balance;
}


.mark-copy .section-lede {
    max-width: 52ch;
}


.plate--mark {
    width: 100%;
}


.mark-media {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.5);
    background: #050807;
    aspect-ratio: 16 / 9;
}


.mark-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #050807;
}


.mark-play {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0;
    border: 0;
    background: radial-gradient(ellipse at center, rgba(5, 8, 6, 0.08), rgba(5, 8, 6, 0.58) 100%);
    color: var(--cream);
    cursor: pointer;
}


.mark-play[hidden] {
    display: none;
}


.mark-play:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -5px;
}


.mark-play-ring {
    display: grid;
    place-items: center;
    width: 78px;
    aspect-ratio: 1;
    border: 1px solid rgba(217, 180, 90, 0.62);
    border-radius: 50%;
    background: rgba(8, 13, 10, 0.55);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 24px rgba(224, 138, 60, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 240ms ease, background-color 240ms ease, border-color 240ms ease;
}


.mark-play:hover .mark-play-ring {
    transform: scale(1.06);
    border-color: var(--gold);
    background: rgba(26, 34, 27, 0.72);
}


.mark-play-ring svg {
    width: 22px;
    height: 22px;
    margin-left: 4px;
    fill: var(--gold-2);
    filter: drop-shadow(0 0 10px rgba(224, 138, 60, 0.35));
}


.mark-play-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cream);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}


.mark-play-label i {
    margin-left: 8px;
    font-style: normal;
    color: var(--muted-2);
}


code {
    padding: 1px 5px;
    border: 1px solid var(--line);
    background: rgba(217, 180, 90, 0.06);
    color: var(--gold-2);
    font-family: var(--font-mono);
    font-size: 0.88em;
    /* Long example URLs and file paths must wrap instead of widening the
       page on a phone. */
    overflow-wrap: anywhere;
    word-break: break-word;
}


pre {
    max-width: 100%;
    overflow-x: auto;
}


.adventurer-band {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: clamp(30px, 6vw, 70px);
    align-items: center;
    margin-top: clamp(64px, 8vw, 104px);
    padding-top: clamp(48px, 6vw, 80px);
    border-top: 1px solid var(--line);
}


.plate--tall {
    justify-self: end;
    max-width: 300px;
}


.plate--tall img {
    width: 100%;
    height: auto;
}


.adventurer-copy h3 {
    margin: 14px 0 18px;
    font-size: clamp(32px, 3.8vw, 46px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--cream);
}


.adventurer-copy > p:not([class]) {
    max-width: 56ch;
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
}


.kit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: clamp(64px, 8vw, 104px);
    border: 1px solid var(--line);
    background: var(--line);
}


.kit-card {
    padding: 26px;
    background: var(--bg-2);
    transition: background 200ms ease;
}


.kit-card:hover {
    background: var(--bg-3);
}


.kit-card .ru-site-icon--kit {
    margin-bottom: 18px;
}


.kit-tag {
    margin: 0 0 8px;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-2);
}


.kit-card h3 {
    margin-bottom: 8px;
    font-size: 22px;
    color: var(--cream);
}


.kit-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
}


/* Client ----------------------------------------------------------------- */

.client-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(34px, 6vw, 80px);
    align-items: center;
}


.client-copy .section-lede {
    margin-top: 22px;
}


.ticks {
    display: grid;
    gap: 11px;
    margin: 26px 0;
    padding: 0;
    list-style: none;
}


.ticks li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    color: #CFC4AC;
    font-size: 13.5px;
}


.ticks li::before {
    content: '+';
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.45;
}


kbd {
    padding: 1px 5px;
    border: 1px solid var(--line-strong);
    border-bottom-width: 2px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--cream-2);
    font-family: var(--font-mono);
    font-size: 0.8em;
}


.client-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}


.client-chips span {
    padding: 7px 10px;
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
}


.client-visual {
    position: relative;
    display: grid;
    gap: 18px;
    min-height: 0;
}


.client-thumbs {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 18px;
    align-items: start;
}


.browser-frame {
    position: relative;
    margin: 0;
    border: 1px solid var(--line-strong);
    background: #12110E;
    box-shadow: var(--shadow);
}


.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #1A271F, #111A15);
}


.browser-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3A4A3D;
}


.browser-bar span:nth-child(1) {
    background: #A25B4B;
}


.browser-bar span:nth-child(2) {
    background: #B99452;
}


.browser-bar span:nth-child(3) {
    background: #6F8A63;
}


.browser-bar em {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 8.5px;
    font-style: normal;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
}


.browser-frame img {
    display: block;
    width: 100%;
    height: auto;
}


.browser-frame figcaption {
    padding: 10px 14px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
}


.display-inset {
    width: 100%;
    margin: 0;
    border: 1px solid var(--line-strong);
    background: #12110E;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}


.display-inset img {
    display: block;
    width: 100%;
    height: auto;
}


.display-inset figcaption {
    padding: 8px 10px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
}


.phone-frame {
    justify-self: end;
    align-self: center;
    width: 100%;
    max-width: 260px;
    margin: 0;
    padding: 6px;
    border: 1px solid rgba(239, 228, 200, 0.32);
    border-radius: 26px;
    background: #050806;
    box-shadow: 0 26px 65px rgba(0, 0, 0, 0.55);
    transform: rotate(-3deg);
}


.phone-screen {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #12110E;
}


.phone-screen > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 19.5 / 9;
    object-fit: cover;
}


.phone-dock {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
}


.phone-dock img {
    display: block;
    width: 100%;
    height: auto;
}


.phone-frame figcaption {
    padding: 7px 0 2px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 7.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
}


/* Journey ---------------------------------------------------------------- */

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}


.steps::before {
    content: '';
    position: absolute;
    top: 21px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 180, 90, 0.42), transparent);
}


.steps li {
    position: relative;
    padding-top: 54px;
}


.step-num {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(217, 180, 90, 0.4);
    border-radius: 50%;
    background: var(--bg);
    color: var(--gold-2);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
}


.steps h3 {
    margin-bottom: 8px;
    font-size: 24px;
    color: var(--cream);
}


.steps p {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
}


.journey-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 46px;
}


/* Ladder preview --------------------------------------------------------- */

.ladder-section {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(34px, 6vw, 72px);
    align-items: stretch;
}


.ladder-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.ladder-copy h2 {
    margin: 14px 0 0;
}


.ladder-copy .section-lede {
    margin-bottom: 0;
}


.ladder-board {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line-strong);
    border-top: 2px solid var(--gold);
    background: linear-gradient(180deg, #24221C, #1A1916);
    box-shadow: var(--shadow);
}


.ladder-board .ladder-rows {
    flex: 1;
}


.ladder-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
}


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


.ladder-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 70px 100px;
    gap: 12px;
    align-items: center;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(239, 228, 200, 0.08);
}


.ladder-row:last-child {
    border-bottom: 0;
}


.ladder-rank {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted-2);
}


.ladder-row--top .ladder-rank {
    color: var(--gold);
}


.ladder-name {
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--cream);
    text-overflow: ellipsis;
    white-space: nowrap;
}


.ladder-name .ladder-badge {
    width: 17px;
    height: 15px;
    margin-right: 5px;
    vertical-align: -2px;
    image-rendering: pixelated;
}


.ladder-level,
.ladder-xp {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--muted);
    text-align: right;
}


.ladder-empty {
    padding: 48px 22px;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
}


.ladder-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 22px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
}


.ladder-foot a {
    color: var(--gold-2);
}


/* Create account --------------------------------------------------------- */

.create-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(34px, 6vw, 80px);
    align-items: start;
}


.section-copy h2 {
    margin: 14px 0 20px;
}


.section-copy > p {
    max-width: 48ch;
    color: var(--muted);
    font-size: 14.5px;
}


.ticks--starter li {
    font-size: 13px;
}


.note {
    padding: 13px 16px;
    border-left: 2px solid var(--gold);
    background: rgba(217, 180, 90, 0.055);
    color: #B9AE96;
    font-size: 12.5px;
}


.already {
    margin: 20px 0 0;
    font-size: 12.5px;
    color: var(--muted);
}


.card {
    position: relative;
    padding: clamp(26px, 4vw, 42px);
    color: var(--ink);
    border: 1px solid #BDA876;
    background:
        linear-gradient(180deg, rgba(239, 228, 200, 0.73), rgba(239, 228, 200, 0.84)),
        url('/brand/parchment.jpg?v=3') center / cover no-repeat,
        var(--cream);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}


.card::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(66, 54, 33, 0.14);
    pointer-events: none;
}


.card-kicker {
    margin: 0 0 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7A6845;
}


.card h2 {
    margin-bottom: 6px;
    font-size: clamp(32px, 3.6vw, 42px);
    color: var(--ink);
}


.card-sub {
    margin: 0 0 24px;
    color: var(--ink-soft);
    font-size: 13px;
}


.field {
    display: block;
    margin-bottom: 16px;
}


.field span {
    display: block;
    margin-bottom: 7px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #564B38;
}


.field input {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid #A38E63;
    border-radius: 0;
    outline: none;
    background: rgba(255, 252, 242, 0.62);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 14px;
    box-shadow: inset 0 2px 4px rgba(79, 63, 38, 0.08);
}


.field input:focus {
    border-color: #705A2E;
    background: #FBF5E5;
    box-shadow: 0 0 0 2px rgba(112, 90, 46, 0.16);
}


.hint {
    margin: -8px 0 16px;
    color: #786A51;
    font-size: 11px;
    line-height: 1.4;
}


.check {
    display: grid;
    grid-template-columns: 17px 1fr;
    gap: 9px;
    align-items: start;
    margin: 18px 0;
    color: #564B38;
    font-size: 12px;
    line-height: 1.4;
}


.check input {
    width: 15px;
    height: 15px;
    margin-top: 1px;
    accent-color: #5E704A;
}


.card .btn-primary {
    min-height: 48px;
    box-shadow: none;
}


.form-message {
    min-height: 20px;
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.4;
}


.form-message.error {
    color: #8F2F24;
}


.captcha-wrap {
    min-height: 0;
    margin: 14px 0 4px;
}


.captcha-note {
    margin-top: 8px;
    color: #887A61;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


.success-panel {
    padding: 16px 0 8px;
    text-align: center;
}


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


.success-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border: 1px solid #71865D;
    background: rgba(113, 134, 93, 0.12);
    color: #4F683E;
    font-size: 24px;
}


.success-panel h3 {
    margin-bottom: 8px;
    font-size: 30px;
}


.success-panel p {
    color: var(--ink-soft);
    font-size: 13px;
}


.success-panel .btn {
    margin-top: 18px;
}


/* Signup: dark plate with gold rules (scoped so the account page is untouched) */

.create-section .card {
    color: var(--cream);
    border: 1px solid rgba(217, 180, 90, 0.4);
    border-top: 2px solid var(--gold);
    background: linear-gradient(180deg, #24221C, #1A1916);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}


.create-section .card::before {
    border-color: rgba(217, 180, 90, 0.14);
}


.create-section .card-kicker {
    color: var(--gold);
}


.create-section .card h2,
.create-section .success-panel h3 {
    color: var(--cream);
}


.create-section .card-sub,
.create-section .success-panel p,
.create-section .form-message {
    color: var(--muted);
}


.create-section .field span {
    color: var(--cream-2);
}


.create-section .field input {
    border: 1px solid rgba(217, 180, 90, 0.38);
    background: #12110E;
    color: var(--cream);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}


.create-section .field input::placeholder {
    color: var(--muted-2);
}


.create-section .field input:focus {
    border-color: var(--gold-3);
    background: #12110E;
    box-shadow: 0 0 0 2px rgba(245, 230, 188, 0.28);
}


.create-section .hint,
.create-section .captcha-note {
    color: var(--muted);
}


.create-section .check {
    color: var(--cream-2);
}


.create-section .check input {
    accent-color: var(--gold);
}


.create-section .form-message.error {
    color: var(--blood);
}


.create-section .success-mark {
    border-color: var(--gold);
    background: rgba(217, 180, 90, 0.1);
    color: var(--gold-2);
}


/* Gate ------------------------------------------------------------------- */

.gate {
    position: relative;
    border-top: 1px solid var(--line);
    background: #1A1916;
}


.gate-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    width: min(var(--page-max), calc(100% - 48px));
    margin: 0 auto;
    padding: 36px 0;
}


.gate h2 {
    margin: 8px 0 6px;
    color: var(--cream);
    font-size: clamp(34px, 3.4vw, 46px);
    letter-spacing: -0.03em;
}


.gate p {
    margin: 0;
    color: #C8BEA8;
    font-size: 13px;
    line-height: 1.5;
}


.gate .kicker {
    justify-content: flex-start;
    color: var(--gold-2);
}


.gate .kicker::before {
    display: none;
}


.gate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


.gate-actions .btn {
    min-height: 44px;
    padding: 11px 12px;
}


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

footer {
    padding: 0 0 34px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 12px;
}


.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 36px;
    padding: 54px 0 36px;
}


.footer-brand {
    display: inline-block;
    margin-bottom: 14px;
}


.footer-brand img {
    display: block;
    width: auto;
    max-width: min(280px, 72vw);
    height: 44px;
    object-fit: contain;
    object-position: left center;
}


.footer-tagline {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.5;
    color: var(--cream-2);
}


.footer-disclaimer {
    max-width: 34ch;
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
    color: var(--muted-2);
}


.footer-title {
    margin: 0 0 14px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}


.footer-col a,
.footer-col span {
    display: block;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 12px;
}


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


.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
}


.footer-bottom a {
    color: var(--gold-2);
}


.feature-page-link {
    margin: 16px 0 0;
}


.feature-copy > p.feature-page-link {
    margin-top: 16px;
}


.kit-card .kit-link {
    margin-top: 14px;
}


.hero-wordmark {
    margin: 0 0 0.35rem;
    font-family: "EB Garamond", Georgia, serif;
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #efe4c8;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}


.play-help-link {
    display: inline-block;
    margin-top: 12px;
}


.forum-pulse-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}


table {
    width: 100%;
    border-collapse: collapse;
}


th,
td {
    padding: 13px 22px;
    border-bottom: 1px solid rgba(239, 228, 200, 0.09);
    text-align: left;
}


th {
    color: #8F8877;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


td {
    color: #D5CBB6;
    font-size: 14px;
}


tbody tr:hover {
    background: rgba(217, 180, 90, 0.045);
}


/* Responsive ------------------------------------------------------------- */

@media (max-width: 1100px) {
    .skill-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 960px) {
    .section-head--split {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .world-grid,
    .feature-split,
    .mark-split,
    .client-section,
    .ladder-section,
    .create-section {
        grid-template-columns: 1fr;
    }

    .feature-split:nth-child(even) .feature-media {
        order: 0;
    }

    .feature-media {
        max-width: 760px;
    }

    .bazaar-ui {
        position: static;
        width: 100%;
        max-width: none;
        margin-top: 10px;
    }

    .adventurer-band {
        grid-template-columns: 1fr;
    }

    .plate--tall {
        justify-self: start;
        max-width: 260px;
    }

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

    .client-visual {
        margin-top: 12px;
    }

    .client-thumbs {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 40px;
    }

    .steps::before {
        display: none;
    }

    .ladder-section {
        gap: 28px;
    }

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


@media (max-width: 1180px) {
    html {
        scroll-padding-top: 150px;
    }

    .brand-lockup {
        max-width: min(360px, 68vw);
    }

    .brand-crest-img,
    .brand-lockup-img {
        height: 44px;
    }
}


@media (max-width: 760px) {
    .skill-card--exploration-teaser {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .skill-card--exploration-teaser .skill-medal--exploration {
        width: 48px;
        height: 48px;
    }

    .faq-item summary {
        padding: 16px 18px;
        font-size: 15px;
    }

    .faq-item__body {
        padding: 0 18px 18px;
    }

    html {
        scroll-padding-top: 96px;
    }

    .nav {
        margin: 0;
        padding: 10px 0;
    }

    .brand-lockup {
        max-width: min(260px, 58vw);
    }

    .brand-crest-img,
    .brand-lockup-img {
        height: 36px;
    }

    .brand-text {
        display: none;
    }

    .nav-links {
        gap: 16px;
        font-size: 9px;
    }

    .nav-links a[data-nav]:not([data-nav="ladder"]) {
        display: none;
    }

    .hero {
        min-height: 700px;
    }

    .hero-inner {
        padding: 74px 0 42px;
    }

    .hero-media {
        background-position: 74% center;
    }

    .hero-video {
        object-position: 64% 50%;
    }

    .hero-scrim {
        background:
            linear-gradient(90deg, rgba(18, 17, 14, 0.95) 0%, rgba(18, 17, 14, 0.8) 54%, rgba(18, 17, 14, 0.28) 84%, rgba(18, 17, 14, 0.14) 100%),
            linear-gradient(180deg, rgba(18, 17, 14, 0.22) 0%, transparent 36%, rgba(18, 17, 14, 0.88) 100%);
    }

    .hero-copy {
        text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 0;
        padding-top: 20px;
    }

    .hero-stats > div {
        padding: 0 18px;
    }

    .hero-stats > div:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

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

    .points-band {
        grid-template-columns: 1fr;
    }

    .points-cta {
        padding: 22px;
    }

    .kit-grid {
        grid-template-columns: 1fr;
    }

    .feature-bullets--two {
        grid-template-columns: 1fr;
    }

    .ladder-row {
        grid-template-columns: 40px minmax(0, 1fr) 60px;
        padding: 13px 16px;
    }

    .ladder-xp {
        display: none;
    }

    .ladder-head,
    .ladder-foot {
        padding: 14px 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    th,
    td {
        padding: 11px 14px;
    }
}


@media (max-width: 560px) {
    .wrap,
    .hero-inner {
        width: min(var(--page-max), calc(100% - 32px));
    }

    .brand-text {
        font-size: clamp(32px, 8.2vw, 38px);
    }

    .nav-links {
        gap: 8px;
        font-size: 8.5px;
    }

    .nav-play {
        padding: 8px 11px !important;
    }

    h1 {
        font-size: clamp(48px, 14.2vw, 64px);
    }

    .hero {
        min-height: 660px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 0.15em;
    }

    .eyebrow::before {
        width: 16px;
        margin-right: 7px;
    }

    .filter-count {
        flex-basis: 100%;
        margin: 2px 0 0;
        text-align: left;
    }

    .btn {
        width: 100%;
    }

    .hero-stats dd {
        font-size: 26px;
    }

    .section {
        padding: 62px 0;
    }

    .skill-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        padding: 14px;
    }

    .card {
        padding: 22px 18px;
    }

    .steps {
        grid-template-columns: 1fr;
        row-gap: 30px;
    }

    .steps li {
        padding-top: 0;
        padding-left: 64px;
        min-height: 64px;
    }

    .step-num {
        top: 0;
    }

    .journey-cta {
        display: grid;
        gap: 16px;
    }

    .client-thumbs {
        grid-template-columns: 1fr;
    }

    .phone-frame {
        justify-self: center;
        max-width: 72%;
        margin-top: 6px;
        transform: none;
    }

    .browser-frame figcaption,
    .display-inset figcaption {
        font-size: 8px;
    }

    .gate {
        min-height: 620px;
    }

    .gate-inner {
        width: min(280px, calc(100% - 40px));
    }

    .gate h2 {
        font-size: 32px;
    }

    .footer-brand img {
        height: 34px;
    }
}


@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .plate .bazaar-video {
        display: none;
    }

    .plate .bazaar-fallback {
        display: block;
    }

    .hero-video {
        display: none;
    }

    .marquee-track {
        animation: none;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn,
    .skill-card,
    .plate img,
    .nav {
        transition: none;
    }

    .scroll-progress {
        display: none;
    }
}


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

[hidden] {
    display: none !important;
}


/* --------------------------------------------------------------------------
   Shared header status - one site, one presence line
   -------------------------------------------------------------------------- */

.nav-status [hidden] {
    display: none !important;
}


.nav-status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    margin-right: 6px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(18, 17, 14, 0.54);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}


.nav-status b {
    color: var(--cream);
    font-weight: 600;
}


.nav-status-sep {
    color: var(--line-strong);
}


.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted-2);
    box-shadow: 0 0 0 3px rgba(158, 149, 129, 0.12);
    vertical-align: middle;
}


.status-dot.is-online {
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(143, 175, 122, 0.16);
}


.status-dot.is-offline {
    background: var(--blood);
    box-shadow: 0 0 0 3px rgba(184, 92, 74, 0.14);
}


.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    height: 15px;
    margin-left: 5px;
    padding: 0 4px;
    border-radius: 999px;
    background: rgba(217, 180, 90, 0.16);
    border: 1px solid rgba(217, 180, 90, 0.32);
    color: var(--gold-2);
    font-size: 9px;
    letter-spacing: 0;
    line-height: 1;
}


.nav-badge.is-empty {
    display: none;
}


.nav-account {
    max-width: 108px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--gold-2) !important;
}


.nav-menu-toggle {
    display: none;
    border: 1px solid var(--line-strong);
    background: rgba(217, 180, 90, 0.07);
    color: var(--gold-2);
    width: 38px;
    height: 34px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}


.forum-form {
    display: grid;
    gap: 14px;
    max-width: 680px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(36, 34, 28, 0.56);
}


.forum-form .field textarea,
.forum-form .field select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: var(--panel-dark);
    color: var(--cream);
    font: inherit;
    font-size: 14px;
}


.forum-form .field textarea {
    resize: vertical;
    min-height: 150px;
}


.form-message.error {
    color: var(--login-error-text, #D67F6C);
}


/* --------------------------------------------------------------------------
   /play - game across the page under the site's slim header
   -------------------------------------------------------------------------- */

.play-body {
    overflow: hidden;
    background: #070b09;
}


.play-body .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 0;
    padding: 8px 16px;
    /* The play page has no page gutter: the slim bar is the only chrome left,
       so it owns the notch inset itself. Desktop resolves to 0 px. */
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
    min-height: 50px;
    border-bottom: 1px solid rgba(239, 228, 200, 0.13);
    background: rgba(18, 17, 14, 0.9);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    transition: transform 240ms ease, opacity 240ms ease;
}


.play-body .site-nav.is-hidden {
    transform: translateY(-112%);
    opacity: 0;
    pointer-events: none;
}


.play-body .site-nav .brand-lockup {
    max-width: min(280px, 56vw);
}


.play-body .site-nav .brand-crest-img,
.play-body .site-nav .brand-lockup-img {
    height: 36px;
}


.play-body .site-nav .nav-links {
    gap: 16px;
}


.play-body .site-nav .nav-links a {
    font-size: 9px;
}


.play-body .site-nav .nav-status {
    font-size: 8px;
}


.play-hotzone {
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    left: env(safe-area-inset-left, 0px);
    right: env(safe-area-inset-right, 0px);
    height: calc(26px + env(safe-area-inset-top, 0px));
    z-index: 1002;
    background: transparent;
}


.play-stage {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* Height follows the visual viewport while the on-screen keyboard is open.
       play.js writes --play-vh so the embedded client re-fits above the keyboard
       instead of leaving the login plaque underneath it. */
    height: 100%;
    height: 100dvh;
    height: var(--play-vh, 100dvh);
    z-index: 0;
    background: #070b09;
}


.play-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #070b09;
    color-scheme: dark;
}


.play-character-switch {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 6;
    padding: 7px 11px;
    border: 1px solid rgba(214, 183, 116, 0.45);
    background: rgba(7, 11, 9, 0.82);
    color: var(--gold-2);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
}


.play-character-switch:hover {
    border-color: var(--gold-2);
    color: var(--cream);
}


.play-body.is-choosing {
    background:
        radial-gradient(circle at 50% -10%, rgba(214, 183, 116, 0.12), transparent 46%),
        #070b09;
}


.character-select {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: clamp(96px, 16vh, 160px) 22px 64px;
}


.character-select h1 {
    margin: 2px 0 10px;
    color: var(--cream);
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1.05;
}


.character-select-copy {
    max-width: 640px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}


.character-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 26px 0 18px;
}


.character-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(214, 183, 116, 0.05), transparent 42%),
        rgba(12, 18, 14, 0.92);
    color: var(--cream);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 120ms ease, transform 120ms ease, background-color 120ms ease;
}


.character-card:hover,
.character-card:focus-visible {
    border-color: rgba(214, 183, 116, 0.72);
    background-color: rgba(21, 30, 23, 0.98);
    transform: translateY(-1px);
    outline: none;
}


.character-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}


.character-card-name {
    overflow: hidden;
    color: var(--cream);
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.character-card-tag {
    flex: none;
    padding: 1px 5px;
    border: 1px solid var(--line);
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


.character-card-rank {
    color: var(--gold-2);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.character-card-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
}


.character-card-facts b {
    color: var(--cream);
    font-weight: 400;
}


.character-card-action {
    margin-top: 4px;
    color: var(--gold-2);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.character-select-manage {
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
}


.character-select-manage a {
    color: var(--gold-2);
}


.play-loading {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-content: center;
    justify-items: center;
    overflow: hidden;
    gap: 0;
    background: #070b09;
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 14px;
    letter-spacing: 0;
    pointer-events: none;
    transition: opacity 320ms ease, visibility 320ms ease;
    opacity: 1;
    visibility: visible;
    padding: 24px;
    text-align: center;
}


.play-loading::before {
    content: '';
    position: absolute;
    inset: -2%;
    background: url('/brand/login-runehd-1920.webp') center / cover no-repeat;
    filter: blur(2.5px) brightness(0.34) saturate(0.82);
    transform: scale(1.045);
}


.play-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(58% 48% at 50% 44%, rgba(7, 11, 9, 0.06), rgba(7, 11, 9, 0.52) 72%, rgba(7, 11, 9, 0.9) 100%),
        linear-gradient(180deg, rgba(7, 11, 9, 0.72), rgba(7, 11, 9, 0.12) 34%, rgba(7, 11, 9, 0.18) 64%, rgba(7, 11, 9, 0.84));
}


.play-loading::before {
    content: '';
    position: absolute;
    inset: -2%;
    background: url('/brand/login-runehd-1920.webp') center / cover no-repeat;
    filter: blur(2.5px) brightness(0.34) saturate(0.82);
    transform: scale(1.045);
}


.play-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(58% 48% at 50% 44%, rgba(7, 11, 9, 0.06), rgba(7, 11, 9, 0.52) 72%, rgba(7, 11, 9, 0.9) 100%),
        linear-gradient(180deg, rgba(7, 11, 9, 0.72), rgba(7, 11, 9, 0.12) 34%, rgba(7, 11, 9, 0.18) 64%, rgba(7, 11, 9, 0.84));
}


.play-loading > :not(.play-loading-gem) {
    position: relative;
    z-index: 1;
}


.play-loading-gem {
    position: absolute;
    left: 50%;
    top: 34%;
    z-index: 0;
    width: min(440px, 72vw);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: url('/brand/runeultra-crest-512.png?v=6') center / contain no-repeat;
    opacity: 0.05;
    filter: saturate(0.8);
    pointer-events: none;
}


.play-loading > :not(.play-loading-gem) {
    position: relative;
    z-index: 1;
}


.play-loading-gem {
    position: absolute;
    left: 50%;
    top: 34%;
    z-index: 0;
    width: min(440px, 72vw);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: url('/brand/runeultra-crest-512.png?v=6') center / contain no-repeat;
    opacity: 0.05;
    filter: saturate(0.8);
    pointer-events: none;
}


.play-loading-logo {
    display: block;
    width: min(420px, 70vw);
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 18px 46px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 26px rgba(217, 180, 90, 0.1));
}


.play-loading .kicker {
    margin: 20px 0 0;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}


.play-loading-spinner {
    position: relative;
    overflow: hidden;
    width: 300px;
    max-width: 70vw;
    height: 1px;
    margin: 30px auto 20px;
    background: rgba(239, 228, 200, 0.13);
}


.play-loading-spinner::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 34%;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-2), transparent);
    animation: play-boot-sweep 1.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}


@keyframes play-boot-sweep {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(370%); }
}


/* Real boot progress forwarded by the client. The sweep above is the
   indeterminate fallback; once a stage percentage arrives the fill takes
   over so a slow archive cannot look like a frozen spinner. */
.play-loading-bar {
    position: relative;
    overflow: hidden;
    width: 300px;
    max-width: 70vw;
    height: 3px;
    margin: -14px auto 20px;
    border-radius: 2px;
    background: rgba(239, 228, 200, 0.09);
}


.play-loading-bar[hidden] {
    display: none;
}


.play-loading-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold), var(--gold-2));
    box-shadow: 0 0 12px rgba(217, 180, 90, 0.45);
    transition: width 280ms ease;
}


.play-boot-fact {
    max-width: 470px;
    min-height: 40px;
    margin: 22px auto 0;
    padding: 14px 0 0;
    border-top: 1px solid rgba(239, 228, 200, 0.09);
    border-radius: 0;
    background: none;
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 12.5px;
    line-height: 1.7;
    letter-spacing: 0.01em;
    text-transform: none;
    box-shadow: none;
    transition: opacity 240ms ease;
}


.play-fact-label {
    display: inline-block;
    margin-right: 8px;
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}


.play-loading-status {
    margin: 0;
    min-height: 26px;
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: 0.03em;
    text-transform: none;
}


.play-loading-status::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: 11px;
    border-radius: 50%;
    background: var(--gold);
    vertical-align: 2px;
    box-shadow: 0 0 10px rgba(217, 180, 90, 0.7);
    animation: play-boot-pulse 2.2s ease-in-out infinite;
}


@keyframes play-boot-pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}


@media (max-width: 560px) {
    .play-loading-logo {
        width: min(300px, 72vw);
    }

    .play-loading .kicker {
        font-size: 9px;
        letter-spacing: 0.22em;
    }

    .play-boot-fact {
        max-width: 380px;
        font-size: 12px;
    }
}


@media (prefers-reduced-motion: reduce) {
    .play-loading-spinner::after {
        animation: none;
        width: 100%;
    }

    .play-loading-status::before {
        animation: none;
        opacity: 1;
    }
}


.play-retry-link {
    margin-top: 10px;
    display: inline-block;
    padding: 8px 22px;
    font-family: var(--font-ui);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-bright, #eacb86);
    background: linear-gradient(180deg, rgba(217, 180, 90, 0.22), rgba(217, 180, 90, 0.10));
    border: 1px solid var(--gold, #d9b45a);
    border-radius: 4px;
    text-decoration: none;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.16s ease;
}


.play-retry-link:hover {
    border-color: var(--gold-bright, #eacb86);
    background: linear-gradient(180deg, rgba(217, 180, 90, 0.35), rgba(217, 180, 90, 0.18));
    box-shadow: 0 0 14px rgba(217, 180, 90, 0.35);
}


.play-retry-link:active {
    background: rgba(217, 180, 90, 0.28);
    color: #fff;
    transform: translateY(-1px);
}


.play-fullscreen-btn {
    position: fixed;
    top: calc(14px + env(safe-area-inset-top, 0px));
    right: calc(14px + env(safe-area-inset-right, 0px));
    z-index: 1003;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 6px;
    border: 1px solid rgba(217, 180, 90, 0.35);
    background: rgba(7, 11, 9, 0.78);
    backdrop-filter: blur(6px);
    color: var(--cream, #f1ede2);
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, opacity 0.2s ease;
    opacity: 0.72;
}


.play-fullscreen-btn:hover,
.play-fullscreen-btn:focus-visible {
    opacity: 1;
    background: rgba(18, 26, 21, 0.92);
    border-color: var(--gold, #d9b45a);
    transform: scale(1.04);
    outline: none;
}


.play-fullscreen-btn .icon-compress {
    display: none;
}


.play-fullscreen-btn.is-active .icon-expand {
    display: none;
}


.play-fullscreen-btn.is-active .icon-compress {
    display: block;
}


.play-portrait-hint {
    position: fixed;
    left: calc(12px + env(safe-area-inset-left, 0px));
    right: calc(12px + env(safe-area-inset-right, 0px));
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 1004;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(15, 20, 17, 0.95);
    border: 1px solid var(--gold, #d9b45a);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
    color: var(--cream, #f1ede2);
    font-size: 13px;
    animation: play-hint-fadein 0.3s ease;
}


@keyframes play-hint-fadein {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}


.play-portrait-hint[hidden] {
    display: none !important;
}


.play-portrait-hint .hint-dismiss {
    flex-shrink: 0;
    /* 44 px keeps the only way out of the hint inside thumb reach. */
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: 1px solid rgba(217, 180, 90, 0.3);
    color: var(--cream, #f1ede2);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.15s ease, border-color 0.15s ease;
}


.play-portrait-hint .hint-dismiss:hover {
    background: rgba(217, 180, 90, 0.2);
    border-color: var(--gold, #d9b45a);
}


@media (min-width: 769px) {
    .play-portrait-hint {
        display: none !important;
    }
}


.play-noscript {
    position: absolute;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    left: calc(24px + env(safe-area-inset-left, 0px));
    color: var(--warn);
}


.play-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    width: min(520px, 94vw);
    display: flex;
    flex-direction: column;
    /* The side sheet runs edge to edge, so it clears the notch and the home
       indicator with its own padding rather than the page's. */
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) 0;
    border-left: 1px solid var(--line-strong);
    background: #12110E;
    box-shadow: -24px 0 80px rgba(0, 0, 0, 0.55);
    transform: translateX(0);
}


.play-drawer[hidden] {
    display: none;
}


.play-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(36, 34, 28, 0.9);
}


.play-drawer-title {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}


.play-drawer-close {
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: rgba(217, 180, 90, 0.07);
    color: var(--gold-2);
    padding: 6px 9px;
    min-width: 44px;
    min-height: 44px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    touch-action: manipulation;
}


.play-drawer-close:hover {
    border-color: var(--gold);
}


.play-drawer-frame {
    flex: 1;
    width: 100%;
    border: 0;
    background: var(--bg);
}


.play-drawer-scrim {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(2px);
}


.play-drawer-scrim[hidden] {
    display: none;
}


/* --------------------------------------------------------------------------
   /play - phone and tablet polish
   Everything below is scoped to coarse pointers, narrow widths or the
   keyboard-open class play.js sets, so desktop Fit/Fixed is untouched.
   -------------------------------------------------------------------------- */

@media (pointer: coarse) {
    /* 44 px minimum target for the only two float controls that never grow. */
    .play-fullscreen-btn {
        width: 44px;
        height: 44px;
    }
}


@media (max-width: 760px) {
    /* The links collapse into the menu toggle here. Reserve the fixed
       fullscreen button's corner so the toggle is never underneath it. */
    .play-body .site-nav {
        padding: 6px 10px;
        padding-top: calc(6px + env(safe-area-inset-top, 0px));
        padding-left: calc(10px + env(safe-area-inset-left, 0px));
        padding-right: calc(58px + env(safe-area-inset-right, 0px));
    }

    .play-fullscreen-btn {
        top: calc(8px + env(safe-area-inset-top, 0px));
        right: calc(8px + env(safe-area-inset-right, 0px));
    }
}


/* Short landscape (phones only): give the world the height back instead of
   the chrome. The width cap keeps short desktop windows on the normal bar. */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 960px) {
    .play-body .site-nav {
        min-height: 40px;
        padding-top: calc(4px + env(safe-area-inset-top, 0px));
    }
}


/* While the on-screen keyboard is open nothing should float over the game
   plaque or sit under the user's thumb. */
.play-body.play-keyboard-open .site-nav,
.play-body.play-keyboard-open .play-portrait-hint,
.play-body.play-keyboard-open .play-fullscreen-btn {
    display: none !important;
}


/* iOS zooms the whole page when a focused control renders below 16 px. Every
   form the /play drawer can surface (store, forums, account) inherits this. */
@media (max-width: 820px) {
    .field input,
    .field select,
    .field textarea,
    .forum-form .field textarea,
    .forum-form .field select {
        font-size: 16px;
    }
}


body.is-drawer .site-nav,
body.is-drawer .site-footer,
body.is-drawer .scroll-progress {
    display: none !important;
}


body.is-drawer .wrap {
    width: 100%;
    margin: 0;
}


body.is-drawer {
    background: var(--bg);
}


@media (max-width: 1180px) {
    .nav-status {
        display: none;
    }
}


@media (max-width: 980px) {

    .play-body .site-nav .brand-lockup {
        max-width: min(220px, 52vw);
    }

    .play-body .site-nav .brand-crest-img,
    .play-body .site-nav .brand-lockup-img {
        height: 32px;
    }
}


@media (max-width: 760px) {
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 12px;
        left: 12px;
        z-index: 200;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px;
        border: 1px solid var(--line-strong);
        border-radius: 12px;
        background: rgba(18, 17, 14, 0.97);
        backdrop-filter: blur(16px);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 10px 8px;
        border-radius: 7px;
    }

    .nav-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .nav-links a.nav-play {
        min-height: 44px;
    }

    .nav-status {
        display: none;
    }

    /* The slim play bar's mobile padding - including the safe-area insets and
       the fullscreen-button reserve - lives in the /play polish block above. */
    .play-body .site-nav .brand-lockup {
        max-width: min(200px, 58vw);
    }

    .play-body .site-nav .brand-crest-img,
    .play-body .site-nav .brand-lockup-img {
        height: 28px;
    }
}


/* Rank palette names, rank lines and the deepened profile page. The colour
   values themselves come from /ranks.css, generated from
   design/rank-palette.json at boot. */
.pn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    color: var(--rank);
    font-weight: 600;
    text-decoration: none;
}


.register-hint {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.5;
}


.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin: 12px 0 0;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 9px;
    line-height: 1.5;
}


.footer-legal-links a {
    display: inline;
    color: var(--muted);
    padding: 0;
}


.footer-legal-links a:hover {
    color: var(--gold-2);
}


.field select {
    width: 100%;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: rgba(11, 18, 15, 0.65);
    color: var(--cream);
    font-family: var(--font-mono);
    font-size: 13px;
}


#birth-month-field .hint {
    display: block;
    margin-top: 5px;
}


.card .check a,
.legal-parchment .check a {
    color: #6B4E18;
    text-decoration: underline;
    text-underline-offset: 2px;
}

