.ashfall-theme .main-hd.ashfall-hero {
    background: linear-gradient(180deg, #140b13e0, #140b1352 42%, #140b1308 100%);
}

.ashfall-theme .ashfall-hero .page-width {
    min-height: clamp(555px, 41vw, 688px);
}

.ashfall-hero-art {
    position: absolute;
    inset: 0 max(0px, calc((100vw - 1800px) / 2)) 22px auto;
    display: block;
    width: min(85vw, 1536px);
    pointer-events: none;
    mask-image: linear-gradient(90deg, transparent 1%, #000 36%, #000 90%, #000c),
                linear-gradient(180deg, #000 0 79%, transparent 100%);
    mask-composite: intersect;
}

.ashfall-hero-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 71% 22%;
}

.ashfall-theme .main-hd.ashfall-hero .ashfall-brand {
    top: 47%;
    left: 1%;
    width: min(47%, 500px);
    transform: translateY(-28%);
    filter: drop-shadow(1px 1px 1px #eb2327c4) drop-shadow(-1px -1px 1px #c91620ad)
            drop-shadow(0 5px 13px #150813);
}

.ashfall-theme .ashfall-footer .ashfall-footer-brand img {
    filter: drop-shadow(1px 1px 1px #ec2429c4) drop-shadow(-1px -1px 1px #ba1721a8);
}

.ashfall-hero .ashfall-lettering-wordmark { width: 96%; }
.ashfall-hero .ashfall-lettering-details { margin-top: 15px; }
.ashfall-theme .ashfall-hero .ashfall-brand .ashfall-tagline { width: 85%; }

.ashfall-status-ornament {
    position: absolute;
    isolation: isolate;
    z-index: 2;
    inset-block-start: 2px;
    inset-inline-start: calc(50% - 46px);
    display: grid;
    place-items: center;
    width: 92px;
    height: 95px;
    color: #ffe9d7;
    line-height: 1.08;
    text-align: center;
}

.ashfall-status-chain {
    position: absolute;
    z-index: -1;
    top: 33px;
    display: flex;
    align-items: center;
    direction: ltr;
    height: 16px;
    color: #c07a27;
    filter: drop-shadow(0 2px 2px #160909);
}
.ashfall-status-chain-left {
    right: 78px;
    transform: rotate(17deg);
    transform-origin: right center;
}
.ashfall-status-chain-right {
    left: 78px;
    transform: rotate(-17deg);
    transform-origin: left center;
}
.ashfall-status-chain > span {
    position: relative;
    width: 19px;
    height: 12px;
    border: 2px solid currentColor;
    border-top-color: #ffdf91;
    border-bottom-color: #9b511d;
    border-radius: 47%;
    box-shadow: 0 0 0 1px #5c2e13, inset 0 1px 1px #6d390f;
}
.ashfall-status-chain > span + span { margin-left: -6px; }
.ashfall-status-chain > span:nth-child(even) {
    z-index: 1;
    height: 6px;
    border-width: 1px;
    border-radius: 4px;
    background: linear-gradient(180deg, #ffdf93, #e7a741 37%, #9b5018 75%, #6d3616);
}
@media (max-width: 420px) {
    .ashfall-status-chain > span { width: 16px; }
}

.ashfall-status-glass {
    --ruby-light: #d9213e;
    --ruby-mid: #960b28ed;
    --ruby-low: #300a18ec;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 3px;
    width: 90px;
    height: 90px;
    padding: 6px 4px;
    border: 1px solid #b15d43;
    border-radius: 50%;
    background: linear-gradient(150deg, #b96b4f 0, #683729 23%, #261f23 60%, #a5553e 100%);
    box-shadow: 0 0 0 1px #2b1517, 0 4px 10px #0b070bda;
    text-shadow: 0 1px 2px #240510, 0 0 5px #240511;
}
.ashfall-status-glass::before,
.ashfall-status-glass::after {
    position: absolute;
    border-radius: 50%;
    content: "";
}
.ashfall-status-glass::before {
    z-index: -2;
    inset: 3px;
    border: 1px solid #10141a;
    background: linear-gradient(135deg, #45505a, #17191f 35%, #101319 68%, #3e444b);
}
.ashfall-status-glass::after {
    z-index: -1;
    inset: 7px;
    background:
        radial-gradient(ellipse at 72% 25%, #fff0d5f2 0, #ffd0bdad 4%, #ff676463 9%, transparent 16%),
        radial-gradient(ellipse at 67% 28%, var(--ruby-light), var(--ruby-mid) 30%, var(--ruby-low) 72%, #1a0a15 96%);
    box-shadow: inset 0 2px 5px #100d16ab, inset 0 -5px 8px #200715;
}
.ashfall-status-ornament[data-state="offline"] .ashfall-status-glass {
    --ruby-light: #ad2639;
    --ruby-mid: #761329ed;
    --ruby-low: #290c18f0;
}


.ashfall-status-label { max-width: 100%; font-size: 10px; }
.ashfall-status-glass strong { font-size: 12px; }
.ashfall-online-count {
    color: #fff2d9;
    font-size: 17px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.ashfall-status-glass strong::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-inline-end: 4px;
    border-radius: 50%;
    background: #a9e3a2;
    vertical-align: .08em;
    content: "";
}
.ashfall-status-ornament[data-state="offline"] strong::before { background: #ff9c93; }

.ashfall-theme .ashfall-hero .main {
    border-color: #9e5860;
    background: #21131bea;
}
.ashfall-theme .ashfall-hero .main > .menu-item > a {
    position: relative;
    padding-inline: 6px;
    text-shadow: 0 1px 3px #10070c;
    transition: color 160ms ease, text-shadow 160ms ease;
}
.ashfall-theme .ashfall-hero .main > .menu-item > a::before {
    position: absolute;
    inset: 0 10% auto;
    height: 2px;
    opacity: 0;
    background: #ef807b;
    transition: opacity 160ms ease;
    content: "";
}
.ashfall-theme .ashfall-hero .main > .menu-item:is(:hover, :focus-within) > a,
.ashfall-theme .ashfall-hero .main > .menu-item > a[aria-current="page"] {
    color: #ffd2c9;
    background: radial-gradient(ellipse at 50% 0, #a83b4e9e, transparent 74%);
}
.ashfall-theme .ashfall-hero .main > .menu-item:is(:hover, :focus-within) > a {
    color: #ff849a;
    text-shadow: 0 0 5px #fb214dba, 0 1px 3px #2e0d1d;
}

.ashfall-theme .ashfall-hero .main > .menu-item:is(:hover, :focus-within) > a::before,
.ashfall-theme .ashfall-hero .main > .menu-item > a[aria-current="page"]::before { opacity: 1; }

.ashfall-theme :is(.ashfall-hero .external, .ashfall-hero .sub-menu, .ashfall-footer .footer-nav) a:not(.ashfall-footer-brand) {
    border-radius: 5px;
    text-shadow: 0 1px 2px #8b131b, 0 2px 5px #190a12;
    transition: color 160ms ease, box-shadow 160ms ease, text-shadow 160ms ease;
}
.ashfall-theme :is(.ashfall-hero .external, .ashfall-hero .sub-menu, .ashfall-footer .footer-nav) a:not(.ashfall-footer-brand):is(:hover, :focus-visible) {
    color: #ffdb70;
    outline: 1px solid #f1454b;
    outline-offset: 3px;
    box-shadow: 0 0 8px #fb33498f;
    text-shadow: 0 1px 2px #5e1722, 0 0 4px #ff941e7d;
}

.ashfall-rewards-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-block: 12px 15px;
}
.ashfall-rewards-actions input { flex: 1 1 270px; min-width: 0; }
.ashfall-rewards-actions form { margin: 0; }
.ashfall-rewards-totals { max-width: 34rem; margin-block: 16px; }
.ashfall-rewards-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-block: 9px;
    border-bottom: 1px solid var(--ashfall-line);
}
.ashfall-rewards-totals dd { margin: 0; font-variant-numeric: tabular-nums; }

@media (max-width: 960px) {
    .ashfall-theme .ashfall-hero .main { column-gap: 12px; }
}

@media (max-width: 740px) {
    .ashfall-theme .ashfall-hero .page-width {
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding-block-start: 255px;
    }
    .ashfall-hero-art {
        inset: 62px 0 auto;
        width: 100%;
        height: 325px;
        mask-image: linear-gradient(180deg, transparent, #000 12% 64%, transparent);
    }
    .ashfall-hero-art img { object-position: 52% 17%; }
    .ashfall-theme .main-hd.ashfall-hero .ashfall-brand {
        position: relative;
        inset: auto;
        align-self: center;
        width: min(90%, 350px);
        margin-block-end: 9px;
        transform: none;
    }
    .ashfall-hero .ashfall-lettering-details { margin-top: 6px; }
    .ashfall-theme .ashfall-hero .main { position: relative; inset: auto; column-gap: 7px; }
    .ashfall-theme .ashfall-hero .main > .menu-item > a { padding: 9px 5px; }
    .ashfall-theme .ashfall-hero .external { inset-inline-start: auto; width: auto; max-width: 26%; }
    .ashfall-theme .ashfall-hero .external li:first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ashfall-theme .ashfall-hero .main > .menu-item > a,
    .ashfall-theme .ashfall-hero .main > .menu-item > a::before { transition: none; }
}
