body.page-template-page-s25-home {
    background: #050505 !important;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body.page-template-page-s25-home html,
html:has(body.page-template-page-s25-home) {
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body.page-template-page-s25-home #page,
body.page-template-page-s25-home #content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.s25-homepage {
    overflow-x: clip;
    --s25-gold: var(--primary-neon);
    --s25-gold-bright: #f6d472;
    --s25-red: #c21d1d;
    --s25-green: #7fbf4d;
    --s25-blue: #5aa6ff;
    --s25-line: rgba(255, 204, 0, 0.2);
    --s25-card: rgba(20, 15, 10, 0.95);
    --s25-card-soft: rgba(18, 14, 10, 0.92);
    color: #e0e0e0;
}

.s25-homepage.s25-wiki-wrapper {
    padding-top: 12px;
    background-color: #050505;
    background-image:
        linear-gradient(180deg, rgba(5,5,5,.58), rgba(5,5,5,.5) 32%, rgba(5,5,5,.82)),
        radial-gradient(circle at 18% 8%, rgba(150, 42, 28, 0.24), transparent 34%),
        linear-gradient(90deg, rgba(5,5,5,.36), transparent 42%, rgba(5,5,5,.28)),
        url('../images/s25-page-background.webp');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.s25-homepage a {
    text-decoration: none !important;
}

.s25-container {
    width: min(1240px, calc(100% - 48px));
    max-width: 1240px;
    margin: 0 auto;
}

.s25-home-hero {
    margin-bottom: 22px;
}

.s25-hero-banner-card {
    position: relative;
    isolation: isolate;
    contain: paint;
    margin-top: 8px;
    min-height: 340px;
    border-radius: 8px;
    border: 1px solid rgba(255, 204, 0, 0.22);
    background-color: #070707;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.62);
    overflow: hidden;
}

.s25-hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-image:
        linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.58)),
        var(--s25-hero-image);
    background-position: center 42%;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    animation: s25HeroFade 18s infinite;
}

.s25-hero-slide:nth-child(2) {
    animation-delay: 6s;
}

.s25-hero-slide:nth-child(3) {
    animation-delay: 12s;
}

.s25-hero-slide.is-left {
    justify-content: flex-start;
    background-image:
        linear-gradient(90deg, rgba(4, 4, 4, 0.92) 0%, rgba(8, 8, 8, 0.72) 36%, rgba(8, 8, 8, 0.16) 70%, rgba(4, 4, 4, 0.42) 100%),
        linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.58)),
        var(--s25-hero-image);
}

.s25-hero-slide.is-right {
    justify-content: flex-end;
    background-image:
        linear-gradient(270deg, rgba(4, 4, 4, 0.92) 0%, rgba(8, 8, 8, 0.72) 36%, rgba(8, 8, 8, 0.16) 70%, rgba(4, 4, 4, 0.42) 100%),
        linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.58)),
        var(--s25-hero-image);
}

.s25-hero-slide.is-right .s25-hero-copy {
    text-align: right;
}

.s25-hero-slide.is-right .s25-hero-actions {
    justify-content: flex-end;
}

.s25-hero-copy {
    width: min(680px, 100%);
    padding: 34px 38px;
    text-align: left;
}

@keyframes s25HeroFade {
    0%, 27% { opacity: 1; }
    33%, 94% { opacity: 0; }
    100% { opacity: 1; }
}

