
/* ============================================================
   HAPPY RAN HOME V2
   Page-specific redesign based on the approved reference image.
   Loaded AFTER classic-theme.css by _Layout.cshtml.
   ============================================================ */

body.classic-public-body:has(.hr2-home) {
    background: #05090d !important;
}

body.classic-public-body:has(.hr2-home)::before {
    opacity: .25 !important;
}

.hr2-home {
    --h2-bg: #071018;
    --h2-card: rgba(7, 17, 25, .96);
    --h2-card-2: rgba(10, 21, 31, .96);
    --h2-line: rgba(157, 116, 44, .55);
    --h2-line-blue: rgba(49, 114, 174, .60);
    --h2-red: #c91f2a;
    --h2-red2: #ff3945;
    --h2-gold: #e4ad43;
    --h2-gold2: #ffd474;
    --h2-blue: #51a9ff;
    --h2-green: #3ae38e;
    --h2-muted: #8496a7;
    min-height: 100vh;
    color: #edf3f8;
    background:
        linear-gradient(
            180deg,
            #04080c 0,
            #06101a 45%,
            #050a0f 100%
        );
}

.hr2-home .container {
    width: min(1320px, calc(100% - 42px)) !important;
    max-width: 1320px !important;
}


/* HERO */

.hr2-home .hr2-hero {
    min-height: 675px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    border-bottom: 1px solid rgba(48, 116, 177, .34) !important;
    background:
        url('/images/home-v2/hero-ran-classic.png')
        center 42% / cover no-repeat !important;
}

.hr2-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(3, 7, 11, .32),
            rgba(3, 7, 11, .06) 40%,
            rgba(3, 7, 11, .08) 62%,
            rgba(3, 7, 11, .36)
        );
}

.hr2-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 220px;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(3, 8, 12, .60) 65%,
            #050a0f
        );
}

.hr2-hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse at center,
            rgba(4, 8, 12, .10),
            rgba(4, 8, 12, .48) 72%
        );
}

.hr2-hero-inner {
    min-height: 675px !important;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hr2-hero-copy {
    width: min(700px, 76%);
    margin-top: 20px;
    text-align: center;
    text-shadow: 0 3px 15px rgba(0, 0, 0, .75);
}

.hr2-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--h2-gold2);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 4px;
}

.hr2-hero h1 {
    margin: 0 !important;
    color: #f2eee4 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(62px, 7vw, 100px) !important;
    font-weight: 800 !important;
    line-height: .98 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase;
    text-shadow:
        0 4px 0 rgba(0, 0, 0, .50),
        0 0 24px rgba(255, 239, 203, .10) !important;
}

.hr2-hero p {
    margin: 16px 0 0 !important;
    color: #e5d3ac !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 4px !important;
}

.hr2-hero-actions {
    margin-top: 31px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.hr2-btn {
    min-width: 205px;
    min-height: 48px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .3px;
    text-decoration: none;
    box-shadow:
        inset 0 1px rgba(255,255,255,.10),
        0 10px 28px rgba(0,0,0,.30);
}

.hr2-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.hr2-btn-red {
    border-color: #f13a44;
    background:
        linear-gradient(
            180deg,
            #cf2832,
            #8e141b
        );
    color: #fff;
}

.hr2-btn-gold {
    border-color: #8f6a28;
    background:
        linear-gradient(
            180deg,
            rgba(31, 29, 22, .96),
            rgba(13, 16, 16, .98)
        );
    color: #f3dfad;
}

.hr2-btn-icon {
    font-size: 17px;
}


/* STATUS */

.hr2-status-wrap {
    position: relative;
    z-index: 8;
    margin-top: -68px;
    padding: 0 0 30px;
}

.hr2-status {
    min-height: 112px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #826127;
    border-radius: 12px;
    background:
        linear-gradient(
            180deg,
            rgba(7, 19, 29, .97),
            rgba(5, 13, 21, .98)
        );
    box-shadow:
        0 16px 42px rgba(0,0,0,.46),
        inset 0 0 0 1px rgba(223, 169, 66, .10),
        0 0 28px rgba(40, 106, 164, .12);
}

.hr2-status-item {
    min-height: 112px;
    padding: 20px 35px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-right: 1px solid rgba(114, 136, 153, .20);
}

.hr2-status-item:last-child {
    border-right: 0;
}

.hr2-status-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid;
    border-radius: 50%;
    font-size: 25px;
    font-weight: 900;
}

