/* Deep-space welcome surface. Solid declarations stay first for Edge 100. */
:root {
    --cjz-space: #020817;
    --cjz-space-panel: #07142e;
    --cjz-space-raised: #0b1f46;
    --cjz-blue: #79b7ff;
    --cjz-blue-light: #b9d9ff;
    --cjz-blue-strong: #0d49a3;
    --cjz-lemon: #f3ed1a;
    --cjz-lemon-light: #fff9a6;
    --cjz-white: #ffffff;
    --cjz-muted: #d7e7ff;
    --cjz-border: rgba(121, 183, 255, 0.36);
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #020817;
}

body.cjz-home {
    min-width: 320px;
    color: var(--cjz-white);
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    line-height: 1.5;
    background: #020817;
    filter: alpha(opacity=100);
    -moz-opacity: 1;
    -khtml-opacity: 1;
    opacity: 1 !important;
}

body.cjz-home,
body.cjz-home * {
    box-sizing: border-box;
}

/* The brand link is the welcome-page entry, so the redundant Home tab stays out of this header. */
body.cjz-home.home-header-shell .navItemHome,
body.cjz-home.home-header-shell .inavul [data-mobile-entry="home"] {
    display: none !important;
}

/* Keep the welcome brand anchored to the viewport edge and reserve its full slot for navigation. */
body.cjz-home.home-header-shell .loarea .wp {
    display: flex;
    align-items: center;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 240px !important;
    padding-right: 16px !important;
}

@supports (padding-left: clamp(1px, 2px, 3px)) {
    body.cjz-home.home-header-shell .loarea .wp {
        padding-left: clamp(240px, 15vw, 300px) !important;
        padding-right: clamp(16px, 2vw, 28px) !important;
    }
}

/* Three independent header zones: brand on the left, fluid navigation in the
 * middle, and controls pinned to the right edge. */
body.cjz-home.home-header-shell .nav {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center !important;
    overflow: hidden;
}

body.cjz-home.home-header-shell .navul {
    justify-content: center !important;
}

body.cjz-home.home-header-shell .loginArea {
    flex: 0 0 auto;
    margin-left: auto !important;
}

/* The welcome header is fluid at every viewport width. At medium widths the
 * original desktop links are replaced by the existing accessible drawer. */
@media screen and (max-width: 1240px) {
    body.cjz-home.home-header-shell .loarea .wp {
        padding-left: 0 !important;
        padding-right: 68px !important;
    }

    body.cjz-home.home-header-shell .nav {
        justify-content: flex-start !important;
        display: none !important;
    }

    body.cjz-home.home-header-shell .menubtn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        top: calc((var(--home-header-height, 60px) - 44px) / 2);
        right: max(12px, env(safe-area-inset-right));
    }

    body.cjz-home.home-header-shell .loginArea {
        margin-left: 0 !important;
        position: absolute;
        top: 50%;
        right: 60px;
        min-width: 0;
        max-width: calc(100% - clamp(170px, 24vw, 230px) - 76px);
        transform: translateY(-50%);
    }

    body.cjz-home.home-header-shell .loginArea .headerChannelBadge--785compact,
    body.cjz-home.home-header-shell .loginArea .headerFeedbackBadge--785compact,
    body.cjz-home.home-header-shell .loginArea .couponCodeBadge,
    body.cjz-home.home-header-shell .loginArea .headerAssetBadge,
    body.cjz-home.home-header-shell .loginArea .theme-toggle {
        display: none !important;
    }
}

@media screen and (max-width: 640px) {
    body.cjz-home.home-header-shell .loarea .wp {
        padding-left: 12px !important;
        padding-right: 64px !important;
    }

    body.cjz-home.home-header-shell .logo {
        width: clamp(142px, calc(100vw - 178px), 188px) !important;
    }

    body.cjz-home.home-header-shell .loginArea {
        right: 58px;
        max-width: calc(100% - 150px);
    }

    body.cjz-home.home-header-shell .loginArea .langSwitch {
        display: none !important;
    }
}

@media screen and (max-width: 480px) {
    body.cjz-home.home-header-shell .loginArea .headerContactCsBadge {
        display: none !important;
    }
}

button,
a {
    font: inherit;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.cjz-shell {
    position: relative;
    width: 100%;
    height: calc(100% - var(--home-header-height, 72px));
    min-height: calc(100vh - var(--home-header-height, 72px));
    overflow: hidden;
    isolation: isolate;
    background: #020817;
    touch-action: none;
}

.cjz-shell.is-cjz-dragging {
    cursor: grabbing;
    user-select: none;
}

.cjz-shell::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    background: rgba(2, 8, 23, 0.34);
    content: "";
    pointer-events: none;
}

.cjz-nebula {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: #020817;
    transform: translateZ(0);
    will-change: transform;
}

