/* MINEJESTIC homepage redesign — build 20260717-3 */
body.home-page .hero-section {
    margin-top: 4px;
}

body.home-page .hero-banner {
    min-height: 760px !important;
    padding: 48px 52px !important;
    display: flex;
    flex-direction: column;
    text-align: left !important;
    background: #0a0d21 !important;
    border-color: rgba(229, 173, 253, 0.24) !important;
    isolation: isolate;
    box-shadow:
        0 38px 110px rgba(2, 3, 16, 0.62),
        0 18px 70px rgba(84, 94, 182, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}

body.home-page .hero-night-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background-image:
        linear-gradient(90deg, rgba(7, 9, 24, 0.98) 0%, rgba(8, 10, 27, 0.90) 33%, rgba(8, 11, 28, 0.62) 66%, rgba(7, 9, 24, 0.48) 100%),
        linear-gradient(0deg, rgba(7, 9, 24, 0.94) 0%, rgba(22, 27, 70, 0.26) 42%, rgba(113, 68, 148, 0.12) 100%),
        url('../img/minejestic-night-v2.webp');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
}

body.home-page .hero-banner::before {
    z-index: 1;
    background:
        radial-gradient(circle at 78% 18%, rgba(229, 173, 253, 0.20), transparent 30%),
        radial-gradient(circle at 13% 2%, rgba(84, 94, 182, 0.28), transparent 36%),
        linear-gradient(112deg, rgba(255, 255, 255, 0.10), transparent 26%, transparent 72%, rgba(229, 173, 253, 0.06)) !important;
    opacity: 0.95;
}

body.home-page .hero-banner::after {
    z-index: 3;
}

body.home-page .hero-header-row,
body.home-page .hero-main-content {
    position: relative;
    z-index: 5;
}

body.home-page .hero-header-row {
    justify-content: flex-end !important;
    margin-bottom: 34px !important;
}

body.home-page .hero-main-content {
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

body.home-page .hero-brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 34px;
}

body.home-page .hero-title {
    max-width: none !important;
    margin: 0 !important;
    font-size: clamp(52px, 6.6vw, 82px) !important;
    line-height: 0.88 !important;
    letter-spacing: -4.5px !important;
    text-align: left !important;
    filter: drop-shadow(0 18px 35px rgba(3, 4, 18, 0.38));
}

body.home-page .hero-store-label {
    margin: 7px 0 0 !important;
    color: rgba(247, 244, 255, 0.88);
    font-size: clamp(19px, 2vw, 27px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.5px;
    text-align: left;
}

body.home-page .hero-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

body.home-page .hero-benefit {
    min-height: 226px;
    padding: 23px 21px 21px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(28, 30, 66, 0.68), rgba(11, 14, 34, 0.53));
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    backdrop-filter: blur(22px) saturate(145%);
    box-shadow: 0 18px 44px rgba(2, 3, 16, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transition: transform var(--transition-speed), border-color var(--transition-speed), background var(--transition-speed);
}

body.home-page .hero-benefit:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 173, 253, 0.39);
    background: linear-gradient(145deg, rgba(41, 42, 87, 0.76), rgba(14, 17, 42, 0.61));
}

body.home-page .hero-benefit-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 21px;
    background: linear-gradient(135deg, rgba(84, 94, 182, 0.94), rgba(229, 173, 253, 0.63));
    box-shadow: 0 13px 30px rgba(84, 94, 182, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

body.home-page .hero-benefit h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.72px;
}

body.home-page .hero-benefit p {
    margin: 0;
    color: rgba(247, 244, 255, 0.72);
    font-size: 12.7px;
    line-height: 1.58;
}

body.home-page .hero-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: auto;
    padding-top: 25px;
}

body.home-page .hero-bottom-row .promo-timer {
    margin: 0;
}

body.home-page .hero-actions {
    flex: 0 0 auto;
}

body.home-page .hero-character {
    display: none !important;
}

body.home-page .stats-section {
    margin-top: 30px;
}

