.pss-home-v4 .home4-hero {
    min-height: auto;
    padding: clamp(34px, 4vw, 54px) 0 clamp(38px, 4vw, 56px);
}

.pss-home-v4 .home4-hero .pss-wrap {
    width: min(1400px, calc(100vw - 64px));
}

.pss-home-v4 .home4-hero-grid {
    grid-template-columns: minmax(410px, 470px) minmax(0, 1fr);
    gap: clamp(18px, 2vw, 30px);
    align-items: stretch;
}

.pss-home-v4 .home4-intro {
    width: 100%;
    max-width: none;
    min-height: auto;
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 2.1vw, 32px);
    overflow: hidden;
    border-radius: 20px;
    border-color: rgba(203, 255, 100, .34);
    background:
        radial-gradient(circle at 95% 0%, rgba(185, 255, 67, .13), transparent 14rem),
        radial-gradient(circle at 0% 100%, rgba(70, 64, 255, .24), transparent 18rem),
        linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035)),
        rgba(12, 3, 24, .9);
    box-shadow:
        0 34px 110px rgba(0, 0, 0, .5),
        0 0 0 1px rgba(255, 255, 255, .05) inset,
        0 0 70px rgba(185, 255, 67, .07);
}

.pss-home-v4 .home4-intro::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #b9ff43, #8e68ff, transparent);
    opacity: .8;
}

.pss-home-v4 .home4-kicker {
    min-height: 30px;
    padding: 0 11px;
    box-shadow: 0 10px 34px rgba(185, 255, 67, .18);
}

.pss-home-v4 .home4-hero-prompt {
    margin: 16px 0 12px;
    font-size: clamp(38px, 3vw, 52px);
    line-height: 1.02;
    letter-spacing: -.025em;
}

.pss-home-v4 .home4-hero-prompt span:last-child {
    margin-top: 5px;
    color: #dfff72;
    text-shadow: 0 0 32px rgba(185, 255, 67, .16);
}

.pss-home-v4 .home4-intro > p:not(.home7-benefit-note):not(.home4-cta-note) {
    max-width: 430px;
    color: #e0d5e9;
    font-size: 15.5px;
}

.pss-home-v4 .home7-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}

.pss-home-v4 .home7-benefit {
    position: relative;
    min-height: 72px;
    justify-content: flex-start;
    padding: 11px 12px;
    border-radius: 13px;
    border-color: rgba(185, 255, 67, .32);
    background:
        radial-gradient(circle at 100% 0%, rgba(185, 255, 67, .14), transparent 7rem),
        linear-gradient(145deg, rgba(185, 255, 67, .1), rgba(255, 255, 255, .045));
    box-shadow: 0 14px 40px rgba(0, 0, 0, .2);
}

.pss-home-v4 .home8-benefit-featured {
    grid-column: 1 / -1;
    min-height: 84px;
    border-color: rgba(255, 196, 66, .42);
    background:
        radial-gradient(circle at 100% 20%, rgba(255, 194, 45, .21), transparent 10rem),
        linear-gradient(135deg, rgba(255, 123, 44, .13), rgba(185, 255, 67, .08)),
        rgba(255, 255, 255, .04);
}

.home8-benefit-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pss-home-v4 .home8-benefit-top small {
    color: #c7ff67;
    font-size: 10.5px;
    font-weight: 950;
}