.s25-kicker {
    display: inline-flex;
    margin: 0 0 8px;
    padding: 5px 10px;
    border: 1px solid rgba(255,204,0,.34);
    border-radius: 4px;
    color: var(--s25-gold-bright);
    background: rgba(0,0,0,.48);
    font-family: var(--font-heading);
    font-size: .76rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.s25-hero-copy h2 {
    margin: 0 0 10px;
    color: var(--s25-gold-bright);
    font-family: var(--font-heading);
    font-size: clamp(1.55rem, 2.35vw, 2.35rem);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.s25-hero-copy h1 {
    margin: 0 0 8px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3.2vw, 3.15rem);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.s25-hero-text {
    max-width: 620px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
    font-size: .95rem;
    line-height: 1.58;
}

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

.s25-large-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 160px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 6px;
    color: #fff !important;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    letter-spacing: .6px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.4);
}

.s25-large-btn.is-disabled {
    cursor: default;
    opacity: .72;
}

.s25-primary {
    border-color: rgba(255,204,0,0.55);
    background: linear-gradient(180deg, rgba(160,111,25,0.92), rgba(95,59,12,0.92));
}

.s25-danger {
    border-color: rgba(194,29,29,0.55);
    background: linear-gradient(180deg, rgba(128,34,25,0.92), rgba(65,15,11,0.92));
}

.s25-discord {
    border-color: rgba(88,101,242,0.5);
    background: linear-gradient(180deg, rgba(46,63,136,0.92), rgba(24,32,75,0.92));
}

.s25-large-btn .svg-inline--fa {
    width: 1em;
    height: 1em;
    flex: 0 0 1em;
    font-size: 1rem;
}

.s25-content {
    width: 100%;
    padding-bottom: 30px;
}

.s25-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 34px;
}

.s25-stat-card,
.s25-quick-card,
.s25-panel,
.s25-class-card,
.s25-social-grid a {
    background: rgba(14, 14, 13, 0.94);
    border: 1px solid rgba(255, 204, 0, 0.12);
    box-shadow: 0 14px 35px rgba(0,0,0,0.34);
}

.s25-stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 112px;
    padding: 22px 28px;
    border-radius: 6px;
}

.s25-stat-icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    color: var(--s25-gold);
    background: rgba(214, 168, 74, 0.13);
    border-radius: 50%;
    font-size: 28px;
}

.s25-stat-icon .svg-inline--fa {
    width: 1em;
    height: 1em;
    font-size: 28px;
}

.s25-stat-icon.red { color: #d64a3f; background: rgba(214, 74, 63, 0.14); }
.s25-stat-icon.green { color: var(--s25-green); background: rgba(119, 184, 74, 0.14); }
.s25-stat-icon.blue { color: var(--s25-blue); background: rgba(99, 168, 220, 0.14); }

.s25-stat-card p,
.s25-quick-card span,
.s25-social-grid span,
.s25-footer p,
.s25-footer a {
    color: #b9b0a3;
}

.s25-stat-card p {
    margin: 0 0 5px;
    font-family: var(--font-heading);
    font-size: 13px;
    text-transform: uppercase;
}

.s25-stat-card strong {
    color: var(--s25-gold-bright);
    font-family: var(--font-heading);
    font-size: 21px;
}

.s25-stat-card strong.blue-text {
    color: var(--s25-blue);
}

.s25-stat-download {
    position: relative;
    min-height: 112px;
    color: #f3ddd3 !important;
    background:
        radial-gradient(circle at 20% 18%, rgba(201, 45, 31, 0.28), transparent 32%),
        linear-gradient(180deg, rgba(60, 15, 12, 0.98), rgba(22, 13, 12, 0.98) 54%, rgba(8, 8, 8, 0.98));
    border-color: rgba(159, 55, 43, 0.78);
    box-shadow: inset 0 0 0 1px rgba(255, 180, 145, 0.08), 0 16px 38px rgba(0, 0, 0, 0.44), 0 0 24px rgba(139, 28, 24, 0.22);
    overflow: hidden;
}

.s25-stat-download::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(211, 89, 70, 0.28);
    border-radius: 4px;
    pointer-events: none;
}

.s25-stat-download::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -50px;
    width: 132px;
    height: 132px;
    background: radial-gradient(circle, rgba(165, 35, 28, 0.3), transparent 64%);
    pointer-events: none;
}

