.header--home {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    grid-template-rows: auto auto;
    align-content: center;
    width: min(100%, 73rem);
    min-height: clamp(29rem, 42vw, 35rem);
    height: auto;
    margin-inline: auto;
    padding: 1rem clamp(.6rem, 3.5vw, 2.25rem) 1.5rem;
    column-gap: clamp(1rem, 4.5vw, 3.75rem);
    isolation: isolate;
}
.header--home .hero {
    position: absolute;
    inset: 0 47% 0 0;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: auto;
    height: auto;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
    mask-image: linear-gradient(#000 78%, #000e 91%, transparent);
}
.onyx-hero-figure {
    position: relative;
    flex: none;
    height: 100%;
    aspect-ratio: 2 / 3;
    max-width: 100%;
    transform-origin: 52% 15%;
    animation: onyx-hero-idle 6.8s ease-in-out infinite;
}
.onyx-hero-figure img {
    display: block;
    width: 100%;
    height: auto;
}
.header--home .logo {
    grid-area: 1 / 2;
    align-self: end;
    justify-self: start;
}
.header--home .logo img {
    display: block;
    width: clamp(155px, 18vw, 232px);
    height: auto;
    max-width: 100%;
    aspect-ratio: 1569 / 1003;
}
.header--home .headerInfo {
    grid-area: 2 / 2;
    align-self: start;
    text-align: left;
}
.header--home .headerInfo-title {
    margin: .55rem 0 .65rem;
    color: #f3edf6;
    font: 400 clamp(2.25rem, 4.3vw, 3.75rem)/1.03 'albertus', Georgia, serif;
    text-shadow: 0 .13rem .8rem #140e1a;
}
.header--home .headerInfo-text {
    margin-bottom: 1rem;
    color: #f2e7f2;
    text-shadow: 0 .1rem .5rem #140d1c, 0 .1rem .2rem #140d1c;
}
@media (max-width: 820px) {
    .header--home {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-content: end;
        min-height: clamp(30rem, 136vw, 50rem);
        padding: clamp(9rem, 49vw, 21rem) .65rem clamp(1.45rem, 4vw, 2rem);
    }
    .header--home .hero {
        inset: 0 -.625rem;
        mask-image: linear-gradient(#000 51%, #000c 75%, transparent);
    }
    .onyx-hero-figure {
        width: min(100%, 41rem);
        height: auto;
    }
    .header--home .logo { grid-area: 1 / 1; justify-self: center; }
    .header--home .logo img {
        width: clamp(195px, 65vw, 380px);
        margin-inline: auto;
    }
    .header--home .headerInfo { grid-area: 2 / 1; text-align: center; }
    .header--home .headerInfo-title { text-shadow: 0 .1rem .85rem #110a17, 0 .12rem .22rem #110a17; }
    .header--home .headerInfo-text { margin: .95rem 0 1.1rem; }
    .header--home .headerInfo-button .button { background: #18101dc2; }
    .header--home .headerInfo-button .button:hover { background: #382b3a; }
}

.onyx-hero-effects {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}
.onyx-hero-blade-glow {
    fill: none;
    stroke: #ff8748;
    stroke-linecap: round;
    stroke-width: 3;
    filter: drop-shadow(0 0 8px #ff5c2e);
    opacity: .68;
}
.onyx-hero-blade-pulse {
    opacity: 0;
    animation: onyx-sword-pulse 4.4s linear infinite;
}
.onyx-hero-ember {
    opacity: 0;
    animation: onyx-hero-drift 3.8s ease-out var(--ember-delay) infinite;
}
.onyx-hero-armor-glint {
    opacity: .14;
    animation: onyx-armor-glint 5.6s ease-in-out var(--glint-delay) infinite;
}

.onyx-armor-rim {
    fill: none;
    stroke: #ffc975;
    stroke-width: 4;
    stroke-linecap: round;
    filter: drop-shadow(0 0 7px #ff853e) drop-shadow(0 0 12px #ed5c28);
    animation: onyx-armor-rim 4.2s ease-in-out var(--armor-delay, 0s) infinite;
}
.onyx-armor-flare {
    animation: onyx-armor-flare 4.2s ease-in-out var(--armor-delay, 0s) infinite;
}
.onyx-armor-run {
    animation: onyx-armor-run 4.2s linear var(--armor-delay, 0s) infinite;
}
.onyx-armor-spark {
    opacity: 0;
    filter: drop-shadow(0 0 4px #f5783b);
    animation: onyx-hero-drift 2.9s ease-out var(--ember-delay) infinite;
}

@keyframes onyx-hero-idle {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(4px) scale(1.016); }
}
@keyframes onyx-armor-rim {
    0%, 100% { opacity: .38; }
    24% { opacity: .92; }
    67% { opacity: .48; }
}
@keyframes onyx-armor-flare {
    0%, 62%, 100% { opacity: .16; }
    19% { opacity: .72; }
    38% { opacity: .3; }
}
@keyframes onyx-armor-run {
    0%, 94%, 100% { opacity: 0; }
    7%, 72% { opacity: .92; }
}

@keyframes onyx-sword-pulse {
    0% { opacity: 0; transform: translate(35px, 1466px); }
    12% { opacity: .92; }
    25% { transform: translate(220px, 1275px); }
    45%, 100% { opacity: 0; transform: translate(459px, 1051px); }
}
@keyframes onyx-hero-drift {
    0%, 65%, 100% { opacity: 0; }
    0% { transform: translate(0, 0); }
    14% { opacity: .92; }
    65%, 100% { transform: translate(var(--ember-x), var(--ember-y)); }
}
@keyframes onyx-armor-glint {
    0%, 36%, 66%, 100% { opacity: .13; }
    47% { opacity: .94; }
}

.onyx-lobby-brief,
.onyx-forge {
    --forge-gold: #fbd181;
    --forge-ink: #f5edf6;
    --forge-muted: #c5bacd;
    --forge-stone: #1d1726;
    --forge-line: #6c554869;
}
.onyx-lobby-brief {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0 0 1.5rem;
    border: 1px solid var(--forge-line);
    border-radius: 1rem;
    background: #1b1624;
    color: var(--forge-ink);
    font-family: 'DINNextW1G', sans-serif;
}
.onyx-lobby-event,
.onyx-lobby-download {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 68px;
    padding: .6rem .85rem;
    color: inherit;
    text-decoration: none;
}
.onyx-lobby-event {
    min-width: 0;
    border-radius: 1rem 0 0 1rem;
}
.onyx-lobby-download {
    border-left: 1px solid var(--forge-line);
    border-radius: 0 1rem 1rem 0;
    color: var(--forge-gold);
}
.onyx-lobby-event:is(:hover,:focus-visible),
.onyx-lobby-download:is(:hover,:focus-visible) {
    background: #35283a;
    color: #ffe7b9;
}
.onyx-lobby-icon {
    display: grid;
    flex: 0 0 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--forge-line);
    border-radius: .55rem;
    background: #302430;
    color: var(--forge-gold);
}
.onyx-lobby-event-copy {
    display: grid;
    gap: .25rem;
    flex: 1;
    min-width: 0;
}
.onyx-lobby-event-copy small {
    color: var(--forge-muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .085em;
}
.onyx-lobby-event-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .98rem;
}
.onyx-lobby-clock {
    flex: none;
    font-size: .83rem;
    font-variant-numeric: tabular-nums;
    color: var(--forge-gold);
}
.onyx-lobby-arrow { font-size: .66rem; opacity: .8; }

.onyx-forge {
    container: onyx-classes / inline-size;
    margin: 0 0 2.4rem;
    color: var(--forge-ink);
    scroll-margin-top: 1.25rem;
}
.onyx-forge-heading {
    display: grid;
    gap: .45rem;
    margin-bottom: 1rem;
}
.onyx-forge-heading h2 {
    font-size: clamp(1.7rem, 3.3vw, 2.65rem);
    line-height: 1.05;
    margin: 0;
    color: var(--forge-ink);
}
.onyx-forge-kicker,
.onyx-forge-role {
    color: var(--forge-gold);
    font: 600 .72rem/1.25 "Open Sans", sans-serif;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.onyx-forge-kicker i { margin-right: .38rem; }
.onyx-forge-options {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .45rem;
    margin: 0 0 .65rem;
}
.onyx-forge-options a {
    display: grid;
    justify-items: center;
    gap: .36rem;
    min-width: 0;
    padding: .65rem .15rem;
    border: 1px solid #51434f;
    border-radius: .65rem;
    color: #e8dfec;
    background: var(--forge-stone);
    font: 600 clamp(.65rem, 1.05vw, .83rem)/1.2 'DINNextW1G', sans-serif;
    text-decoration: none;
    transition: background-color .18s, border-color .18s, color .18s;
}
.onyx-forge-options a img {
    display: block;
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: .35rem;
}
.onyx-forge-options a:is(:hover,[aria-current="true"]) {
    border-color: #d2a967;
    color: #ffe5b2;
    background: #352738;
}
.onyx-forge-stage {
    --forge-glow: #975e36;
    min-height: clamp(296px, 27vw, 410px);
    position: relative;
    display: grid;
    align-items: end;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--forge-line);
    border-radius: 1rem;
    background: radial-gradient(ellipse at 77% 33%, var(--forge-glow), #211a2c 52%, #16111e 75%);
}
.onyx-forge-stage[data-class="arquera"] { --forge-glow: #2d7895; }
.onyx-forge-stage[data-class="herrero"] { --forge-glow: #a25a39; }
.onyx-forge-stage[data-class="mago"] { --forge-glow: #7651a2; }
.onyx-forge-stage[data-class="ninja"] { --forge-glow: #2f776e; }
.onyx-forge-stage[data-class="duelista"] { --forge-glow: #9a4b58; }
.onyx-forge-visual {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.onyx-forge-visual::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #18121fcb, #18121f82 35%, transparent 62%);
    pointer-events: none;
    content: '';
}
.onyx-forge-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}
.onyx-forge-copy {
    width: min(50%, 440px);
    padding: clamp(1rem, 3vw, 2.4rem);
    font-family: 'DINNextW1G', sans-serif;
}
.onyx-forge-role { margin: 0 0 .65rem; }
.onyx-forge-name {
    margin: 0 0 .55rem;
    color: var(--forge-ink);
    font: 400 clamp(1.8rem, 4vw, 3.35rem)/1 'albertus', Georgia, serif;
}
.onyx-forge-description {
    color: var(--forge-muted);
    font-size: clamp(.92rem, 1.4vw, 1.1rem);
    line-height: 1.4;
    margin: 0 0 1rem;
    min-height: 3em;
}
.onyx-forge-rank {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #ffe4ad;
    background: #2a202e;
    border: 1px solid #ae8b5f;
    border-radius: .55rem;
    padding: .55rem .7rem;
    text-decoration: none;
    font-size: .88rem;
}
.onyx-forge-rank:hover { background: #493746; color: #fff0ce; }
.onyx-forge a:focus-visible,
.onyx-lobby-brief a:focus-visible {
    outline: 2px solid #fbd181;
    outline-offset: 3px;
}
.onyx-home-news-link {
    font: 600 .9rem/1.2 'DINNextW1G', sans-serif;
    color: #fbd181;
    white-space: nowrap;
}
.onyx-home-news-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
}
@container onyx-classes (max-width: 600px) {
    .onyx-forge-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .onyx-forge-stage {
        --forge-art-height: clamp(175px, 57cqw, 300px);
        min-height: 0;
        background: #18121f;
    }
    .onyx-forge-visual {
        inset: 0 0 auto;
        height: var(--forge-art-height);
    }
    .onyx-forge-visual::after {
        background: linear-gradient(180deg, transparent 57%, #18121f);
    }
    .onyx-forge-copy {
        width: 100%;
        padding-top: var(--forge-art-height);
    }
    .onyx-forge-description { min-height: 2.8em; }
}
@media (max-width: 610px) {
    .onyx-lobby-brief { grid-template-columns: 1fr; }
    .onyx-lobby-event { border-radius: 1rem 1rem 0 0; }
    .onyx-lobby-download {
        min-height: 44px;
        border-left: 0;
        border-top: 1px solid var(--forge-line);
        border-radius: 0 0 1rem 1rem;
    }
    .onyx-home-news-title { flex-wrap: wrap; }
}

.onyx-sidebar-rankings {
    display: grid;
    gap: .9rem;
    margin-top: 1rem;
    font-family: 'DINNextW1G', sans-serif;
}
.onyx-mini-ranking {
    --mini-accent: #e7bc79;
    --mini-edge: #94744952;
    min-width: 0;
    padding: .88rem 1rem;
    border: 1px solid var(--mini-edge);
    border-radius: .8rem;
    background: radial-gradient(ellipse at top left, #65433936, transparent 68%), #1c1724;
    color: #f4eaf4;
}
.onyx-mini-ranking--bajas {
    --mini-accent: #f3ab96;
    --mini-edge: #a36e665e;
    background: radial-gradient(ellipse at top left, #783b3a45, transparent 68%), #1c1724;
}
.onyx-mini-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .62rem;
    align-items: center;
    margin-bottom: .65rem;
}
.onyx-mini-icon {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    border: 1px solid var(--mini-edge);
    border-radius: .52rem;
    background: #332630;
    color: var(--mini-accent);
    font-size: .95rem;
}
.onyx-mini-heading h2 {
    margin: 0 0 .12rem;
    color: #f3e8f1;
    font: 400 1.3rem/1 'albertus', Georgia, serif;
}
.onyx-mini-heading p {
    margin: 0;
    color: #d3c2d0;
    font-size: .82rem;
    line-height: 1.2;
}
.onyx-mini-limit {
    padding: .25rem .4rem;
    border: 1px solid var(--mini-edge);
    border-radius: .4rem;
    color: var(--mini-accent);
    font-size: .76rem;
    font-weight: 700;
    white-space: nowrap;
}
.onyx-mini-rows {
    margin: 0;
    padding: 0;
    list-style: none;
}
.onyx-mini-rows li {
    display: grid;
    grid-template-columns: 2.55rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .6rem;
    min-height: 2.4rem;
    border-top: 1px solid #f3d8f018;
    font-size: .94rem;
}
.onyx-mini-name {
    display: flex;
    align-items: center;
    gap: .38rem;
    min-width: 0;
    color: #f0e5f1;
}
.onyx-mini-name > span { min-width: 0; overflow-wrap: anywhere; }
.onyx-mini-name img { flex: none; object-fit: contain; }
.onyx-mini-value { color: #d8c7d4; white-space: nowrap; font-size: .8rem; }
.onyx-mini-value strong { color: var(--mini-accent); font-size: .97rem; font-variant-numeric: tabular-nums; }
.onyx-mini-open .onyx-mini-name { color: #a99bac; font-size: .88rem; }
.onyx-mini-empty { margin: .7rem 0 0; color: #d3c2d0; font-size: .92rem; }
.onyx-mini-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .35rem;
    padding: .55rem .35rem .05rem;
    border-top: 1px solid var(--mini-edge);
    color: #f7d8ad;
    font-size: .87rem;
    text-decoration: none;
}
.onyx-mini-more:is(:hover, :focus-visible) { color: #ffeac8; text-decoration: underline; }
.onyx-mini-more:focus-visible { outline: 2px solid #fbd181; outline-offset: 3px; }