.pss-home-v4 .home8-benefit-top i {
    color: #aa9bb9;
    font-size: 9.5px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.pss-home-v4 .home7-benefit b {
    margin-top: 6px;
    color: #fff;
    font-size: 15px;
    line-height: 1.08;
    letter-spacing: -.01em;
}

.pss-home-v4 .home8-benefit-featured b {
    font-size: clamp(19px, 1.65vw, 23px);
    color: #fff2ae;
}

.pss-home-v4 .home7-benefit em {
    margin-top: 4px;
    color: #c6b8d2;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 750;
}

.pss-home-v4 .home7-benefit-note {
    max-width: none;
    margin-top: 8px !important;
    color: #aa9bb7 !important;
    font-size: 10.5px !important;
}

.pss-home-v4 .home4-actions {
    gap: 9px;
    margin-top: 17px;
}

.pss-home-v4 .home4-btn-external {
    min-height: 60px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(231, 255, 141, .9);
    background: linear-gradient(135deg, #a9ff2f 0%, #dcff6c 58%, #f0ffa4 100%);
    color: #15071e !important;
    font-size: 18px;
    box-shadow: 0 18px 52px rgba(185, 255, 67, .22), 0 0 0 1px rgba(255, 255, 255, .3) inset;
    transition: transform .2s ease, box-shadow .2s ease;
}

.pss-home-v4 .home4-btn-external:hover,
.pss-home-v4 .home4-btn-external:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 64px rgba(185, 255, 67, .32), 0 0 0 1px rgba(255, 255, 255, .35) inset;
}

.pss-home-v4 .home4-btn-tutorial {
    min-height: 54px;
}

.pss-home-v4 .home4-btn-tutorial::after {
    display: none;
}

.pss-home-v4 .home4-trust {
    gap: 6px;
    margin-top: 13px;
}

.pss-home-v4 .home4-trust div {
    min-height: 34px;
    padding: 8px 10px;
}

.pss-home-v4 .home4-cta-note {
    max-width: none;
    margin-top: 12px;
    padding-left: 10px;
    border-left: 2px solid #b9ff43;
    color: #a99cb5;
    font-size: 11px;
    line-height: 1.5;
}

.home8-showcase {
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: center;
    gap: 12px;
}

.home8-showcase > .home7-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 0;
}

.home8-showcase > .home7-benefits .home7-benefit,
.home8-showcase > .home7-benefits .home8-benefit-featured {
    grid-column: auto;
    min-height: 94px;
    justify-content: center;
}

.home8-showcase > .home7-benefits .home8-benefit-featured b {
    font-size: clamp(16px, 1.35vw, 20px);
}

.home8-showcase > .home7-benefit-note {
    max-width: none;
    margin: -5px 3px 0 !important;
    text-align: right;
}

.pss-home-v4 .home4-visual-frame {
    width: 100%;
    align-self: auto;
    border-radius: 20px;
    border-color: rgba(205, 255, 103, .38);
    box-shadow:
        0 42px 130px rgba(0, 0, 0, .58),
        0 0 0 1px rgba(185, 255, 67, .12) inset,
        0 0 80px rgba(91, 54, 255, .12);
}

.pss-home-v4 .home4-visual-frame::after {
    inset: 14px;
    border-radius: 13px;
}

.home8-visual-badge {
    position: absolute;
    right: 16px;
    top: 16px;
    z-index: 5;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid rgba(207, 255, 111, .45);
    border-radius: 999px;
    background: rgba(9, 2, 19, .78);
    color: #e9ffad;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .36);
    backdrop-filter: blur(12px);
    pointer-events: none;
}

.home8-visual-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b9ff43;
    box-shadow: 0 0 14px rgba(185, 255, 67, .7);
    animation: home8-badge-pulse 1.8s ease-in-out infinite;
}

.home8-game-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.home8-game-card {
    position: relative;
    min-height: 112px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 15px;
    color: #fff !important;
    text-decoration: none;
    background: #120823;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .3);
    isolation: isolate;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.home8-game-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(8, 2, 18, .03) 0%, rgba(8, 2, 18, .9) 76%);
}

.home8-game-card:hover,
.home8-game-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(185, 255, 67, .6);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .42), 0 0 34px rgba(185, 255, 67, .1);
    outline: none;
}

.home8-game-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}

.home8-game-card:hover img,
.home8-game-card:focus-visible img {
    transform: scale(1.05);
}

.home8-game-card > span {
    position: absolute;
    left: 11px;
    right: 9px;
    bottom: 10px;
    z-index: 2;
    display: block;
}

.home8-game-card small,
.home8-game-card b,
.home8-game-card em {
    display: block;
}

.home8-game-card small {
    color: #c9ff68;
    font-size: 9.5px;
    font-weight: 900;
}

.home8-game-card b {
    margin-top: 2px;
    color: #fff;
    font-size: 14px;
    line-height: 1.1;
}