.s25-stat-download .s25-stat-icon {
    color: #f2d5c5;
    background: linear-gradient(180deg, #681d18, #1b1110);
    border: 1px solid rgba(231, 93, 70, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 169, 138, 0.16), 0 0 16px rgba(156, 29, 24, 0.34);
}

.s25-stat-download strong {
    position: relative;
    z-index: 1;
    color: #f8e0d2;
    font-size: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.s25-stat-download:hover {
    transform: translateY(-2px);
    border-color: rgba(214, 82, 63, 0.92);
    background:
        radial-gradient(circle at 20% 18%, rgba(223, 60, 42, 0.34), transparent 32%),
        linear-gradient(180deg, rgba(74, 18, 14, 0.98), rgba(26, 14, 12, 0.98) 54%, rgba(8, 8, 8, 0.98));
    box-shadow: inset 0 0 0 1px rgba(255, 180, 145, 0.1), 0 20px 44px rgba(0, 0, 0, 0.5), 0 0 30px rgba(159, 35, 27, 0.32);
}

.s25-section {
    margin-top: 34px;
}

.s25-section-title {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    margin: 14px 0 22px;
}

.s25-section-title span {
    height: 1px;
    background: var(--s25-line);
}

.s25-section-title h2,
.s25-panel-head h2 {
    margin: 0;
    color: var(--s25-gold-bright);
    font-family: var(--font-heading);
    font-size: 19px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.s25-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.s25-quick-card {
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 18px;
    min-height: 138px;
    padding: 26px 28px;
    border-radius: 6px;
    color: #fff !important;
    align-content: start;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.s25-quick-card i {
    grid-row: 1 / 3;
    grid-column: 1;
    color: var(--s25-gold);
    font-size: 38px;
    text-align: center;
    align-self: start;
    margin-top: 4px;
}

.s25-quick-card .svg-inline--fa {
    grid-row: 1 / 3;
    grid-column: 1;
    align-self: start;
    margin-top: 4px;
    width: 18px;
    height: 18px;
    font-size: 18px;
    color: var(--s25-gold);
}

.s25-quick-card strong {
    grid-column: 2;
    display: block;
    color: #f1eadb;
    font-family: var(--font-heading);
    font-size: 16px;
    text-transform: uppercase;
}

.s25-quick-card span {
    grid-column: 2;
    display: block;
    width: 100%;
    max-width: none;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    margin-top: 5px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.55;
}

.s25-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 28px;
}

.s25-panel {
    border-radius: 6px;
    padding: 18px 18px 16px;
    background: var(--card-bg);
}

.s25-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(214, 168, 74, 0.14);
}

.s25-panel-head a {
    color: var(--s25-gold-bright) !important;
    font-size: 13px;
}

.s25-news-list {
    display: grid;
    gap: 12px;
}

.s25-news-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    min-height: 116px;
    padding: 10px;
    color: #eee !important;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 5px;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.s25-news-item img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    border-radius: 4px;
    background: #111;
}

.s25-news-item time {
    display: block;
    color: #9c9181;
    font-size: 13px;
    margin-bottom: 4px;
}

.s25-news-item strong {
    display: block;
    color: #f1eadb;
    font-size: 15px;
    margin-bottom: 6px;
}

.s25-news-item span {
    display: block;
    color: #aea599;
    font-size: 13px;
    line-height: 1.45;
}

.s25-wiki-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.s25-wiki-feature {
    min-height: 152px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 16px;
    color: #fff !important;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(214, 168, 74, 0.38);
    border-radius: 5px;
    box-shadow: inset 0 -88px 64px rgba(0,0,0,0.84);
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.s25-wiki-feature strong {
    color: #f4e1ab;
    font-family: var(--font-heading);
    font-size: 16px;
    text-transform: uppercase;
}

.s25-wiki-feature span {
    color: #c9c0b4;
    font-size: 13px;
}

.s25-class-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
}

.s25-class-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 174px;
    padding: 10px 8px 14px;
    overflow: hidden;
    border-radius: 5px;
    color: #f4e1ab !important;
}

.s25-class-card img {
    max-width: 96px;
    height: 118px;
    object-fit: contain;
    object-position: bottom;
    filter: none;
}

