/* ===== Browser chrome + main page scrollbar ===== */
html {
    scrollbar-width: thin;
    scrollbar-color: #9f2cff #070914;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: #070914;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    min-height: 44px;
    border: 2px solid #070914;
    border-radius: 999px;
    background: linear-gradient(180deg, #d92fff 0%, #7d2bff 100%);
}

@media (hover: hover) and (pointer: fine) {
    html::-webkit-scrollbar-thumb:hover,
    body::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #e24cff 0%, #9146ff 100%);
    }
}

/* Scorpion Shop redesign bridge.
   Header/search/background are intentionally inherited from the copied production style.css. */

.catalog-landing-shell,
.activation-redesign-main {
    display: none;
}

body.scorpion-redesign-view .catalog-site-header {
    display: block;
}

/* The old animated activation background is no longer used. The production .video-overlay
   remains visible and supplies the exact Scorpion Shop back.png background. */
body.scorpion-redesign-view .video-bg,
body.scorpion-redesign-view .activation-site-header,
body.scorpion-redesign-view .activation-main,
body.scorpion-redesign-view .site-preloader,
body.scorpion-redesign-view .floating-actions {
    display: none !important;
}

body.catalog-landing-view .catalog-landing-shell {
    display: flex;
    min-height: calc(100vh - 82px);
    align-items: flex-start;
    justify-content: center;
    padding-top: clamp(44px, 8vh, 92px);
    padding-bottom: 64px;
}

body.catalog-landing-view .catalog-welcome {
    width: min(920px, 100%);
    padding: clamp(30px, 5vw, 52px);
    text-align: center;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.catalog-landing-view .catalog-welcome h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -.035em;
    font-weight: 900;
}
body.catalog-landing-view .catalog-welcome-copy {
    width: min(800px, 100%);
    margin: 24px auto 0;
    color: #d8dced;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.65;
    font-weight: 650;
}
body.catalog-landing-view .catalog-welcome-copy p { margin: 0; }
body.catalog-landing-view .catalog-welcome-copy p + p { margin-top: 14px; }
body.catalog-landing-view .catalog-welcome-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
body.catalog-landing-view .catalog-welcome-actions .primary-btn,
body.catalog-landing-view .catalog-welcome-actions .ghost-btn {
    min-width: 158px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
}

/* ===== Activation redesign ===== */
body.activation-redesign-view .activation-redesign-main {
    display: block;
    padding-top: 24px;
    padding-bottom: 64px;
}

.activation-games-panel,
.activation-detail-panel {
    width: 100%;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.activation-games-panel {
    padding: 10px 0 4px !important;
    margin: 0 auto 22px;
    text-align: center;
}

.activation-detail-panel {
    position: relative;
    padding: 30px 0 0 !important;
}
.activation-detail-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.14) 18%, rgba(217,47,255,.26) 50%, rgba(255,255,255,.14) 82%, transparent);
}

.activation-section-title {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.08;
    letter-spacing: -.03em;
    font-weight: 900;
    text-align: center;
}

.redesign-games-carousel {
    position: relative;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}
.redesign-games-carousel.is-scrollable {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    column-gap: 14px;
}

.redesign-games-strip {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    touch-action: auto;
    overscroll-behavior-x: contain;
    user-select: none;
    -webkit-user-select: none;
}
.redesign-games-carousel.is-scrollable .redesign-games-strip {
    grid-column: 2;
    grid-row: 1;
}
.redesign-games-strip::-webkit-scrollbar,
.redesign-games-strip::-webkit-scrollbar-track,
.redesign-games-strip::-webkit-scrollbar-thumb {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}
.redesign-games-strip.is-scrollable {
    justify-content: flex-start;
}
.redesign-games-strip:not(.is-scrollable) {
    cursor: default;
}
.redesign-games-strip.dragging {
    cursor: grabbing;
    scroll-behavior: auto !important;
}
.redesign-games-strip.dragging * {
    user-select: none !important;
    pointer-events: none !important;
}

.redesign-games-arrow {
    position: static;
    z-index: 5;
    width: 34px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    color: rgba(255,255,255,.82);
    box-shadow: none !important;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    transform: none;
    transition: color .18s ease, opacity .18s ease, transform .18s ease;
}
.redesign-games-carousel.is-scrollable .redesign-games-arrow-left {
    grid-column: 1;
    grid-row: 1;
}
.redesign-games-carousel.is-scrollable .redesign-games-arrow-right {
    grid-column: 3;
    grid-row: 1;
}
/* Hover is enabled only on real hover-capable pointers so touch devices do not keep a sticky purple state. */
@media (hover: hover) and (pointer: fine) {
    .redesign-games-arrow:hover:not(:disabled) {
        background: transparent !important;
        color: #d92fff;
        transform: scale(1.12);
    }
}
.redesign-games-arrow:focus,
.redesign-games-arrow:focus-visible {
    outline: none;
    color: rgba(255,255,255,.82);
    background: transparent !important;
    box-shadow: none !important;
}
.redesign-games-arrow:disabled {
    opacity: .22;
    cursor: default;
    transform: none;
}
.redesign-games-arrow[hidden] { display: none !important; }