.home8-game-card em {
    margin-top: 3px;
    color: #d2c7d9;
    font-size: 9.5px;
    line-height: 1.25;
    font-style: normal;
}

@keyframes home8-badge-pulse {
    0%, 100% { opacity: .55; transform: scale(.85); }
    50% { opacity: 1; transform: scale(1.12); }
}

.pss-home-v4 .home5-section.home5-games .home5-head h2 span {
    white-space: nowrap;
}

@media (min-width: 981px) {
    .pss-home-v4 .home4-hero-prompt {
        font-size: clamp(38px, 2.65vw, 48px);
    }

    .pss-home-v4 .home4-hero-prompt span {
        white-space: nowrap;
    }

    .pss-home-v4 .home7-benefit b,
    .pss-home-v4 .home6-promotions h2,
    .pss-home-v4 .home5-section.home5-games .home5-head h2,
    .pss-home-v4 .home5-final h2,
    .pss-home-v4 .home4-video-copy > strong {
        text-wrap: balance;
    }
}

@media (min-width: 981px) and (max-width: 1180px) {
    .pss-home-v4 .home4-hero .pss-wrap {
        width: calc(100vw - 36px);
    }

    .pss-home-v4 .home4-hero-grid {
        grid-template-columns: minmax(390px, 430px) minmax(0, 1fr);
        gap: 18px;
    }

    .pss-home-v4 .home4-intro {
        padding: 24px;
    }

    .home8-showcase > .home7-benefits .home7-benefit {
        padding: 9px 10px;
    }
}

