body.ashfall-theme {
    --ashfall-temple-art: url("../images/ashfall-temple-scene-20261120.jpg");
    --ashfall-glass: rgb(26 16 24 / 88%);
    --ashfall-panel: #251820;
    --ashfall-panel-raised: #3b212c;
    --ashfall-edge: #876454;
    --ashfall-line: #674451;
    --ashfall-gold: #e7ba84;
    --ashfall-red: #753745;
    --ashfall-red-hover: #8d4655;
    --ashfall-corner: 14px;
    isolation: isolate;
    background: #180e14;
}

/* A single picture behind the whole page. The foreground never switches crops. */
body.ashfall-theme::before {
    display: block;
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(180deg, #170b1240 5%, #170b1259 57%, #1a0e1780),
        var(--ashfall-temple-art) center 9% / max(100vw, 156vh) auto no-repeat;
}

@supports (animation-timeline: scroll(root block)) {
    @media (prefers-reduced-motion: no-preference) {
        body.ashfall-theme::before {
            animation: ashfall-temple-scroll auto linear both;
            animation-timeline: scroll(root block);
        }
    }
}

@keyframes ashfall-temple-scroll {
    from { background-position: center, center 9%; }
    to { background-position: center, center 96%; }
}

.ashfall-theme .main-hd {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, #110a1266, transparent 42%);
}

.ashfall-theme .main-hd .page-width {
    min-height: clamp(590px, 47vw, 810px);
}

.ashfall-theme .main-hd .ashfall-brand {
    position: absolute;
    top: clamp(58px, 6vw, 104px);
    width: min(605px, 76%);
    text-align: center;
    filter: drop-shadow(0 5px 12px #180a10f2);
}

.ashfall-theme .main-hd .ashfall-brand-name {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    background: none;
}

.ashfall-theme .ashfall-brand-image {
    margin-block-end: -12px;
}

.ashfall-theme .ashfall-brand-edition {
    display: block;
    color: #f8d6a0;
    font: 700 clamp(1.2rem, 3.2vw, 2.25rem)/1.08 Georgia, serif;
    letter-spacing: .08em;
}

.ashfall-theme .ashfall-brand-details {
    max-width: 100%;
    margin: 14px 0 0;
    color: #fff1dc;
    font: 600 clamp(.82rem, 1.7vw, 1.08rem)/1.45 Georgia, serif;
}

.ashfall-theme .ashfall-brand .ashfall-tagline {
    width: 86%;
    margin: 4px auto 0;
}

.ashfall-theme .main-hd .main {
    border: 1px solid var(--ashfall-edge);
    border-radius: 12px;
    background: #261720f2;
}

.ashfall-theme .main-hd .sub-menu,
.ashfall-theme .ashfall-language-select,
.ashfall-theme .ashfall-language-select option {
    border-color: var(--ashfall-edge);
    border-radius: 7px;
    background-color: var(--ashfall-panel);
}

.ashfall-theme #content {
    margin-block-start: 9px;
    padding-block-end: clamp(24px, 5vw, 72px);
    background: none;
}

.ashfall-theme .article .page-bd {
    border: 1px solid var(--ashfall-edge);
    border-radius: var(--ashfall-corner);
    background: var(--ashfall-glass);
    box-shadow: none;
    backdrop-filter: blur(9px);
}

.ashfall-theme .article :is(.page-hd, .jumbotron, .card, .panel, .alert) {
    border-radius: 12px;
}

.ashfall-theme .mt2cms2-c-s .widget .bd {
    overflow: hidden;
    border-color: var(--ashfall-edge);
    border-radius: 12px;
    background: var(--ashfall-panel);
}

.ashfall-theme .top-sidebar,
.ashfall-theme .article .card-header {
    border-bottom: 1px solid var(--ashfall-line);
    background: var(--ashfall-panel-raised);
    color: #f4d8b5;
}

.ashfall-theme .top-sidebar h4 {
    color: inherit;
    text-transform: none;
}

.ashfall-theme .article :is(.table, .nav-tabs, .list-group-item) {
    color: #f0ded2;
}

.ashfall-theme .article :is(.card, .form-control, .nav-tabs .nav-link.active, .list-group-item) {
    border-color: var(--ashfall-line);
    background-color: var(--ashfall-panel);
}

.ashfall-theme .article .list-group-item:hover {
    background-color: var(--ashfall-panel-raised);
}

.ashfall-theme .article :is(th, td, .nav-tabs) {
    border-color: var(--ashfall-line);
}

.ashfall-theme :is(.form-control, .btn) {
    border-radius: 7px;
}

.ashfall-theme .form-control {
    color: #f5e8de;
}

.ashfall-theme .form-control::placeholder {
    color: #d1b5a8;
}

.ashfall-theme .article :is(.btn-success, .btn-primary) {
    color: #fff0dc;
    border-color: var(--ashfall-red);
    background: var(--ashfall-red);
}

.ashfall-theme .article :is(.btn-success, .btn-primary):is(:hover, :focus) {
    border-color: var(--ashfall-red-hover);
    background: var(--ashfall-red-hover);
}

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

.ashfall-theme .ashfall-statistics td:last-child {
    text-align: end;
    font-variant-numeric: tabular-nums;
}

.ashfall-theme .ashfall-server-status-row {
    background: #2f1d28;
}

.ashfall-theme .ashfall-server-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #a4dfac;
    font-weight: 700;
}

.ashfall-theme .ashfall-server-status[data-state="offline"] {
    color: #ffaaa7;
}

.ashfall-theme .ashfall-server-status::before {
    width: .55em;
    height: .55em;
    flex: 0 0 .55em;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.ashfall-theme .ashfall-footer .footer-nav {
    border: 0;
    background: linear-gradient(180deg, transparent 0%, #170d1666 38%, #160c16e6 100%);
}

.ashfall-theme .ashfall-footer .footer-nav::before {
    content: none;
}

@media (max-width: 800px) {
    .ashfall-theme .main-hd .page-width {
        min-height: clamp(482px, 126vw, 600px);
    }

    .ashfall-theme .main-hd .ashfall-brand {
        top: clamp(52px, 12vw, 78px);
        width: min(454px, 94%);
    }
}