.redesign-game-card {
    flex: 0 0 160px;
    width: 160px;
    min-width: 160px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    background: rgba(8,10,20,.78);
    color: #fff;
    box-shadow: none !important;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, filter .18s ease;
}
.redesign-game-card:hover {
    transform: translateY(-2px);
    border-color: rgba(217,47,255,.50);
    background: rgba(17,18,34,.94);
    box-shadow: none !important;
}
.redesign-game-card.active {
    border-color: rgba(217,47,255,.78);
    background: rgba(217,47,255,.10);
    box-shadow: inset 0 0 0 1px rgba(217,47,255,.16) !important;
}
.redesign-game-card-media {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: rgba(255,255,255,.025);
}
.redesign-game-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform .22s ease;
}
.redesign-game-card:hover .redesign-game-card-image,
.redesign-game-card.active .redesign-game-card-image {
    transform: scale(1.018);
}
.redesign-game-card-title {
    display: block;
    box-sizing: border-box;
    flex: 1 0 auto;
    min-height: 52px;
    padding: 9px 11px 10px;
    background: linear-gradient(180deg, rgba(16,19,29,.96), rgba(8,11,18,.98));
    color: #f7f5ff;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
}

.activation-detail-panel {
    padding: clamp(18px, 3vw, 32px) !important;
    text-align: center;
}
.activation-detail-grid {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 350px);
    align-items: center;
    justify-content: center;
    justify-items: center;
    gap: clamp(18px, 2vw, 26px);
    width: 100%;
    max-width: 676px;
    margin: 0 auto;
}
.activation-detail-cover {
    width: 100%;
    max-width: 300px;
    justify-self: center;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 18px;
    background: rgba(5,7,14,.72);
}
.activation-detail-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.activation-game-title {
    width: min(1140px, 100%);
    margin: 0 auto clamp(22px, 3vw, 34px);
    color: #fff;
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.08;
    letter-spacing: -.035em;
    font-weight: 900;
    text-align: center;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    text-wrap: balance;
}
.activation-account-block {
    min-width: 0;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    text-align: center;
}
.redesign-account-list {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 350px;
    max-height: 240px;
    margin: 0 auto;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: max-height .24s ease, opacity .16s ease, transform .24s ease;
}
.redesign-account-list.is-guard-hidden {
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}
.redesign-account-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 12px 10px 16px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 13px;
    background: rgba(255,255,255,.035);
}
.redesign-account-text {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.redesign-account-label {
    color: #aeb4c8;
    font-size: 14px;
    font-weight: 800;
}
.redesign-account-value {
    min-width: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 900;
    overflow-wrap: anywhere;
}
.redesign-copy-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 10px;
    background: rgba(255,255,255,.055);
    color: #f7f5ff;
    box-shadow: none !important;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.redesign-copy-btn img {
    display: block;
    width: 21px;
    height: 21px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    pointer-events: none;
}
.redesign-copy-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    background: rgba(217,47,255,.14);
    border-color: rgba(217,47,255,.44);
    box-shadow: none !important;
}
.redesign-copy-btn.copied,
.redesign-copy-btn.copied:hover,
.redesign-copy-btn.copied:focus,
.redesign-copy-btn.copied:active {
    transform: none !important;
    background: rgba(111,216,0,.10) !important;
    border-color: rgba(111,216,0,.46) !important;
    box-shadow: none !important;
}
.redesign-copy-btn.copied img {
    filter: none;
}
.redesign-copy-btn:disabled {
    opacity: .42;
    cursor: default;
    transform: none !important;
}

