/* ESRONE formal player identity homepage */

body.home-index-page {
    background: #f5f6f8;
    color: #1f2328;
}

.home-index-page a {
    border-bottom: 0;
}

.home-index {
    width: 95%;
    margin: 1em;
    box-sizing: border-box;
}

.home-index-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.home-index-hero,
.home-index-feature,
.home-index-event {
    border: 1px solid #e1e4ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(26, 30, 36, .06);
}

.home-index-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 28px;
    min-height: 430px;
    padding: 42px;
    background: linear-gradient(135deg, #15181f 0%, #24191b 50%, #fff 50%, #fff 100%);
    color: #fff;
    overflow: hidden;
}

.home-index-kicker,
.home-index-rank-meta span,
.home-index-locked {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff0f1;
    color: #d90012;
    font-size: 12px;
    font-weight: 800;
}

.home-index-hero .home-index-kicker {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.home-index-hero h1 {
    max-width: 780px;
    margin: 18px 0 16px;
    color: inherit;
    font-size: 46px;
    line-height: 1.12;
    letter-spacing: 0;
}

.home-index-hero p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, .78);
    font-size: 17px;
    line-height: 1.75;
}

.home-index-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-index-actions--spaced {
    margin-top: 18px;
}

.home-index-purchase-notice {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid #f1d38a;
    border-radius: 8px;
    background: #fff8e1;
    color: #5b4a16;
    line-height: 1.65;
}

.home-index-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #cfd4dc;
    border-radius: 6px;
    background: #fff;
    color: #252a31;
    font-weight: 800;
    font-size: 14px;
}

.home-index-btn--primary {
    border-color: #e60012;
    background: #e60012;
    color: #fff;
}

.home-index-player-hero {
    align-self: stretch;
    display: grid;
}

.home-index-main-card,
.home-index-rank-card {
    position: relative;
    padding: 1px;
    border: 1px solid #e2d7da;
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(230, 0, 18, .12), rgba(255, 255, 255, 0) 42%),
        linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
    color: #171a20;
    overflow: hidden;
}

.home-index-main-card {
    min-height: 320px;
    padding: 1px;
}

.home-index-rank-card {
    min-height: 250px;
}

.home-index-rank-card-link,
.home-index-shop-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-index-rank-card-link:hover,
.home-index-shop-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.home-index-rank-card-link:hover .home-index-rank-card,
.home-index-shop-card-link:hover {
    border-color: rgba(230, 0, 18, .38);
    box-shadow: 0 12px 28px rgba(26, 30, 36, .08);
}

.home-index-rank-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, #171a20, #343944);
    color: #fff;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.home-index-rank-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-index-rank-card-image span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.home-index-rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.home-index-rank-meta span {
    min-height: 24px;
    padding: 0 8px;
}

.home-index-main-card h3,
.home-index-rank-card h3 {
    margin: 0 0 8px;
    color: #171a20;
    font-size: 20px;
    letter-spacing: 0;
}

.home-index-main-card h3 {
    font-size: 24px;
}

.home-index-main-card p,
.home-index-rank-card p {
    margin: 0;
    color: #606a78;
    font-size: 13px;
    line-height: 1.55;
}

