/* home_view-only CSS
   Failure mode: if other pages reuse these classnames, moving styles here would break them. */

.bg-home {
    position: relative;
    background-image: url(../../images/home/home-bg.webp);
    background-size: 100% auto;
    background-repeat: no-repeat repeat;
    background-position: top center;
}

/* LCP: first tile only — matches background-size 100% auto; repeat below from .bg-home bg */
.home-bg-lcp {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: block;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.bg-home>*:not(.home-bg-lcp) {
    position: relative;
    z-index: 1;
}

.content-wrap-home {
    background: white;
    background-size: 100% 100%;
    min-height: 520px !important;
}

.bg-real-time {
    background-image: url(../../images/home/home-bg-realtime.webp);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.home-banner {
    width: 100%;
    height: auto;
    display: block;
}

/* Announcement bar */
.announcement-bar {
    background: #8F8AFF;
    color: white;
    font-weight: 600;
    font-size: 15px;
    padding: 0;
    overflow: hidden;
    border-radius: 5px;
}

.announcement-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.announcement-label-img {
    background-color: #8400FF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 25px;
}

.announcement-label-img img {
    height: 18px;
    width: auto;
    display: block;
}

.announcement-content {
    position: relative;
    overflow: hidden;
    flex: 1;
}

.announcement-text {
    font-size: 12px;
    display: inline-block;
    white-space: nowrap;
    animation: scrollText 60s linear infinite;
}

.announcement-text:hover {
    animation-play-state: paused;
    cursor: pointer;
}

@keyframes scrollText {
    from {
        transform: translateX(30%);
    }

    to {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .announcement-bar {
        font-size: 14px;
    }

    .announcement-text {
        font-size: 11px;
    }
}

/* Home menubar */
.home-menubar-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
    margin-top: 30px;
}

.home-menubar,
.home-menubar-mobile {
    background: linear-gradient(179.94deg, #3CC8FE 43.83%, #6478EB 71.89%, #8A2FDD 99.94%);
    border-radius: 15px 15px 0 0;
    padding: 5px 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

.menubar-icon-left,
.menubar-icon-right {
    position: absolute;
    bottom: -15px;
    height: 105px;
    z-index: 2;
}

.menubar-icon-left {
    left: 10px;
}

.menubar-icon-right {
    right: 10px;
}

.home-menubar-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.home-menubar-btn,
.home-menubar-btn-mobile {
    background-color: transparent;
    border: none;
    color: rgba(255, 255, 255);
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.home-menubar-btn {
    font-size: 16px;
    padding: 8px 15px;
}

.home-menubar-btn-mobile {
    font-size: 14px;
    padding: 8px 10px;
}

.home-menubar-btn.active,
.home-menubar-btn-mobile.active {
    color: #fff;
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.5);
    background-color: transparent;
}

.home-menubar-btn:focus,
.home-menubar-btn-mobile:focus {
    outline: none;
}

/* Single grid: tiles hidden/shown via JS data-cat filter */
#game-grid,
#m-game-grid {
    display: flex;
    flex-wrap: wrap;
}

/* Promotion header + buttons */
.home-promotion-header {
    background: linear-gradient(179.94deg, #3CC8FE 43.83%, #6478EB 71.89%, #8A2FDD 99.94%);
    border-radius: 15px 15px 0 0;
    padding: 5px 0;
    width: 100%;
    font-size: 25px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.promotion-header-icon {
    height: 95px;
    width: auto;
    object-fit: contain;
    position: absolute;
    top: -20px;
    z-index: 2;
    animation: promoFloat 3s ease-in-out infinite;
}

.promotion-header-icon.icon-left {
    left: 30%;
}

.promotion-header-icon.icon-right {
    right: 30%;
}

@keyframes promoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.home-btn-promotion1,
.home-btn-promotion2 {
    box-sizing: border-box !important;
    padding: 7px 5px;
    border-radius: 5px;
    text-align: center;
    border: 2px solid #A115F1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    outline: none;
}

.home-btn-promotion1 {
    background: transparent;
    color: #A41BF1;
    font-weight: 800;
}

.home-btn-promotion2 {
    display: block;
    background: linear-gradient(180deg, #9012F4 0%, #280151 100%);
    font-family: 'Rubik', sans-serif;
    font-weight: 700 !important;
    color: white;
    text-decoration: none;
}

.home-btn-promotion2:hover {
    color: white !important;
}

.promodetail-home {
    min-height: 2.5rem;
}

.itemTitle-home {
    font-size: 1rem;
    font-weight: bold;
}

@media (max-width: 991px) {
    .itemTitle-home {
        font-size: 12px;
    }

    .promotion-header-icon.icon-left {
        left: 10%;
        height: 55px;
        top: 0;
    }

    .promotion-header-icon.icon-right {
        right: 10%;
        height: 55px;
        top: 0;
    }
}

/* Mobile nav swiper sizing */
@media (max-width: 991px) {
    .mobile-nav-swiper {
        overflow: hidden;
        width: 100%;
        padding: 0;
    }

    .mobile-nav-swiper .swiper-slide {
        width: auto !important;
        flex-shrink: 0;
    }

    .mobile-nav-swiper .swiper-slide img.home-banner {
        width: auto;
        height: auto;
        max-height: 100px;
        display: block;
    }
}

@media (min-width: 992px) {
    .mobile-nav-swiper .swiper-wrapper {
        display: flex;
        flex-wrap: wrap;
        transform: none !important;
    }

    .mobile-nav-swiper .swiper-slide {
        flex: 0 0 auto;
        margin-right: 5px !important;
    }
}

/* HOT tag */
.hot-tag {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: #ff0000;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 2px;
    z-index: 10;
    line-height: 1;
}

/* Realtime panels */
#realtime-carousel .owl-nav,
#realtime-carousel .owl-dots {
    display: none !important;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    overflow: hidden;
}

.realtime-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(180deg, #FFFFFF 0%, #D28DFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 4px 15px rgba(210, 141, 255, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.realtime-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.realtime-table {
    width: 100%;
    color: rgba(255, 255, 255, 0.8) !important;
}

.realtime-table td {
    border-top: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.realtime-table tr:last-child td {
    border-bottom: none !important;
}

.realtime-table-row {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.realtime-table-row:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.realtime-table-row:hover td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.realtime-table-row:hover td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.text-deposit {
    color: #00FF87 !important;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(0, 255, 135, 0.4);
}

.badge-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
}

/* Mobile: home-live-winlose (owl swipe between deposit / withdrawal) */
.home-live-winlose #realtime-carousel .item {
    touch-action: pan-y;
}

.home-live-winlose #realtime-carousel .owl-stage-outer {
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .home-live-winlose .realtime-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .home-live-winlose .realtime-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .home-live-winlose .glass-panel {
        border-radius: 16px;
        padding: 0.65rem 0.75rem !important;
    }

    .home-live-winlose .realtime-table td {
        padding: 0.15rem 0.2rem;
        font-size: 0.75rem;
        line-height: 1.15;
        vertical-align: middle;
    }

    .home-live-winlose .realtime-col-no {
        width: 12%;
    }

    .home-live-winlose .realtime-col-user {
        width: 28%;
        white-space: nowrap;
    }

    .home-live-winlose .realtime-col-time {
        width: 32%;
        font-size: 0.72rem;
        opacity: 0.75;
        white-space: nowrap;
    }

    .home-live-winlose .realtime-col-amount {
        width: 28%;
    }

    .home-live-winlose .realtime-col-amount .text-deposit {
        font-size: 0.78rem;
    }

    .home-live-winlose .badge-counter {
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        font-size: 10px;
    }
}

/* ================================================================
   Mobile home — button skin only; layout via Bootstrap row/col/g-*
   ================================================================ */
.mobile-login,
.mobile-register {
    border-radius: 10px;
    color: #fff;
    z-index: 3;
    touch-action: manipulation;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.mobile-login a,
.mobile-register a {
    cursor: pointer;
    text-decoration: none;
}

.mobile-login {
    background: linear-gradient(180deg, #C600ED 0%, #6700EE 100%);
    box-shadow: 0 4px 0 #4a00aa;
}

.mobile-register {
    background: linear-gradient(180deg, #00D4FF 0%, #0088EE 100%);
    box-shadow: 0 4px 0 #0055aa;
}

.mobile-member-bar {
    font-weight: 800;
    font-size: 12px;
}

/* ================================================================
   Owl Carousel Core (extracted for home_mobile_view)
   ================================================================ */

.owl-carousel .animated {
    -webkit-animation-duration: 1000ms;
    animation-duration: 1000ms;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.owl-carousel .owl-animated-in {
    z-index: 0;
}

.owl-carousel .owl-animated-out {
    z-index: 1;
}

.owl-carousel .fadeOut {
    -webkit-animation-name: fadeOut;
    animation-name: fadeOut;
}

@-webkit-keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.owl-height {
    -webkit-transition: height 500ms ease-in-out;
    -o-transition: height 500ms ease-in-out;
    transition: height 500ms ease-in-out;
}

.owl-carousel {
    display: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
    -webkit-backface-visibility: hidden;
}

.owl-carousel .owl-stage {
    position: relative;
    -ms-touch-action: pan-Y;
}

.owl-carousel .owl-stage:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

.owl-carousel .owl-stage-outer {
    position: relative;
    overflow: hidden;
    -webkit-transform: translate3d(0px, 0, 0);
    cursor: move;
    cursor: -webkit-grab;
    cursor: grab;
}

.owl-carousel .owl-controls .owl-dot,
.owl-carousel .owl-controls .owl-nav .owl-next,
.owl-carousel .owl-controls .owl-nav .owl-prev {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.owl-carousel.owl-loaded {
    display: block;
}

.owl-carousel.owl-loading {
    display: block;
    min-height: 100px;
}

.owl-carousel.owl-hidden {
    opacity: 0;
}

.owl-carousel .owl-refresh .owl-item {
    display: none;
}

.owl-carousel .owl-item {
    position: relative;
    min-height: 1px;
    float: left;
    -webkit-backface-visibility: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.owl-carousel .owl-item img {
    display: block;
    width: 100%;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.owl-carousel.owl-text-select-on .owl-item {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

.owl-carousel .owl-grab {
    cursor: move;
    cursor: -webkit-grab;
    cursor: grab;
}

.owl-carousel.owl-rtl {
    direction: rtl;
}

.owl-carousel.owl-rtl .owl-item {
    float: right;
}

.no-js .owl-carousel {
    display: block;
}

.owl-carousel .owl-item .owl-lazy {
    opacity: 0;
    -webkit-transition: opacity 400ms ease;
    -o-transition: opacity 400ms ease;
    transition: opacity 400ms ease;
}

/* Owl Carousel - Controls
----------------------------------------------------------------- */

.owl-theme .owl-controls {
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.owl-theme .owl-controls .owl-nav [class*=owl-] {
    position: absolute;
    top: 50%;
    margin-top: -18px;
    left: -36px;
    zoom: 1;
    width: 36px;
    height: 36px;
    line-height: 32px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #666;
    background-color: #FFF;
    font-size: 18px;
    border-radius: 50%;
    opacity: 0;
    -webkit-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
}

.owl-theme .owl-controls .owl-nav .owl-next {
    left: auto;
    right: -36px;
}

.owl-theme:hover .owl-controls .owl-nav [class*=owl-] {
    opacity: 1;
    left: -18px;
}

.owl-theme:hover .owl-controls .owl-nav .owl-next {
    left: auto;
    right: -18px;
}

.owl-theme .owl-controls .owl-nav [class*=owl-]:hover {
    background-color: #e3120f !important;
    color: #FFF !important;
    text-decoration: none;
}

.owl-theme .owl-controls .owl-nav .disabled {
    display: none !important;
}

/* Owl Carousel - Controls - Dots
----------------------------------------------------------------- */

.owl-theme .owl-dots .owl-dot {
    display: inline-block;
    zoom: 1;
    margin-top: 30px;
}

.owl-theme .owl-dots .owl-dot span {
    display: block;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    opacity: 0.5;
    border-radius: 50%;
    background-color: #e3120f;
    -webkit-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    opacity: 1;
}

/* ========== Game Modal ========== */
.game-modal .modal-content {
    border: 2px solid #8400FF;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(132, 0, 255, 0.3);
    overflow: hidden;
    background: #fff;
}

.game-modal .game-modal-header {
    position: relative;
}

.game-modal .game-modal-title-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 52px 14px 20px;
    text-align: left;
}

.game-modal .game-modal-title {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.game-modal .game-modal-badge {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-modal .game-modal-close {
    color: #fff;
    opacity: 0.9;
    font-size: 26px;
    text-shadow: none;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease, opacity 0.2s ease;
    z-index: 10;
    border: none;
}

.game-modal .game-modal-close:hover,
.game-modal .game-modal-close:focus {
    opacity: 1;
    background: rgba(0, 0, 0, 0.55);
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.game-modal .game-modal-body {
    padding: 20px 24px;
    background: #faf8ff;
}

.game-modal .game-modal-section {
    margin-bottom: 20px;
}

.game-modal .game-modal-section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #8400FF;
    margin: 0 0 12px;
}

.game-modal .game-modal-download-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 6px;
    border-radius: 10px;
    background: rgba(132, 0, 255, 0.06);
    border: 1px solid rgba(132, 0, 255, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    touch-action: manipulation;
}

.game-modal .game-modal-download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(132, 0, 255, 0.2);
    border-color: rgba(132, 0, 255, 0.35);
}

.game-modal .game-modal-download-link img {
    max-width: 100%;
    height: auto;
    max-height: 130px;
    display: block;
    object-fit: contain;
}

.game-modal .game-modal-credentials {
    margin: 0;
    border: none;
}

.game-modal .game-modal-credentials-head {
    background: linear-gradient(135deg, #5a0099 0%, #8400FF 100%);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    padding: 10px 14px;
    border-radius: 8px 8px 0 0;
    line-height: 1.4;
}

.game-modal .game-modal-case-hint {
    display: block;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.85;
    margin-top: 2px;
}

.game-modal .game-credential-list {
    background: #fff;
    border: 1px solid rgba(132, 0, 255, 0.15);
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.game-modal .game-credential-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(132, 0, 255, 0.08);
}

.game-modal .game-credential-row:last-child {
    border-bottom: none;
}

.game-modal .game-credential-label {
    flex: 0 0 30%;
    min-width: 80px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.game-modal .game-credential-value-wrap {
    flex: 1 1 60%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.game-modal .game-credential-value {
    flex: 1 1 auto;
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    background: rgba(132, 0, 255, 0.06);
    border: 1px solid rgba(132, 0, 255, 0.12);
    border-radius: 6px;
    padding: 8px 10px;
    word-break: break-all;
    white-space: pre-wrap;
}

.game-modal .game-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    min-width: 44px;
    padding: 8px 14px;
    border: 1px solid rgba(198, 0, 237, 0.35);
    border-radius: 8px;
    background: rgba(198, 0, 237, 0.08);
    color: #8400FF;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.game-modal .game-copy-btn:hover,
.game-modal .game-copy-btn:focus {
    background: rgba(198, 0, 237, 0.15);
    border-color: #8400FF;
    outline: none;
    transform: translateY(-1px);
}

.game-modal .game-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 20px;
    background: #f3eeff;
    border-top: 1px solid rgba(132, 0, 255, 0.12);
}

.game-modal .btn-game-close {
    background: transparent;
    color: #666;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 22px;
    min-height: 44px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.game-modal .btn-game-close:hover,
.game-modal .btn-game-close:focus {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.25);
}

.game-modal .btn-game-launch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    background: linear-gradient(180deg, #C600ED 0%, #6700EE 100%);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    touch-action: manipulation;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-modal .btn-game-launch:hover,
.game-modal .btn-game-launch:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(103, 0, 238, 0.4);
}

@media (max-width: 576px) {
    .game-modal .game-modal-title {
        font-size: 15px;
    }

    .game-modal .game-modal-body {
        padding: 16px;
    }

    .game-modal .game-credential-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .game-modal .game-credential-label {
        flex: none;
        width: 100%;
    }

    .game-modal .game-credential-value-wrap {
        flex-direction: row;
        align-items: stretch;
        width: 100%;
        gap: 8px;
    }

    .game-modal .game-credential-value {
        flex: 1 1 0;
        min-width: 0;
    }

    .game-modal .game-copy-btn {
        width: auto;
        flex: 0 0 auto;
        min-width: 44px;
        padding: 8px 12px;
        white-space: nowrap;
    }

    .game-modal .game-modal-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .game-modal .btn-game-close,
    .game-modal .btn-game-launch {
        width: 100%;
        text-align: center;
    }

    .home-redrict__card {
        padding: 4px !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    .game-modal .game-modal-download-link,
    .game-modal .game-copy-btn,
    .game-modal .btn-game-launch,
    .game-modal .game-modal-close {
        transition: none;
    }

    .game-modal .game-modal-download-link:hover,
    .game-modal .game-copy-btn:hover,
    .game-modal .btn-game-launch:hover {
        transform: none;
    }
}


/* ── 呼吸缩放动画 ── */
@keyframes neonBreathe {

    0%,
    100% {
        transform: scale(0.9);
    }

    50% {
        transform: scale(1);
    }
}

/* ── 流水旋转动画 ── */
@keyframes borderRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.home-redrict__card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    padding: 8px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.home-redrict__card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            #b43cff, #e0aaff, #b43cff,
            transparent 25%,
            transparent 50%,
            #b43cff, #e0aaff, #b43cff,
            transparent 75%);
    z-index: 1;
    opacity: 0;
}

.home-redrict__card.is-ready {
    opacity: 1;
    animation: neonBreathe 1s ease-in-out infinite;
}

.home-redrict__card.is-ready::before {
    opacity: 1;
    animation: borderRotate 2s linear infinite;
}

.home-redrict__card.is-pink::before {
    /* #ff00ff: 强力电光粉 (Magenta / Electric Pink)
       #ff007f: 霓虹深粉 (Neon Deep Pink)
    */
    background: conic-gradient(transparent,
            #ff00ff, #ff007f, #ff00ff,
            /* 第一条流水 (更饱和的粉色) */
            transparent 20%,
            /* 缩小发光范围，让线条看起来更锐利、更粉 */
            transparent 50%,
            #ff00ff, #ff007f, #ff00ff,
            /* 第二条流水 (更饱和的粉色) */
            transparent 70%);
}

/* 悬停处理 */
.home-redrict__card.is-ready:hover {
    transform: scale(1.06) translateY(-2px);
    animation-play-state: paused;
}

.home-redrict__card.is-ready:hover::before {
    animation-duration: 1.5s;
}

/* 内部遮罩层级确保在旋转层之上 */
.home-redrict__inner {
    position: relative;
    background: #000;
    border-radius: 10px;
    z-index: 2;
    /* 高于 ::before 的 z-index: 1 */
    width: 100%;
    height: 100%;
    overflow: hidden;
}