.redesign-guard-shell {
    width: 100%;
    max-width: 350px;
    margin: 14px auto 0;
}
.redesign-guard-btn,
.redesign-instruction-btn {
    width: 100%;
    max-width: 350px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 0 18px;
    color: #fff;
    box-shadow: none !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    transition: transform .18s ease, filter .18s ease, background .18s ease, border-color .18s ease;
}
.redesign-guard-btn {
    border: 1px solid rgba(217,47,255,.34);
    background: linear-gradient(180deg, #d92fff 0%, #8b2eff 100%);
}
.redesign-guard-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: none !important;
}
.redesign-guard-btn:disabled {
    opacity: .62;
    cursor: wait;
}
.redesign-guard-btn[hidden] {
    display: none !important;
}
.redesign-account-list[hidden] {
    display: none !important;
}
.redesign-instruction-btn {
    display: flex;
    margin: 10px auto 0;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.045);
}
.redesign-instruction-btn:hover {
    transform: translateY(-2px);
    background: rgba(217,47,255,.12);
    border-color: rgba(217,47,255,.38);
    box-shadow: none !important;
}
.redesign-faq-btn {
    margin-top: 10px;
}
.redesign-guard-manual {
    padding: 14px 16px;
    border: 1px solid rgba(255,189,62,.28);
    border-radius: 12px;
    background: rgba(255,189,62,.08);
    color: #ffe4a3;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 750;
}
.redesign-guard-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
    min-height: 76px;
    padding: 12px;
    border: 1px solid rgba(217,47,255,.25);
    border-radius: 13px;
    background: rgba(217,47,255,.07);
    animation: redesignGuardAppear .18s ease both;
}
.redesign-guard-box[hidden] { display: none !important; }
.redesign-guard-code-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.redesign-guard-code {
    min-width: 0;
    color: #fff;
    font-size: clamp(22px, 4vw, 31px);
    line-height: 1;
    letter-spacing: .12em;
    font-weight: 950;
    text-align: center;
}
.redesign-code-copy-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
}
.redesign-guard-box.is-loading .redesign-code-copy-btn {
    visibility: hidden;
    pointer-events: none;
}
.redesign-guard-box.is-loading .redesign-guard-code {
    opacity: .45;
}
.redesign-guard-timer {
    color: #aeb4c8;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
}
@keyframes redesignGuardAppear {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Guard connectivity status ===== */
.guard-connectivity-banner {
    width: min(980px, calc(100% - 24px));
    margin: 0 auto 18px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 8px;
    border: 1px solid rgba(255,189,62,.32);
    border-radius: 12px;
    background: rgba(63,42,4,.84);
    color: #ffe7ad;
    text-align: center;
    font-size: 13px;
    line-height: 1.45;
    box-shadow: none;
}
.guard-connectivity-banner strong {
    color: #fff1c9;
    font-weight: 900;
}
.guard-connectivity-banner[hidden] { display: none !important; }
.redesign-guard-btn[aria-disabled="true"] {
    opacity: .48;
    cursor: not-allowed;
    filter: saturate(.55);
    transform: none !important;
}

/* ===== Temporary network test switch ===== */

/* ===== Language switcher ===== */
.redesign-language-switcher {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1080;
}

html.buyer-notice-open .redesign-language-switcher,
body.buyer-notice-open .redesign-language-switcher {
    z-index: 9105;
}
.redesign-language-toggle {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: rgba(10,12,22,.94);
    box-shadow: none !important;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.redesign-language-flag {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
    .redesign-language-toggle:hover {
        transform: translateY(-2px);
        border-color: rgba(217,47,255,.55);
        background: rgba(18,20,34,.98);
    }
}
.redesign-language-toggle:focus,
.redesign-language-toggle:focus-visible {
    outline: none;
    box-shadow: none !important;
}
.redesign-language-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: 138px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 13px;
    background: rgba(10,12,22,.98);
    box-shadow: none;
}
.redesign-language-menu[hidden] { display: none !important; }
.redesign-language-menu button[hidden] { display: none !important; }
.redesign-language-menu button {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 13px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    box-shadow: none !important;
    cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
    .redesign-language-menu button:hover { background: rgba(217,47,255,.12); }
}
.redesign-language-menu button:focus,
.redesign-language-menu button:focus-visible { outline: none; background: rgba(217,47,255,.12); }

.redesign-message-bar {
    margin-bottom: 18px;
}

/* ===== New-key notice modal ===== */
html.buyer-notice-open,
body.buyer-notice-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}
.buyer-notice-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9000 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px !important;
    background: rgba(3,5,12,.78) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}