@media (max-width: 992px) {
    body.home-page .hero-banner {
        min-height: 0 !important;
        padding: 42px 34px 38px !important;
    }

    body.home-page .hero-night-scene {
        background-position: 58% center;
    }

    body.home-page .hero-header-row {
        margin-bottom: 28px !important;
    }

    body.home-page .hero-benefits {
        grid-template-columns: 1fr;
    }

    body.home-page .hero-benefit {
        min-height: 0;
        display: grid;
        grid-template-columns: 50px 1fr;
        column-gap: 18px;
        align-items: start;
    }

    body.home-page .hero-benefit-icon {
        grid-row: 1 / span 2;
        margin-bottom: 0;
    }

    body.home-page .hero-bottom-row {
        align-items: stretch;
        flex-direction: column;
        margin-top: 25px;
        padding-top: 0;
    }

    body.home-page .hero-actions,
    body.home-page .hero-actions .btn-hero {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body.home-page .hero-banner {
        padding: 34px 22px 28px !important;
        text-align: left !important;
    }

    body.home-page .hero-night-scene {
        background-position: 63% center;
    }

    body.home-page .hero-header-row {
        justify-content: flex-end !important;
        align-items: flex-start;
        margin-bottom: 24px !important;
    }

    body.home-page .hero-badge {
        margin: 0 !important;
    }

    body.home-page .hero-title {
        font-size: clamp(43px, 13vw, 60px) !important;
        letter-spacing: -3px !important;
    }

    body.home-page .hero-store-label {
        margin-top: 6px !important;
    }

    body.home-page .hero-benefit {
        padding: 18px;
        border-radius: 20px;
    }

    body.home-page .hero-bottom-row .promo-timer {
        width: 100%;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    body.home-page .hero-banner {
        padding: 28px 16px 20px !important;
        border-radius: 28px !important;
    }

    body.home-page .hero-night-scene {
        background-position: 67% center;
    }

    body.home-page .hero-header-row {
        gap: 10px;
        margin-bottom: 20px !important;
    }

    body.home-page .hero-brand-block {
        margin-bottom: 27px;
    }

    body.home-page .hero-title {
        font-size: 40px !important;
        letter-spacing: -2.6px !important;
    }

    body.home-page .hero-store-label {
        font-size: 18px;
    }

    body.home-page .hero-benefit {
        grid-template-columns: 43px 1fr;
        column-gap: 13px;
        padding: 16px;
    }

    body.home-page .hero-benefit-icon {
        width: 43px;
        height: 43px;
        border-radius: 14px;
        font-size: 18px;
    }

    body.home-page .hero-benefit h2 {
        font-size: 11px;
        letter-spacing: 0.45px;
    }

    body.home-page .hero-benefit p {
        font-size: 12px;
    }
}

/* Compact, continuously scrolling recent purchases */
body.home-page .payments {
    margin-top: 48px;
    padding-top: 30px;
}

body.home-page .payments .blockname {
    margin-bottom: 16px;
    font-size: 13px;
}

body.home-page .payment-list {
    position: relative;
    min-width: 0;
}

body.home-page .payment-list.has-purchases {
    display: block;
    overflow: hidden;
    padding: 4px 0;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 7%,
        #000 93%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 7%,
        #000 93%,
        transparent 100%
    );
}

body.home-page .payment-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: recent-purchases-left-to-right 32s linear infinite;
}

body.home-page .payment-list:hover .payment-track {
    animation-play-state: paused;
}

body.home-page .payment-group {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    padding-right: 10px;
}

body.home-page .payment-id.window {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    min-width: 184px;
    max-width: 286px;
    min-height: 44px;
    padding: 8px 13px;
    gap: 9px;
    border-radius: 15px;
    overflow: hidden;
    cursor: default;
    text-align: left;
    white-space: nowrap;
}

body.home-page .payment-id.window::after {
    border-radius: inherit;
}

body.home-page .payment-id.window .image {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin: 0;
    filter: drop-shadow(0 5px 8px rgba(3, 4, 18, 0.34));
}

body.home-page .payment-id.window .image.player-head {
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.06);
    background-size: cover, contain;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    image-rendering: pixelated;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

body.home-page .payment-id.window:hover .image {
    transform: none;
}