.s25-class-card strong {
    margin-top: 7px;
    font-family: var(--font-heading);
    font-size: 13px;
    text-transform: uppercase;
    white-space: nowrap;
}

.s25-social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.s25-social-grid a {
    display: grid;
    grid-template-columns: 54px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 16px;
    min-height: 76px;
    padding: 14px 22px;
    border-radius: 6px;
    color: #fff !important;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.s25-social-grid i {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 25px;
    color: #fff;
}

.s25-social-grid .svg-inline--fa {
    grid-row: 1 / 3;
    width: 22px;
    height: 22px;
    place-self: center;
    color: #fff;
}

.s25-social-grid strong {
    font-size: 15px;
}

.s25-social-grid .facebook i { background: #1877f2; }
.s25-social-grid .tiktok i { background: #070707; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.s25-social-grid .youtube i { background: #e51b1b; }
.s25-social-grid .discord i { background: #5865f2; }

.s25-footer {
    margin-top: 18px;
    padding: 26px 0 14px;
    background: rgba(9, 9, 9, 0.92);
    border-top: 1px solid rgba(214, 168, 74, 0.18);
}

.s25-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 42px;
}

.s25-footer img {
    width: 122px;
    margin-bottom: 12px;
}

.s25-footer nav {
    display: grid;
    gap: 6px;
}

.s25-footer strong {
    color: var(--s25-gold-bright);
    font-family: var(--font-heading);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.s25-footer a {
    font-size: 14px;
}

.s25-footer em {
    color: #49c95e;
    font-style: normal;
}

.s25-copyright {
    margin: 18px 0 0;
    text-align: center;
    color: #8f8679 !important;
    font-size: 13px;
}

.s25-stat-card:hover,
.s25-quick-card:hover,
.s25-news-item:hover,
.s25-wiki-feature:hover,
.s25-class-card:hover,
.s25-social-grid a:hover {
    border-color: rgba(214, 168, 74, 0.55);
    background-color: rgba(28, 28, 26, 0.96);
}

.s25-wiki-feature:hover {
    transform: translateY(-2px);
}

@media (max-width: 1100px) {
    .s25-stat-grid,
    .s25-social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .s25-class-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .s25-hero-banner-card {
        min-height: 320px;
    }

    .s25-hero-copy {
        width: min(600px, 100%);
        padding: 32px 34px;
    }
}

@media (max-width: 820px) {
    .s25-container {
        width: min(100% - 24px, 1180px);
    }

    .s25-hero-banner-card {
        min-height: 360px;
    }

    .s25-hero-slide,
    .s25-hero-slide.is-left,
    .s25-hero-slide.is-right {
        justify-content: flex-start;
        background-position: 58% center;
        background-image:
            linear-gradient(90deg, rgba(4, 4, 4, 0.94) 0%, rgba(8, 8, 8, 0.76) 58%, rgba(8, 8, 8, 0.32) 100%),
            linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.6)),
            var(--s25-hero-image);
    }

    .s25-hero-slide.is-right .s25-hero-copy {
        text-align: left;
    }

    .s25-hero-slide.is-right .s25-hero-actions {
        justify-content: flex-start;
    }

    .s25-hero-copy {
        width: 100%;
        padding: 28px 22px;
    }

    .s25-large-btn {
        flex: 1 1 155px;
    }

    .s25-quick-grid,
    .s25-split,
    .s25-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .s25-home-hero {
        margin-bottom: 24px;
    }

    .s25-hero-copy {
        padding: 22px 14px;
    }

    .s25-hero-copy h2 {
        font-size: 1.45rem;
    }

    .s25-hero-copy h1 {
        font-size: 1.85rem;
    }

    .s25-hero-text {
        font-size: .82rem;
        line-height: 1.48;
    }

    .s25-stat-grid,
    .s25-wiki-feature-grid,
    .s25-social-grid {
        grid-template-columns: 1fr;
    }

    .s25-news-item {
        grid-template-columns: 112px 1fr;
    }

    .s25-class-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .s25-quick-card {
        padding: 18px;
    }
}