.cjz-static-sphere {
    position: absolute;
    right: -148px;
    bottom: -202px;
    z-index: 2;
    display: block;
    width: min(840px, 64vw);
    height: auto;
    opacity: 0.62;
    pointer-events: none;
    transform: translateZ(0);
    mix-blend-mode: screen;
}

.cjz-static-sphere img {
    display: block;
    width: 100%;
    height: auto;
}

@supports (-webkit-mask-image: radial-gradient(circle, #000, transparent)) {
    .cjz-static-sphere {
        opacity: 0.86;
        filter: brightness(1.12);
        -webkit-mask-image: radial-gradient(ellipse 68% 68% at 57% 58%, #000 0%, #000 48%, transparent 88%);
    }
}

@supports (mask-image: radial-gradient(circle, #000, transparent)) {
    .cjz-static-sphere {
        opacity: 0.86;
        filter: brightness(1.12);
        mask-image: radial-gradient(ellipse 68% 68% at 57% 58%, #000 0%, #000 48%, transparent 88%);
    }
}

.cjz-planet-stage {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    isolation: isolate;
    pointer-events: none;
    overflow: visible;
}

.cjz-planet-layer {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
    width: 0;
    height: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateZ(0);
    filter: none;
    opacity: 1;
    will-change: transform;
    backface-visibility: hidden;
}

.cjz-planet-texture-layer {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
    width: 0;
    height: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.cjz-planet-webgl-layer {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
    width: 0;
    height: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.cjz-noise {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent;
    opacity: 0.22;
    pointer-events: none;
}

.cjz-hero {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    pointer-events: none;
}

.cjz-hero::before {
    position: absolute;
    top: 18%;
    left: 50%;
    width: min(460px, 62vw);
    height: 1px;
    content: "";
    pointer-events: none;
    transform: translateX(-50%);
    background: rgba(121, 183, 255, 0.28);
}

.cjz-hero-copy {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    padding: 0 24px;
    text-align: center;
    pointer-events: auto;
    transform: scale(0.75);
    transform-origin: center center;
}

.cjz-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 29px;
    margin-bottom: 24px;
    padding: 6px 16px;
    border: 1px solid rgba(121, 183, 255, 0.44);
    border-radius: 999px;
    background: #07142e;
    color: var(--cjz-lemon-light);
    font-size: 12px;
    letter-spacing: 0.2em;
    line-height: 1.333333;
}

.cjz-hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0 0 32px;
    padding: 0;
    font-size: 0;
    color: var(--cjz-blue);
    letter-spacing: 0;
    line-height: 0;
    white-space: nowrap;
    text-shadow: none;
}

.cjz-hero-title-art {
    --cjz-title-group-gap: clamp(18px, 1.8vw, 34px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    max-width: 1060px;
    min-width: 0;
    gap: clamp(2px, 0.45vw, 8px);
    transform: scale(0.6);
    transform-origin: center center;
}

.cjz-title-char {
    display: block;
    width: auto;
    height: clamp(56px, 6.2vw, 102px);
    min-width: 0;
    max-width: 100%;
    flex: 0 1 auto;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.42));
}

.cjz-title-char-picture {
    display: block;
    width: auto;
    min-width: 0;
    max-width: 100%;
    flex: 0 1 auto;
}

.cjz-title-char-picture:nth-child(5) {
    margin-left: var(--cjz-title-group-gap);
}

.cjz-title-text-fallback {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@supports (background: radial-gradient(circle, #000, #fff)) {
    .cjz-shell::before {
        background: radial-gradient(circle at 50% 47%, rgba(5, 18, 47, 0.08) 0%, rgba(2, 8, 23, 0.38) 58%, rgba(0, 0, 0, 0.72) 100%);
    }

    .cjz-hero::before {
        background: linear-gradient(90deg, transparent 0%, rgba(121, 183, 255, 0.1) 24%, rgba(243, 237, 26, 0.76) 50%, rgba(121, 183, 255, 0.1) 76%, transparent 100%);
    }
}

.cjz-hero-description {
    max-width: 576px;
    margin: 0 auto 40px;
    color: var(--cjz-muted);
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.625;
}

.cjz-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.cjz-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 128px;
    min-height: 57px;
    padding: 16px 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.cjz-cta:hover,
.cjz-cta:focus-visible {
    transform: translateY(-2px);
}

.cjz-cta--primary {
    background: var(--cjz-blue-strong);
    color: #ffffff;
    box-shadow: 0 4px 25px rgba(13, 73, 163, 0.46);
}

.cjz-cta--primary:hover,
.cjz-cta--primary:focus-visible {
    background: #245dce;
    box-shadow: 0 6px 35px rgba(36, 93, 206, 0.62);
}

.cjz-cta--secondary {
    border: 1px solid rgba(121, 183, 255, 0.48);
    background: #07142e;
    color: var(--cjz-white);
    font-weight: 700;
}

.cjz-cta--secondary:hover,
.cjz-cta--secondary:focus-visible {
    border-color: var(--cjz-blue-light);
    background: #0b1f46;
}

.cjz-hero-footer {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.cjz-tagline {
    position: absolute;
    right: 0;
    bottom: 40px;
    left: 0;
    margin: 0;
    color: rgba(237, 245, 255, 0.62);
    font-size: 14px;
    letter-spacing: 2.8px;
    line-height: 20px;
    text-align: center;
}

.cjz-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.cjz-dialog-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.cjz-dialog-wrap {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.cjz-dialog-wrap.is-open {
    opacity: 1;
    pointer-events: auto;
}

.cjz-dialog {
    width: min(420px, 100%);
    padding: 28px 24px 24px;
    border: 1px solid rgba(121, 183, 255, 0.38);
    border-radius: 10px;
    background: #07142e;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.56), inset 0 1px rgba(255, 255, 255, 0.05);
    transform: translateY(8px) scale(0.98);
    transition: transform 0.2s ease;
}

.cjz-dialog-wrap.is-open .cjz-dialog {
    transform: translateY(0) scale(1);
}

.cjz-dialog-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border: 1px solid rgba(255, 249, 166, 0.62);
    border-radius: 50%;
    background: #132b55;
    color: var(--cjz-lemon-light);
}

.cjz-dialog h2 {
    margin: 0 0 10px;
    color: var(--cjz-white);
    font-family: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

.cjz-dialog p {
    margin: 0 0 24px;
    color: #dce7ff;
    font-size: 14px;
    line-height: 1.75;
    text-align: center;
}

.cjz-dialog-actions {
    display: flex;
    gap: 12px;
}

.cjz-dialog-actions button,
.cjz-dialog-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 4px;
    background: #132b55;
    color: var(--cjz-white);
    cursor: pointer;
    font-size: 14px;
}

.cjz-dialog-actions .is-primary {
    border-color: var(--cjz-lemon-light);
    background: var(--cjz-lemon);
    color: #07142e;
    font-weight: 700;
}

.cjz-dialog-actions button:hover,
.cjz-dialog-actions button:focus-visible,
.cjz-dialog-actions a:hover,
.cjz-dialog-actions a:focus-visible {
    border-color: var(--cjz-lemon-light);
    background: #204477;
}

.cjz-dialog-actions .is-primary:hover,
.cjz-dialog-actions .is-primary:focus-visible {
    background: #fff26b;
}

.cjz-toast {
    position: fixed;
    bottom: 72px;
    left: 50%;
    z-index: 40;
    max-width: min(420px, calc(100vw - 32px));
    padding: 10px 16px;
    border: 1px solid rgba(121, 183, 255, 0.52);
    border-radius: 4px;
    background: #07142e;
    color: var(--cjz-lemon-light);
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.cjz-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.cjz-home a:focus-visible,
.cjz-home button:focus-visible {
    outline: 2px solid var(--cjz-blue);
    outline-offset: 3px;
}

@supports (backdrop-filter: blur(10px)) {
    .cjz-eyebrow,
    .cjz-cta--secondary {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

@media (max-width: 640px) {
    .cjz-static-sphere {
        right: -156px;
        bottom: -178px;
        width: 440px;
        opacity: 0.72;
    }

    .cjz-hero {
        padding: 0;
    }

    .cjz-hero::before {
        top: 17%;
        width: 38%;
        min-width: 0;
    }

    .cjz-hero-copy {
        padding: 0 20px;
    }

    .cjz-eyebrow {
        margin-bottom: 20px;
        padding: 6px 14px;
        font-size: 11px;
        letter-spacing: 0.16em;
    }

    .cjz-hero-title {
        margin-bottom: 28px;
        line-height: 0;
    }

    .cjz-hero-title-art {
        --cjz-title-group-gap: clamp(8px, 2.4vw, 16px);
        width: 60%;
        max-width: 60%;
        gap: 2px;
        transform: none;
    }

    .cjz-title-char {
        width: 100%;
        height: auto;
    }

    .cjz-title-char-picture {
        width: calc((100% - 14px - var(--cjz-title-group-gap)) / 8);
    }

    .cjz-hero-description {
        max-width: 330px;
        margin-bottom: 34px;
        font-size: 16px;
        line-height: 1.65;
    }

    .cjz-desktop-break {
        display: inline;
    }

    .cjz-hero-actions {
        gap: 12px;
    }

    .cjz-cta {
        min-width: 124px;
        min-height: 54px;
        padding: 14px 24px;
        font-size: 15px;
    }

    .cjz-tagline {
        bottom: 74px;
        font-size: 12px;
        letter-spacing: 2.1px;
    }

    .cjz-dialog-wrap {
        padding: 16px;
    }

    .cjz-dialog {
        padding: 24px 18px 18px;
    }

    .cjz-dialog-actions {
        flex-direction: column-reverse;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cjz-cta,
    .cjz-dialog-wrap,
    .cjz-dialog,
    .cjz-toast {
        transition: none;
    }
}