body.home-page .payment-id.window .title,
body.home-page .payment-id.window .player {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.home-page .payment-id.window .title {
    max-width: 116px;
    margin: 0;
    font-size: 12px;
    line-height: 1.25;
    text-transform: none;
}

body.home-page .payment-id.window .player {
    max-width: 104px;
    font-size: 11px;
    line-height: 1.25;
}

body.home-page .payment-id.window .amount {
    flex: 0 0 auto;
    padding: 2px 5px;
    font-size: 10px;
}

body.home-page .payment-list.is-empty {
    justify-content: center;
    text-align: center;
}

body.home-page .payment-list.is-empty p {
    margin: 0;
}

@keyframes recent-purchases-left-to-right {
    from {
        transform: translate3d(-50%, 0, 0);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 768px) {
    body.home-page .payments {
        margin-top: 38px;
        padding-top: 24px;
    }

    body.home-page .payment-list.has-purchases {
        -webkit-mask-image: linear-gradient(to right, transparent, #000 11%, #000 89%, transparent);
        mask-image: linear-gradient(to right, transparent, #000 11%, #000 89%, transparent);
    }

    body.home-page .payment-track {
        animation-duration: 26s;
    }

    body.home-page .payment-id.window {
        min-width: 172px;
        min-height: 42px;
        padding: 7px 11px;
    }

    body.home-page .payment-id.window .title {
        max-width: 102px;
    }

    body.home-page .payment-id.window .player {
        max-width: 88px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home-page .payment-list.has-purchases {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
        scrollbar-width: thin;
    }

    body.home-page .payment-track {
        animation: none;
        transform: none;
    }

    body.home-page .payment-group[aria-hidden="true"] {
        display: none;
    }
}

/* Mobile hero image and exact five-purchase list — 2026-07-23 */
body.home-page .payment-list.has-purchases {
    overflow: visible;
    padding: 4px 0;
    -webkit-mask-image: none;
    mask-image: none;
}

body.home-page .payment-track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    animation: none;
    transform: none;
}

body.home-page .payment-id.window {
    min-width: 0;
    max-width: none;
}

body.home-page .payment-id.window .purchase-copy {
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
}

body.home-page .payment-id.window .title,
body.home-page .payment-id.window .player {
    max-width: none;
}

@media (max-width: 992px) {
    body.home-page .hero-night-scene {
        background-position: center, center, center top;
        background-size: 100% 100%, 100% 100%, 100% auto;
        background-color: #0a0d21;
    }

    body.home-page .payment-track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body.home-page .hero-night-scene {
        background-position: center, center, center top;
        background-size: 100% 100%, 100% 100%, 100% auto;
    }

    body.home-page .payment-list.has-purchases {
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding: 4px 0 10px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    body.home-page .payment-track {
        display: flex;
        width: max-content;
        gap: 10px;
    }

    body.home-page .payment-id.window {
        flex: 0 0 220px;
        min-width: 220px;
    }
}

@media (max-width: 480px) {
    body.home-page .hero-night-scene {
        background-position: center, center, center top;
        background-size: 100% 100%, 100% 100%, 100% auto;
    }

    body.home-page .payment-id.window {
        flex-basis: 205px;
        min-width: 205px;
    }
}

/* Infinite recent-purchases marquee — 2026-07-30 */
body.home-page .payment-list.has-purchases[data-purchases-marquee] {
    --purchases-marquee-duration: 28s;
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 6px 0;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0,
        rgba(0, 0, 0, 0.18) 2.5%,
        #000 9%,
        #000 91%,
        rgba(0, 0, 0, 0.18) 97.5%,
        transparent 100%
    );
    mask-image: linear-gradient(
        90deg,
        transparent 0,
        rgba(0, 0, 0, 0.18) 2.5%,
        #000 9%,
        #000 91%,
        rgba(0, 0, 0, 0.18) 97.5%,
        transparent 100%
    );
}

body.home-page .payment-list.has-purchases[data-purchases-marquee]::-webkit-scrollbar {
    display: none;
}

body.home-page .payment-list.has-purchases[data-purchases-marquee] .payment-track {
    display: flex;
    grid-template-columns: none;
    align-items: stretch;
    gap: 0;
    width: max-content;
    min-width: 100%;
    transform: translate3d(0, 0, 0);
    animation: none;
    will-change: transform;
}

body.home-page .payment-list.has-purchases[data-purchases-marquee].is-marquee-ready .payment-track {
    animation: purchases-marquee-left-to-right var(--purchases-marquee-duration) linear infinite;
}

body.home-page .payment-list.has-purchases[data-purchases-marquee]:hover .payment-track,
body.home-page .payment-list.has-purchases[data-purchases-marquee]:focus-within .payment-track,
body.home-page .payment-list.has-purchases[data-purchases-marquee].is-marquee-paused .payment-track {
    animation-play-state: paused;
}

body.home-page .payment-list.has-purchases[data-purchases-marquee] .payment-segment,
body.home-page .payment-list.has-purchases[data-purchases-marquee] .payment-group {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    gap: 10px;
}

body.home-page .payment-list.has-purchases[data-purchases-marquee] .payment-segment {
    padding-right: 10px;
}

body.home-page .payment-list.has-purchases[data-purchases-marquee] .payment-group {
    padding-right: 0;
}

body.home-page .payment-list.has-purchases[data-purchases-marquee] .payment-id.window {
    flex: 0 0 auto;
    width: auto;
    min-width: 205px;
    max-width: 286px;
}

@keyframes purchases-marquee-left-to-right {
    from {
        transform: translate3d(-50%, 0, 0);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 768px) {
    body.home-page .payment-list.has-purchases[data-purchases-marquee] {
        overflow: hidden;
        padding: 6px 0;
        -webkit-overflow-scrolling: auto;
        -webkit-mask-image: linear-gradient(
            90deg,
            transparent 0,
            #000 13%,
            #000 87%,
            transparent 100%
        );
        mask-image: linear-gradient(
            90deg,
            transparent 0,
            #000 13%,
            #000 87%,
            transparent 100%
        );
    }

    body.home-page .payment-list.has-purchases[data-purchases-marquee] .payment-id.window {
        flex-basis: auto;
        min-width: 196px;
    }
}

@media (max-width: 480px) {
    body.home-page .payment-list.has-purchases[data-purchases-marquee] .payment-id.window {
        flex-basis: auto;
        min-width: 186px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home-page .payment-list.has-purchases[data-purchases-marquee] {
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-mask-image: none;
        mask-image: none;
        scrollbar-width: thin;
    }

    body.home-page .payment-list.has-purchases[data-purchases-marquee] .payment-track,
    body.home-page .payment-list.has-purchases[data-purchases-marquee].is-marquee-ready .payment-track {
        animation: none;
        transform: none;
        will-change: auto;
    }

    body.home-page .payment-list.has-purchases[data-purchases-marquee] .payment-segment[aria-hidden="true"] {
        display: none;
    }
}