.hr2-status-icon.blue {
    border-color: #285e94;
    background: rgba(22, 84, 145, .22);
    color: #55a8ff;
}

.hr2-status-icon.green {
    border-color: #247348;
    background: rgba(22, 103, 64, .21);
    color: #46e397;
}

.hr2-status-item span,
.hr2-status-item strong,
.hr2-status-item small {
    display: block;
}

.hr2-status-item span {
    color: #92a4b5;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.hr2-status-item strong {
    margin-top: 4px;
    color: #f3f7fa;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 700;
}

.hr2-status-item strong.online {
    color: var(--h2-green);
}

.hr2-status-item strong.maintenance {
    color: #ffb43d;
    font-size: 21px;
}

.hr2-status-item small {
    margin-top: 3px;
    color: #667a8c;
    font-size: 8px;
}


/* CONTENT */

.hr2-content-section {
    padding: 22px 0 0 !important;
    background: transparent !important;
}

.hr2-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(360px, .85fr);
    gap: 16px;
}

.hr2-news-community-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(300px, .75fr);
    gap: 16px;
}

.hr2-panel {
    overflow: hidden;
    border: 1px solid rgba(176, 126, 38, .58);
    border-radius: 8px;
    background:
        radial-gradient(
            circle at top right,
            rgba(92, 45, 18, .08),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            rgba(7, 18, 27, .96),
            rgba(5, 13, 20, .98)
        );
    box-shadow:
        inset 0 1px rgba(255,255,255,.015),
        0 13px 32px rgba(0,0,0,.25);
}

.hr2-panel-title {
    min-height: 54px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(117, 89, 36, .30);
}

.hr2-panel-title > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hr2-panel-title h2 {
    margin: 0 !important;
    color: #f2eee6 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: .2px !important;
}

.hr2-panel-title.gold h2 {
    color: var(--h2-gold2) !important;
}

.hr2-panel-title a {
    color: #b8c3cd;
    font-size: 8px;
    font-weight: 800;
    text-decoration: none;
}

.hr2-panel-title a:hover {
    color: #fff;
}

.hr2-panel-icon {
    color: var(--h2-gold);
    font-size: 20px;
}

.hr2-panel-icon.red {
    color: var(--h2-red2);
}


/* RANK COLUMNS */

.hr2-rank-columns {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.hr2-rank-box {
    min-width: 0;
    padding: 11px 10px;
    border: 1px solid #253747;
    border-radius: 5px;
    background: rgba(7, 15, 23, .87);
}

.hr2-rank-box.level {
    border-color: rgba(52, 110, 165, .46);
}

.hr2-rank-box.kda {
    border-color: rgba(148, 51, 55, .45);
}

.hr2-rank-box.rich {
    border-color: rgba(155, 119, 41, .46);
}

.hr2-rank-box h3 {
    margin: 3px 0 11px !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 14px !important;
    text-align: center;
}

.hr2-rank-box.level h3 {
    color: #64b4ff !important;
}

.hr2-rank-box.kda h3 {
    color: #ff655f !important;
}

.hr2-rank-box.rich h3 {
    color: #ffd04f !important;
}

.hr2-rank-row {
    min-height: 42px;
    display: grid;
    grid-template-columns: 25px 26px minmax(0, 1fr) auto;
    gap: 5px;
    align-items: center;
    border-bottom: 1px solid rgba(72, 92, 109, .18);
}

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

.hr2-rank-number {
    width: 21px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #465765;
    color: #9cadbc;
    font-size: 8px;
    font-weight: 900;
}

.hr2-rank-number.rank-1 {
    border-color: #af852d;
    color: #ffd665;
}

.hr2-rank-number.rank-2 {
    border-color: #687784;
    color: #d4dce2;
}

.hr2-rank-number.rank-3 {
    border-color: #8f5136;
    color: #e99262;
}

.hr2-rank-avatar {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #334655;
    background: #111b24;
    color: #b9c6d1;
    font-family: Georgia, serif;
    font-size: 10px;
    font-weight: 800;
}

.hr2-rank-row strong {
    min-width: 0;
    overflow: hidden;
    color: #e6edf3 !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hr2-rank-row b {
    color: #aebdca;
    font-size: 7px;
    font-weight: 800;
    white-space: nowrap;
}

.hr2-rank-box.kda .hr2-rank-row b {
    color: #ff765e;
}

.hr2-rank-box.rich .hr2-rank-row b {
    color: #efbb42;
}

.hr2-empty {
    padding: 24px 5px;
    color: #607589;
    font-size: 7px;
    text-align: center;
}


/* SPENDER */

.hr2-spender {
    display: flex;
    flex-direction: column;
}

.hr2-spender-hero {
    min-height: 330px;
    position: relative;
    padding: 0 15px 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
    background:
        linear-gradient(
            180deg,
            rgba(3, 8, 12, .03),
            rgba(3, 8, 12, .15) 45%,
            rgba(3, 8, 12, .92) 75%,
            rgba(3, 8, 12, .98)
        );
}

.hr2-spender-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
    object-position: center 31%;
    filter: saturate(.95) contrast(1.04);
}