.home-index-feature-order {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.home-index-feature {
    overflow: hidden;
}

.home-index-feature__head {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid #eef0f3;
}

.home-index-feature__head h2,
.home-index-section h2 {
    margin: 0;
    color: #15191f;
    font-size: 24px;
    letter-spacing: 0;
}

.home-index-page .home-index-feature__head h2 a,
.home-index-page .home-index-event h3 a {
    color: inherit;
    text-decoration: none;
    border-bottom: 0;
}

.home-index-page .home-index-feature__head h2 a:hover,
.home-index-page .home-index-event h3 a:hover {
    color: #e10;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.home-index-page .home-index-feature__head h2 a:focus-visible,
.home-index-page .home-index-event h3 a:focus-visible {
    color: #e10;
    outline: 2px solid currentColor;
    outline-offset: 4px;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.home-index-feature__head p {
    margin: 4px 0 0;
    color: #697382;
    font-size: 14px;
}

.home-index-feature__body {
    padding: 22px 24px 24px;
}

.home-index-cardwall,
.home-index-throne-status,
.home-index-shop {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.home-index-status-card,
.home-index-task-item {
    min-height: 128px;
    padding: 1px;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    background: #fbfcfd;
}

.home-index-shop .home-index-status-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-index-shop-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, #171a20, #343944);
}

.home-index-shop-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-index-shop-card-image.is-shop {
    background: #f1f3f6;
}

.home-index-status-card b,
.home-index-task-item b {
    display: block;
    margin-bottom: 0;
    color: #171a20;
}

.home-index-status-card span,
.home-index-task-item span {
    color: #647080;
    font-size: 13px;
    line-height: 1.55;
}

.home-checkin-card {
    border-left: 4px solid #d6dce4;
}

.home-checkin-card.is-guest {
    background: #fafafa;
}

.home-checkin-card.is-login.is-unchecked {
    border-color: #f0c36a;
    background: #fffaf0;
}

.home-checkin-card.is-login.is-checked {
    border-color: #fc0;
    background: #ffcc0026;
}

.home-checkin-card.has-reward {
    border-color: #e10;
}

.home-checkin-card.no-reward .home-checkin-metric--reward .home-checkin-metric-value {
    color: #647080;
}

.home-checkin-card.is-fallback {
    background: #fff;
}

.home-checkin-card .home-card-header h2 {
    margin: 0;
    padding: 0;
    border-left: 0;
}

.home-checkin-summary {
    margin-bottom: 12px;
    line-height: 1.6;
}

.home-checkin-status {
    color: #171a20;
    font-size: 16px;
    font-weight: 800;
}

.home-checkin-desc {
    margin-top: 4px;
    color: #647080;
    font-size: 13px;
}

.home-checkin-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.home-checkin-metric {
    min-height: 118px;
    padding: 14px;
    border: 1px solid #e1e4ea;
    border-radius: 8px;
    background: #fbfcfd;
}

.home-checkin-metric-label,
.home-checkin-metric-desc {
    display: block;
    color: #647080;
    font-size: 13px;
    line-height: 1.55;
}

.home-checkin-metric-value {
    display: block;
    margin: 7px 0;
    color: #171a20;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
}

.home-checkin-card.is-unchecked .home-checkin-metric--status .home-checkin-metric-value {
    color: #b45309;
}

.home-checkin-card.is-checked .home-checkin-metric--status .home-checkin-metric-value {
    color: #167a32;
}

.home-checkin-card.has-reward .home-checkin-metric--reward {
    border-color: rgba(230, 0, 18, .35);
    background: #fff6f6;
}

.home-checkin-card.has-reward .home-checkin-metric--reward .home-checkin-metric-value {
    color: #bd0010;
}

.home-checkin-reward-value {
    color: inherit;
}

.home-daily-task-card {
    border-left: 4px solid #d6dce4;
}

.home-daily-task-card.has-unfinished {
    border-color: #f0c36a;
    background: #fffaf0;
}

.home-daily-task-card.has-claimable {
    border-color: #e10;
}

.home-daily-task-card.is-all-done {
    border-color: #7bc47f;
    background: #f5fff6;
}

.home-daily-task-card.is-empty,
.home-daily-task-card.is-fallback,
.home-daily-task-card.is-guest {
    background: #fafafa;
}

.home-daily-task-card .home-card-header h2 {
    margin: 0;
    padding: 0;
    border-left: 0;
}

.home-task-summary {
    line-height: 1.6;
}

.home-task-status {
    color: #171a20;
    font-size: 16px;
    font-weight: 800;
}

.home-task-desc {
    margin-top: 4px;
    color: #647080;
    font-size: 13px;
}

.home-task-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.home-daily-task-card.is-guest .home-task-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-task-metric {
    min-height: 82px;
    padding: 14px;
    border: 1px solid #e1e4ea;
    border-radius: 8px;
    background: #fbfcfd;
}

.home-task-metric-label {
    display: block;
    color: #647080;
    font-size: 13px;
    line-height: 1.55;
}

.home-task-metric-value {
    display: block;
    margin-top: 7px;
    color: #171a20;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
}

.home-daily-task-card.has-unfinished .home-task-metric--unfinished .home-task-metric-value {
    color: #b45309;
}

.home-daily-task-card.has-claimable .home-task-metric--claimable .home-task-metric-value {
    color: #bd0010;
}

.home-task-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.home-task-item {
    padding: 12px;
    border: 1px solid #e8ebef;
    border-radius: 8px;
    background: #fff;
}

.home-task-item-title {
    color: #171a20;
    font-weight: 800;
}

.home-task-item-meta {
    margin-top: 4px;
    color: #647080;
    font-size: 13px;
    line-height: 1.55;
}

.home-index-empty {
    padding: 24px;
    border: 1px dashed #cfd5dd;
    border-radius: 8px;
    color: #687181;
    background: #fbfcfd;
}

.home-index-section {
    margin-top: 22px;
}

.home-index-section h2 {
    margin-bottom: 14px;
}

.home-index-event {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr);
    gap: 22px;
    padding: 28px;
}

.home-index-event h3 {
    margin: 12px 0 8px;
    color: #171a20;
    font-size: 24px;
    letter-spacing: 0;
}

.home-index-event p {
    color: #687181;
    font-size: 14px;
    line-height: 1.65;
}

.home-index-event-card {
    align-self: end;
    padding: 1px;
    border: 1px solid #eceff3;
    border-radius: 8px;
    background: #fff;
}

.home-index-event-card img {
    display: block;
    width: 100%;
    height: 148px;
    object-fit: cover;
    border-radius: 8px;
    background: #f2f3f5;
}

.home-index-event-card h3 {
    font-size: 20px;
}

@media (max-width: 860px) {
    .home-index {
        width: 100%;
        margin:0em;
    }

    .home-index-hero,
    .home-index-feature__head,
    .home-index-event {
        grid-template-columns: 1fr;
    }

    .home-index-hero {
        padding: 28px 20px;
    }

    .home-index-hero h1 {
        font-size: 32px;
    }

    .home-index-cardwall,
    .home-index-throne-status,
    .home-index-shop {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .home-checkin-metrics,
    .home-task-metrics,
    .home-daily-task-card.is-guest .home-task-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .home-checkin-metrics,
    .home-task-metrics,
    .home-daily-task-card.is-guest .home-task-metrics {
        grid-template-columns: 1fr;
    }
}