.buyer-notice-modal.visible { display: flex !important; }
.buyer-notice-card {
    width: min(680px, 100%) !important;
    padding: 22px !important;
    border: 1px solid rgba(217,47,255,.24) !important;
    border-radius: 28px !important;
    background: linear-gradient(180deg, rgba(20,22,36,.98), rgba(11,13,23,.98)) !important;
    box-shadow: none !important;
    text-align: center !important;
}
.buyer-notice-card img {
    display: block !important;
    width: min(620px, 100%) !important;
    height: auto !important;
    margin: 0 auto 16px !important;
    border-radius: 18px !important;
    box-shadow: none !important;
}
.buyer-notice-card p {
    margin: 0 !important;
    color: #f4f6fb !important;
    font-size: 18px !important;
    line-height: 1.45 !important;
    font-weight: 800 !important;
}
.buyer-notice-respect {
    display: block;
    margin-top: 10px;
    color: #fff;
    font-weight: 850;
}
.buyer-notice-timer {
    min-height: 48px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
.buyer-notice-timer[hidden] {
    display: none !important;
}
.buyer-notice-card button {
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
    min-height: 48px !important;
    margin-top: 20px !important;
    padding: 0 24px !important;
    border: 1px solid rgba(217,47,255,.32) !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #d92fff 0%, #8b2eff 100%) !important;
    color: #fff !important;
    box-shadow: none !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    outline: none !important;
    transition: transform .34s cubic-bezier(.2,.85,.2,1), filter .34s ease, background .34s ease, border-color .34s ease !important;
}
.buyer-notice-card button::after {
    content: '';
    position: absolute;
    inset: -55%;
    z-index: -1;
    background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.22) 50%, transparent 62%);
    transform: translateX(-135%) rotate(8deg);
    transition: transform .8s cubic-bezier(.16,1,.3,1);
    pointer-events: none;
}
.buyer-notice-card button[hidden] {
    display: none !important;
}
.buyer-notice-card button:hover {
    transform: translateY(-2px) scale(1.012) !important;
    filter: brightness(1.07) !important;
    box-shadow: none !important;
}
.buyer-notice-card button:hover::after {
    transform: translateX(135%) rotate(8deg);
}
.buyer-notice-card button:focus,
.buyer-notice-card button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
.buyer-notice-card button:active {
    outline: none !important;
    box-shadow: none !important;
    transform: translateY(0) scale(.975) !important;
}