.hr2-spender-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            180deg,
            rgba(4, 8, 12, .02),
            rgba(4, 8, 12, .04) 42%,
            rgba(4, 8, 12, .90) 76%,
            #050d14 100%
        );
}

.hr2-spender-crown,
.hr2-spender-name,
.hr2-spender-hero > span,
.hr2-spender-hero > strong {
    position: relative;
    z-index: 2;
}

.hr2-spender-crown {
    width: 53px;
    height: 53px;
    margin: 0 auto -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d7a239;
    border-radius: 50%;
    background: #4a300d;
    color: #ffdb76;
    font-family: Georgia, serif;
    font-size: 24px;
    box-shadow: 0 0 28px rgba(210, 147, 39, .24);
}

.hr2-spender-name {
    margin-top: 8px;
    color: #fff5de;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    letter-spacing: 7px;
}

.hr2-spender-hero > span {
    margin-top: 4px;
    color: #8e9aa5;
    font-size: 8px;
}

.hr2-spender-hero > strong {
    margin-top: 2px;
    color: #ffba37 !important;
    font-family: Georgia, serif;
    font-size: 24px !important;
}

.hr2-spender-runner {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.hr2-spender-runner > div {
    min-width: 0;
    padding: 8px 4px;
    border: 1px solid #2b3944;
    border-radius: 4px;
    text-align: center;
    background: #08121a;
}

.hr2-spender-runner span,
.hr2-spender-runner strong,
.hr2-spender-runner b {
    display: block;
}

.hr2-spender-runner span {
    color: #9eacb8;
    font-size: 7px;
    font-weight: 900;
}

.hr2-spender-runner strong {
    margin-top: 4px;
    overflow: hidden;
    color: #e7edf3 !important;
    font-size: 7px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hr2-spender-runner b {
    margin-top: 3px;
    color: #eab13d;
    font-size: 7px;
}

.hr2-spender-no-runner {
    grid-column: 1 / -1;
    color: #607689;
}

.hr2-wide-button {
    min-height: 42px;
    margin: 0 10px 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cc2630;
    border-radius: 3px;
    background:
        linear-gradient(
            180deg,
            #c5242e,
            #85151b
        );
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    text-decoration: none;
}

.hr2-wide-button:hover {
    color: #fff;
    background:
        linear-gradient(
            180deg,
            #e3313c,
            #9b1921
        );
}


/* NEWS */

.hr2-news-section {
    padding-bottom: 36px !important;
}

.hr2-news-grid {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.hr2-news-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #283a49;
    border-radius: 5px;
    background: #08121a;
    color: inherit;
    text-decoration: none;
}

.hr2-news-card:hover {
    border-color: #8c6230;
    transform: translateY(-2px);
    color: inherit;
}

.hr2-news-image {
    height: 158px;
    position: relative;
    overflow: hidden;
    background: #09131c;
}

.hr2-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}

.hr2-news-card:hover .hr2-news-image img {
    transform: scale(1.035);
}

.hr2-news-image span {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 2px;
    background: rgba(145, 21, 29, .92);
    color: #fff;
    font-size: 7px;
    font-weight: 900;
    text-transform: uppercase;
}

.hr2-news-body {
    padding: 11px 12px 13px;
}

.hr2-news-body h3 {
    min-height: 39px;
    margin: 0 0 6px !important;
    display: -webkit-box;
    overflow: hidden;
    color: #f2f5f7 !important;
    font-family: Georgia, serif !important;
    font-size: 13px !important;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hr2-news-body p {
    min-height: 42px;
    margin: 0 0 9px !important;
    display: -webkit-box;
    overflow: hidden;
    color: #8294a5 !important;
    font-size: 8px !important;
    line-height: 1.7 !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.hr2-news-body small {
    color: #788b9d;
    font-size: 7px;
}


/* COMMUNITY */

.hr2-community-list {
    padding: 12px;
}

.hr2-community-row {
    min-height: 50px;
    margin-bottom: 7px;
    padding: 0 9px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    border: 1px solid #253743;
    border-radius: 4px;
    background: #08121a;
}

.hr2-community-row > span {
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.hr2-community-row .discord {
    background: #5667e8;
}

.hr2-community-row .facebook {
    background: #2c73dd;
}

.hr2-community-row .group {
    background: #326ed4;
}

.hr2-community-row .youtube {
    background: #d7272f;
}

.hr2-community-row strong {
    min-width: 0;
    color: #dce4eb !important;
    font-size: 8px !important;
    font-weight: 700 !important;
}

.hr2-community-row a {
    min-height: 27px;
    padding: 0 9px;
    display: flex;
    align-items: center;
    border: 1px solid #284c6c;
    border-radius: 3px;
    color: #62aaff;
    font-size: 7px;
    font-weight: 900;
    text-decoration: none;
}

.hr2-community-row:last-child a {
    border-color: #672d31;
    color: #ff6b6b;
}


/* Footer gets a matching image atmosphere */
body.classic-public-body:has(.hr2-home) .classic-footer {
    position: relative;
    overflow: hidden;
    border-top-color: rgba(134, 98, 36, .38) !important;
}

body.classic-public-body:has(.hr2-home) .classic-footer::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 46%;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(4, 9, 14, 1),
            rgba(4, 9, 14, .28)
        ),
        url('/images/home-v2/news-campus-war.png')
        center / cover no-repeat;
    opacity: .30;
}

body.classic-public-body:has(.hr2-home) .classic-footer > * {
    position: relative;
    z-index: 2;
}


/* RESPONSIVE */

@media (max-width: 1050px) {

    .hr2-main-grid,
    .hr2-news-community-grid {
        grid-template-columns: 1fr;
    }

    .hr2-spender {
        max-width: none;
    }

    .hr2-spender-hero {
        min-height: 390px;
    }

}


@media (max-width: 820px) {

    .hr2-home .hr2-hero,
    .hr2-home .hr2-hero-inner {
        min-height: 610px !important;
    }

    .hr2-hero-copy {
        width: min(100%, 650px);
        margin-top: 20px;
    }

    .hr2-status {
        grid-template-columns: 1fr;
    }

    .hr2-status-item {
        min-height: 82px;
        border-right: 0;
        border-bottom: 1px solid rgba(114,136,153,.18);
    }

    .hr2-status-item:last-child {
        border-bottom: 0;
    }

    .hr2-rank-columns,
    .hr2-news-grid {
        grid-template-columns: 1fr;
    }

    .hr2-rank-box {
        padding: 13px;
    }

    .hr2-news-image {
        height: 230px;
    }

}


@media (max-width: 600px) {

    .hr2-home .container {
        width: min(100% - 24px, 1320px) !important;
    }

    .hr2-home .hr2-hero,
    .hr2-home .hr2-hero-inner {
        min-height: 540px !important;
    }

    .hr2-hero {
        background-position: 45% center !important;
    }

    .hr2-kicker {
        font-size: 13px;
        letter-spacing: 2.7px;
    }

    .hr2-hero h1 {
        font-size: 52px !important;
    }

    .hr2-hero p {
        font-size: 10px !important;
        letter-spacing: 2.5px !important;
    }

    .hr2-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hr2-btn {
        width: min(100%, 290px);
    }

    .hr2-status-wrap {
        margin-top: -40px;
    }

    .hr2-status-item {
        padding: 15px 18px;
    }

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

    .hr2-spender-name {
        font-size: 19px;
        letter-spacing: 4px;
    }

    .hr2-panel-title {
        align-items: flex-start;
        padding-top: 13px;
        padding-bottom: 13px;
        flex-direction: column;
    }

}