@media (max-width: 980px) {
    .pss-home-v4 .home4-hero .pss-wrap {
        width: min(calc(100vw - 36px), 820px);
    }

    .pss-home-v4 .home4-hero-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home8-showcase {
        order: -1;
    }

    .pss-home-v4 .home4-intro {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 680px) {
    .pss-home-v4 .home4-hero {
        padding: 12px 0 30px;
    }

    .pss-home-v4 .home4-hero .pss-wrap {
        width: min(calc(100% - 16px), 820px);
    }

    .pss-home-v4 .home4-hero-grid {
        gap: 10px;
    }

    .home8-showcase {
        grid-template-rows: auto;
        gap: 8px;
    }

    html body .pss-home-v4 .home8-showcase > .home7-benefits,
    html body .pss-home-v4 .home8-showcase > .home7-benefit-note {
        display: none;
    }

    .home8-showcase > .home7-benefits {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(190px, 72vw);
        gap: 7px;
        margin: 0 -8px;
        padding: 0 8px 5px;
        overflow-x: auto;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
    }

    .home8-showcase > .home7-benefits::-webkit-scrollbar {
        display: none;
    }

    .home8-showcase > .home7-benefits .home7-benefit,
    .home8-showcase > .home7-benefits .home8-benefit-featured {
        min-height: 80px;
        scroll-snap-align: start;
    }

    .home8-showcase > .home7-benefit-note {
        margin: -3px 0 0 !important;
        padding: 0 2px;
        text-align: left;
    }

    .pss-home-v4 .home4-visual-frame {
        order: initial;
        width: calc(100% + 16px);
        max-width: none;
        margin: 0 -8px;
        border-radius: 12px;
    }

    .pss-home-v4 .home4-visual-frame::after {
        inset: 8px;
        border-radius: 8px;
    }

    .home8-visual-badge {
        display: none;
    }

    .home8-game-rail {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(148px, 42vw);
        gap: 7px;
        margin: 0 -8px;
        padding: 0 8px 5px;
        overflow-x: auto;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
    }

    .home8-game-rail::-webkit-scrollbar {
        display: none;
    }

    .home8-game-card {
        min-height: 84px;
        border-radius: 11px;
        scroll-snap-align: start;
    }

    .home8-game-card > span {
        left: 9px;
        bottom: 8px;
    }

    .home8-game-card b {
        font-size: 12.5px;
    }

    .home8-game-card em {
        display: none;
    }

    .pss-home-v4 .home4-intro {
        padding: 20px 18px;
        border-radius: 15px;
    }

    .pss-home-v4 .home4-hero-prompt {
        margin: 14px 0 10px;
        font-size: clamp(31px, 8.7vw, 37px);
        line-height: 1.05;
        text-wrap: balance;
    }

    .pss-home-v4 .home4-intro > .home4-kicker {
        max-width: 100%;
        font-size: 11px;
        letter-spacing: -.01em;
        white-space: nowrap;
    }

    .pss-home-v4 .home4-intro > p:not(.home7-benefit-note):not(.home4-cta-note) {
        font-size: 14px;
        text-wrap: pretty;
    }

    .pss-home-v4 .home7-benefits {
        gap: 6px;
        margin-top: 14px;
    }

    .pss-home-v4 .home7-benefit {
        min-height: 66px;
        padding: 9px;
    }

    .pss-home-v4 .home8-benefit-featured {
        min-height: 76px;
    }

    .pss-home-v4 .home8-benefit-featured b {
        font-size: 17px;
    }

    .pss-home-v4 .home7-benefit b {
        font-size: 13px;
    }

    .pss-home-v4 .home8-benefit-top i {
        font-size: 8.5px;
    }

    .pss-home-v4 .home4-btn-external {
        min-height: 58px;
        font-size: 17px;
    }

    .pss-home-v4 .home4-btn-external,
    .pss-home-v4 .home4-btn-tutorial {
        white-space: nowrap;
    }

    .pss-home-v4 .home4-btn-tutorial::after {
        display: none;
    }

    .pss-home-v4 .home4-cta-note {
        font-size: 10.5px;
        white-space: nowrap;
    }

    .pss-home-v4 .home4-trust div {
        padding: 7px 9px;
    }

    .pss-home-v4 .home4-trust {
        flex-wrap: nowrap;
    }

    .pss-home-v4 .home4-trust span {
        display: none;
    }

    html body .pss-home-v4 > .home4-quick {
        display: none;
    }

    html body .pss-home-v4 .home6-promotions .home6-promo-secondary {
        display: none;
    }

    html body .pss-home-v4 .home6-promotions .home6-promo-actions {
        grid-template-columns: 1fr;
    }

    html body .pss-home-v4 .home5-section.home5-games {
        padding-top: 48px;
        padding-bottom: 52px;
    }

    html body .pss-home-v4 .home5-section.home5-games .home5-head {
        margin-bottom: 18px;
    }

    html body .pss-home-v4 .home6-promotions h2,
    html body .pss-home-v4 .home5-section.home5-games .home5-head h2,
    html body .pss-home-v4 .home5-final h2,
    html body .pss-home-v4 .home4-video-copy > strong {
        text-wrap: balance;
    }

    html body .pss-home-v4 .home6-promo-body h3,
    html body .pss-home-v4 .home5-section.home5-games .home5-game-copy h3 {
        text-wrap: balance;
    }

    html body .pss-home-v4 .home5-section.home5-games .home5-head::after {
        content: "左右滑動看更多遊戲 →";
        display: block;
        margin-top: -3px;
        color: #aa9bb7;
        font-size: 12px;
        font-weight: 750;
    }

    html body .pss-home-v4 .home5-section.home5-games .home5-game-grid {
        display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(82vw, 1fr);
        gap: 12px;
        margin-right: -10px;
        padding: 0 10px 8px 0;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
    }

    html body .pss-home-v4 .home5-section.home5-games .home5-game-grid::-webkit-scrollbar {
        display: none;
    }

    html body .pss-home-v4 .home5-section.home5-games .home5-game-card {
        width: 100%;
        height: 100%;
        min-height: 0;
        scroll-snap-align: start;
    }

    html body .pss-home-v4 .home5-section.home5-games .home5-game-visual,
    html body .pss-home-v4 .home5-section.home5-games .home5-game-visual img {
        min-height: 190px;
        max-height: 210px;
    }

    html body .pss-home-v4 .home5-section.home5-games .home5-game-copy {
        padding: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home8-visual-badge::before {
        animation: none;
    }

    .home8-game-card,
    .home8-game-card img,
    .pss-home-v4 .home4-btn-external {
        transition: none;
    }
}