@media (max-width: 860px) {
    body.activation-redesign-view .activation-redesign-main {
        padding-top: 16px;
        padding-bottom: 36px;
    }
    .activation-detail-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .activation-detail-cover {
        width: min(280px, 82vw);
    }
    .activation-account-block {
        max-width: 350px;
    }
    .activation-game-title {
        width: 100%;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 520px) {
    body.catalog-landing-view .catalog-landing-shell { padding-top: 42px; }
    body.catalog-landing-view .catalog-welcome { padding: 28px 20px; }
    body.catalog-landing-view .catalog-welcome h1 { font-size: clamp(30px, 10vw, 40px); }
    body.catalog-landing-view .catalog-welcome-copy { font-size: 15px; line-height: 1.58; }
    body.catalog-landing-view .catalog-welcome-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
    body.catalog-landing-view .catalog-welcome-actions .primary-btn,
    body.catalog-landing-view .catalog-welcome-actions .ghost-btn { width: 100%; }

    .activation-games-panel {
        padding: 8px 0 2px !important;
    }
    .redesign-games-carousel.is-scrollable {
        grid-template-columns: 1fr auto 16px auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 0;
        row-gap: 8px;
    }
    .redesign-games-carousel.is-scrollable .redesign-games-strip {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    .redesign-games-carousel.is-scrollable .redesign-games-arrow-left {
        grid-column: 2;
        grid-row: 2;
    }
    .redesign-games-carousel.is-scrollable .redesign-games-arrow-right {
        grid-column: 4;
        grid-row: 2;
    }
    .redesign-games-arrow {
        width: 38px;
        height: 36px;
        padding-bottom: 3px;
        font-size: 36px;
    }
    .activation-detail-panel {
        padding: 24px 0 0 !important;
    }
    .redesign-game-card {
        flex-basis: 132px;
        width: 132px;
        min-width: 132px;
    }
    .redesign-game-card-title {
        min-height: 48px;
        padding: 8px 9px 9px;
        font-size: 12px;
        overflow: visible;
        white-space: normal;
    }
    .activation-detail-cover {
        width: min(235px, 78vw);
        border-radius: 15px;
    }
    .activation-account-block {
        width: min(100%, 350px);
        max-width: 350px;
        padding: 10px;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 15px;
        background: rgba(17,20,35,.96);
    }
    .redesign-account-list {
        max-width: none;
        gap: 10px;
    }
    .redesign-account-row {
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 10px;
        min-height: 56px;
        padding: 10px 4px 10px 8px;
        border: 1px solid rgba(255,255,255,.10) !important;
        border-radius: 10px;
        background: rgba(255,255,255,.025) !important;
    }
    .redesign-guard-shell {
        max-width: none;
        margin: 10px 0 0;
    }
    .redesign-instruction-btn {
        max-width: none;
        min-height: 50px;
        margin: 10px 0 0;
        border: 1px solid rgba(255,255,255,.10) !important;
        border-radius: 10px;
        background: rgba(255,255,255,.035) !important;
    }
    .redesign-instruction-btn:hover {
        background: rgba(217,47,255,.10) !important;
    }
    .redesign-faq-btn {
        margin-top: 10px;
    }
    .redesign-guard-box {
        grid-template-columns: minmax(0, 1fr) 44px;
        border: 0 !important;
        border-radius: 10px;
        background: rgba(217,47,255,.06) !important;
    }
    .redesign-copy-btn,
    .redesign-code-copy-btn {
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
        justify-self: end;
    }
    .redesign-guard-code { font-size: 25px; }
    .guard-connectivity-banner {
        width: calc(100% - 20px);
        margin-bottom: 14px;
        padding: 11px 12px;
        font-size: 12px;
    }
    .redesign-language-switcher { right: 14px; bottom: 14px; }
    .redesign-language-toggle { width: 48px; height: 48px; }
    .redesign-language-flag { width: 100%; height: 100%; }
}

.redesign-message-bar {
    padding: 13px 16px;
    border: 1px solid rgba(255,63,98,.28);
    border-radius: 12px;
    background: rgba(255,63,98,.09);
    color: #ffd8df;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 800;
}

/* ===== Step 16: sticky Guard notice + minimal instruction modal ===== */
.guard-connectivity-banner {
    position: sticky;
    top: 82px;
    z-index: 999;
    width: 100% !important;
    max-width: none !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 10px 18px;
    box-sizing: border-box;
    border: 0;
    border-top: 1px solid rgba(255,211,76,.30);
    border-bottom: 1px solid rgba(255,211,76,.30);
    border-radius: 0 !important;
    background: linear-gradient(90deg, rgba(104,72,0,.94), rgba(151,105,0,.96), rgba(104,72,0,.94));
    color: #fff0b2;
    box-shadow: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.guard-connectivity-banner strong { color: #fff5cf; }

body.instruction-modal-open { overflow: hidden !important; }
.instruction-modal[hidden] { display: none !important; }
.instruction-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: auto;
    background: rgba(3, 5, 12, .50);
    color: #fff;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.instruction-modal-surface {
    position: relative;
    width: min(1080px, calc(100vw - 40px));
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 20px 24px 26px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    background: rgba(6, 8, 16, .64);
    box-shadow: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    scrollbar-width: none;
}
.instruction-modal-surface::-webkit-scrollbar { display: none; }
.instruction-modal-header {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 14px;
    border: 0;
    background: transparent;
}
.instruction-modal-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.05;
    letter-spacing: -.03em;
    font-weight: 900;
}
.instruction-modal-close {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none !important;
    cursor: pointer;
    transition: background .16s ease, filter .16s ease;
}
.instruction-modal-close img {
    display: block;
    width: 25px;
    height: 25px;
    object-fit: contain;
    filter: grayscale(1) brightness(0) invert(1);
}
@media (hover: hover) and (pointer: fine) {
    .instruction-modal-close:hover {
        background: rgba(255,255,255,.07);
        transform: none !important;
    }
}
.instruction-modal-close:focus-visible {
    outline: 2px solid rgba(217,47,255,.85);
    outline-offset: 2px;
}

/* Block 1 (steps) is one row; Block 2 (video) is the next row. */
.instruction-modal-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
    padding: 0;
}
.instruction-steps-pane,
.instruction-video-pane {
    min-width: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.instruction-steps-pane { overflow: visible; }
.instruction-video-pane {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.instruction-step-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    margin: 2px 0 22px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.instruction-step-nav::-webkit-scrollbar { display: none; width: 0; height: 0; }
.instruction-step-nav[hidden] { display: none !important; }
.instruction-step-dot,
.instruction-step-separator { flex: 0 0 auto; }
.instruction-step-dot {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    box-shadow: none !important;
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.instruction-step-dot.active {
    border-color: transparent;
    background: linear-gradient(135deg, #b424ff, #d92fff);
    color: #fff;
}
@media (hover: hover) and (pointer: fine) {
    .instruction-step-dot:hover:not(.active) {
        border-color: rgba(217,47,255,.68);
        background: rgba(217,47,255,.08);
    }
}
.instruction-step-separator {
    color: rgba(255,255,255,.48);
    font-size: 27px;
    line-height: 1;
    font-weight: 500;
}

.instruction-step-content { width: 100%; }
.instruction-content-blocks {
    width: min(960px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 26px;
}
.instruction-content-blocks.has-media {
    grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
}
.instruction-content-media-column,
.instruction-content-info-column {
    min-width: 0;
    display: grid;
    gap: 16px;
    align-content: center;
}
.instruction-content-info-column { justify-items: start; }
.instruction-content-heading {
    margin: 0;
    color: #fff;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.12;
    letter-spacing: -.025em;
    font-weight: 900;
    overflow-wrap: anywhere;
}
.instruction-content-text {
    margin: 0;
    color: #d6dae8;
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.6;
    font-weight: 650;
    white-space: pre-wrap;
}
.instruction-content-media {
    width: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: transparent;
}
.instruction-content-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 390px;
    object-fit: contain;
    border-radius: 14px;
}
.instruction-content-link {
    display: grid;
    gap: 9px;
    justify-items: start;
}
.instruction-content-link-title {
    color: #fff;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 850;
}
.instruction-link-button {
    min-width: 160px;
    min-height: 44px;
    text-decoration: none;
}
.instruction-step-footer {
    width: min(960px, 100%);
    margin: 20px auto 0;
    display: flex;
    justify-content: flex-end;
}
.instruction-next-button {
    min-width: 138px;
    min-height: 46px;
}

.instruction-video-frame {
    width: min(860px, 100%);
    margin: 0 auto;
    display: block;
}
.instruction-video-title { display: none !important; }
.instruction-video-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 440px;
    border: 0;
    border-radius: 14px;
    background: #000;
    object-fit: contain;
}
.instruction-empty-state {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #b7bdce;
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 750;
}

@media (max-width: 900px) {
    .guard-connectivity-banner {
        top: 82px;
        z-index: 4999;
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 12px;
        font-size: 12px;
    }
    .instruction-modal {
        align-items: center;
        padding: 12px;
    }
    .instruction-modal-surface {
        width: min(100%, 680px);
        max-height: calc(100dvh - 24px);
        padding: 16px 16px 20px;
        border-radius: 16px;
    }
    .instruction-modal-header { padding-bottom: 12px; }
    .instruction-modal-close {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 8px;
    }
    .instruction-modal-close img { width: 23px; height: 23px; }
    .instruction-modal-layout { gap: 20px; }
    .instruction-step-nav {
        justify-content: flex-start;
        gap: 8px;
        margin-bottom: 18px;
    }
    .instruction-step-dot {
        width: 39px;
        height: 39px;
        min-width: 39px;
    }
    .instruction-step-separator { font-size: 24px; }
    .instruction-content-blocks.has-media,
    .instruction-content-blocks {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
    .instruction-content-media-column,
    .instruction-content-info-column { gap: 14px; }
    .instruction-content-info-column { justify-items: stretch; }
    .instruction-content-media img { max-height: none; }
    .instruction-link-button,
    .instruction-next-button { width: 100%; }
    .instruction-step-footer { margin-top: 16px; }
    .instruction-video-player { max-height: none; }
}


/* ===== Step 17: attached mobile Guard banner + stable minimal instruction modal ===== */
:root { --guard-connectivity-banner-height: 0px; }

/* Keep the warning physically attached to the fixed 82px mobile header. */
@media (max-width: 860px) {
    .guard-connectivity-banner {
        position: fixed !important;
        top: 82px !important;
        right: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        max-width: none !important;
        margin: 0 !important;
        z-index: 4999 !important;
    }
    body.guard-connectivity-warning-visible .activation-redesign-main,
    body.guard-connectivity-warning-visible .catalog-landing-shell {
        margin-top: var(--guard-connectivity-banner-height, 0px) !important;
    }
}

/* Modal has no title row; close control floats in the top-right corner. */
.instruction-modal-surface {
    width: min(1040px, calc(100vw - 40px));
    padding: 24px 28px 28px;
}
.instruction-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 5;
}
.instruction-modal-layout {
    gap: 22px;
    padding-top: 18px;
}

/* Same visual separator used between Library and the selected game. */
.instruction-section-divider {
    width: 100%;
    height: 1px;
    flex: 0 0 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.14) 18%, rgba(217,47,255,.26) 50%, rgba(255,255,255,.14) 82%, transparent);
}

/* Keep Block 1 stable when moving between steps. */
.instruction-step-content {
    width: 100%;
    height: 330px;
    min-height: 330px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
}
.instruction-step-content::-webkit-scrollbar { display: none; }
.instruction-content-blocks {
    min-height: 100%;
    align-content: center;
}
.instruction-content-blocks.has-media {
    grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
    gap: 30px;
}
.instruction-content-media img {
    max-height: 310px;
}
.instruction-content-info-column {
    width: 100%;
}

/* Heading + exactly the same naked chevrons as the Library carousel. */
.instruction-content-heading-row {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.instruction-content-heading-row .instruction-content-heading {
    min-width: 0;
    flex: 1 1 auto;
}
.instruction-step-arrows {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.instruction-step-arrow.redesign-games-arrow {
    width: 30px;
    min-width: 30px;
    height: 42px;
    padding-bottom: 3px;
    font-size: 36px;
}

/* Old Next button is intentionally retired. */
.instruction-step-footer,
.instruction-next-button { display: none !important; }

/* Block 2 title is centered and the video sits on the next row. */
.instruction-video-pane {
    flex-direction: column;
    gap: 14px;
}
.instruction-video-title {
    display: block !important;
    margin: 0;
    color: #fff;
    text-align: center;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
}
.instruction-video-frame {
    width: min(820px, 100%);
}
.instruction-video-player {
    max-height: 390px;
}

@media (max-width: 900px) {
    .instruction-modal-surface {
        width: min(100%, 680px);
        padding: 18px 16px 20px;
    }
    .instruction-modal-layout { padding-top: 22px; }
    .instruction-step-content {
        height: 420px;
        min-height: 420px;
    }
    .instruction-content-blocks.has-media,
    .instruction-content-blocks {
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
    }
    .instruction-content-media img { max-height: 250px; }
    .instruction-content-heading-row { gap: 10px; }
    .instruction-step-arrow.redesign-games-arrow {
        width: 28px;
        min-width: 28px;
        height: 38px;
        font-size: 32px;
    }
    .instruction-video-title { font-size: 18px; }
}

/* ===== Step 18: compact instruction navigation + strict modal scroll lock ===== */
html.instruction-modal-open,
body.instruction-modal-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

.instruction-modal {
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.instruction-modal-surface {
    overscroll-behavior: contain;
}

.instruction-step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
    overflow: visible;
}

.instruction-step-nav::before {
    content: "";
    flex: 0 0 66px;
    width: 66px;
}

.instruction-step-dots {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.instruction-step-dots::-webkit-scrollbar {
    display: none;
}

.instruction-step-nav > .instruction-step-arrows {
    flex: 0 0 66px;
    width: 66px;
    justify-content: flex-end;
    align-self: center;
}

.instruction-step-content {
    padding-top: 0;
}

.instruction-content-blocks,
.instruction-content-blocks.has-media {
    align-content: start !important;
}

.instruction-content-info-column,
.instruction-content-media-column {
    align-content: start;
}

@media (max-width: 900px) {
    .instruction-step-nav {
        justify-content: space-between;
        margin-bottom: 10px;
    }
    .instruction-step-nav::before {
        flex-basis: 60px;
        width: 60px;
    }
    .instruction-step-nav > .instruction-step-arrows {
        flex-basis: 60px;
        width: 60px;
    }
    .instruction-step-dots {
        justify-content: flex-start;
        gap: 8px;
    }
}


/* ===== Step 19: content-sized instruction modal + centered step arrows ===== */
.instruction-step-nav {
    justify-content: center !important;
    margin-bottom: 14px !important;
}
.instruction-step-nav::before {
    display: none !important;
    content: none !important;
}
.instruction-step-dots {
    flex: 0 1 auto !important;
    justify-content: center !important;
}
.instruction-step-nav > .instruction-step-arrows {
    display: none !important;
}

/* Block 1 follows its real content height; no reserved empty vertical space. */
.instruction-step-content {
    height: auto !important;
    min-height: 0 !important;
    max-height: min(52vh, 560px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 !important;
}
.instruction-content-blocks,
.instruction-content-blocks.has-media {
    min-height: 0 !important;
    height: auto !important;
    align-content: start !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.instruction-step-arrows-host {
    width: 100%;
    min-height: 42px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.instruction-step-arrows-host .instruction-step-arrows {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.instruction-step-arrows-host .instruction-step-arrow.redesign-games-arrow {
    width: 32px;
    min-width: 32px;
    height: 42px;
}

@media (max-width: 900px) {
    .instruction-step-nav {
        justify-content: flex-start !important;
        margin-bottom: 12px !important;
    }
    .instruction-step-dots {
        flex: 1 1 auto !important;
        justify-content: flex-start !important;
    }
    .instruction-step-content {
        height: auto !important;
        min-height: 0 !important;
        max-height: min(56dvh, 520px);
    }
    .instruction-step-arrows-host {
        margin-top: 12px;
    }
}

/* ===== Step 20: centered mobile steps + FAQ accordion + geo language prompt ===== */
@media (max-width: 900px) {
    .instruction-step-nav {
        justify-content: center !important;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .instruction-step-dots {
        flex: 0 0 auto !important;
        width: max-content;
        max-width: none;
        margin-inline: auto;
        justify-content: center !important;
    }
}

.faq-modal[hidden] { display: none !important; }
.faq-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: auto;
    background: rgba(3, 5, 12, .50);
    color: #fff;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overscroll-behavior: contain;
    touch-action: pan-y;
}
.faq-modal-surface {
    width: min(980px, calc(100vw - 40px));
    max-height: calc(100dvh - 40px);
    padding: 58px 28px 28px;
}
.faq-modal-list {
    display: grid;
    gap: 0;
}
.faq-accordion-item {
    border-bottom: 1px solid rgba(255,255,255,.10);
}
.faq-accordion-item:first-child {
    border-top: 1px solid rgba(255,255,255,.10);
}
.faq-accordion-trigger {
    width: 100%;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    box-shadow: none !important;
    text-align: left;
    cursor: pointer;
}
.faq-accordion-question {
    min-width: 0;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 850;
    overflow-wrap: anywhere;
}
.faq-accordion-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    background: center / 16px 16px no-repeat url('../images/arrow-niz.png');
    filter: invert(1);
    opacity: .82;
    transition: opacity .2s ease, transform .2s ease;
}
.faq-accordion-item.is-open .faq-accordion-icon {
    background-image: url('../images/arrow-up.png');
}
@media (hover: hover) and (pointer: fine) {
    .faq-accordion-trigger:hover .faq-accordion-question {
        color: #d92fff;
    }
    .faq-accordion-trigger:hover .faq-accordion-icon {
        opacity: 1;
        transform: scale(1.08);
    }
}
.faq-accordion-answer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .28s ease, opacity .22s ease;
}
.faq-accordion-item.is-open .faq-accordion-answer {
    grid-template-rows: 1fr;
    opacity: 1;
}
.faq-accordion-answer-inner {
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 0 4px;
    transition: padding .28s ease;
}
.faq-accordion-item.is-open .faq-accordion-answer-inner {
    padding: 4px 4px 24px;
}
.faq-accordion-answer-inner.has-media {
    grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
}
.faq-answer-media {
    min-width: 0;
}
.faq-answer-media img {
    display: block;
    width: 100%;
    max-height: 330px;
    object-fit: contain;
    border-radius: 14px;
}
.faq-answer-text {
    min-width: 0;
    color: #d6dae8;
    font-size: 16px;
    line-height: 1.62;
    font-weight: 650;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.faq-empty-state { min-height: 160px; }



/* ===== Step 24: mobile FAQ layout + compact language button ===== */
@media (max-width: 860px) {
    .faq-modal {
        padding: 12px;
    }

    .faq-modal-surface {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        min-width: 0;
        padding: 48px 14px 18px;
        overflow-x: hidden;
    }

    .faq-modal-list,
    .faq-accordion-item,
    .faq-accordion-answer,
    .faq-accordion-answer-inner,
    .faq-accordion-answer-inner.has-media,
    .faq-answer-media,
    .faq-answer-text {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .faq-accordion-answer-inner,
    .faq-accordion-answer-inner.has-media {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px;
        align-items: start;
    }

    .faq-answer-media img {
        width: 100%;
        max-width: 100%;
        max-height: 280px;
        object-fit: contain;
    }

    .faq-answer-text {
        overflow-wrap: break-word;
        word-break: normal;
        white-space: pre-wrap;
    }

    .redesign-language-switcher {
        right: 12px;
        bottom: 12px;
    }

    .redesign-language-toggle {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }

    .redesign-language-menu {
        bottom: 46px;
    }
}


/* ===== Step 25: strict buyer notice scroll lock ===== */
html.buyer-notice-open,
body.buyer-notice-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

.buyer-notice-modal {
    overscroll-behavior: contain;
    touch-action: none;
}

.buyer-notice-card {
    overscroll-behavior: contain;
}


/* ===== Step 31: mobile modal close-button clearance ===== */
@media (max-width: 860px) {
    /* Reserve a dedicated top area for the close control so it never crowds
       the step navigation or the first FAQ row. */
    .instruction-modal-surface {
        padding-top: 68px !important;
    }

    .instruction-modal-layout {
        padding-top: 0 !important;
    }

    .faq-modal-surface {
        padding-top: 68px !important;
    }

    .instruction-modal-close {
        top: 10px !important;
        right: 12px !important;
    }
}

/* ===== Step 32: mobile instruction content without nested scrolling ===== */
@media (max-width: 860px) {
    .instruction-step-content {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .instruction-content-blocks,
    .instruction-content-blocks.has-media {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        grid-template-columns: minmax(0, 1fr) !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .instruction-content-media-column,
    .instruction-content-info-column,
    .instruction-content-heading-row,
    .instruction-content-heading,
    .instruction-content-text,
    .instruction-content-link,
    .instruction-content-link-title {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .instruction-content-heading,
    .instruction-content-text,
    .instruction-content-link-title,
    .instruction-content-link a {
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .instruction-content-text {
        white-space: pre-wrap !important;
        overflow: visible !important;
    }

    .instruction-content-media,
    .instruction-content-media img {
        max-width: 100% !important;
    }
}
