.cross-life-root {
    --cross-ink: #f7f1eb;
    --cross-muted: rgba(242, 238, 247, .72);
    --cross-line: rgba(255, 242, 221, .32);
    --cross-glass: rgba(26, 35, 61, .48);
    --cross-warm: #f2c8a9;
    --cross-cool: #b8cce7;
    --cross-transition-ms: 4000ms;
    --cross-safe-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
    --cross-safe-right: var(--safe-area-inset-right, env(safe-area-inset-right, 0px));
    --cross-safe-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
    --cross-safe-left: var(--safe-area-inset-left, env(safe-area-inset-left, 0px));
    position: absolute;
    inset: 0;
    z-index: 100180;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    color: var(--cross-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", sans-serif;
    transition: opacity .28s ease, visibility .28s ease;
    -webkit-tap-highlight-color: transparent;
}

.cross-life-root.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.cross-life-root,
.cross-life-root * {
    box-sizing: border-box;
}

.cross-life-root button,
.cross-life-root select,
.cross-life-root input {
    font: inherit;
}

.cross-life-screen {
    position: absolute;
    inset: 0;
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    outline: none;
    isolation: isolate;
    background: #202943;
    overscroll-behavior: contain;
}

.cross-life-art,
.cross-life-vignette,
.cross-life-fog,
.cross-life-cloud,
.cross-life-door-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cross-life-art {
    z-index: -5;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    transform: scale(1.015);
}

.cross-life-art--home {
    background-image: url("assets/cross-life-home.webp");
}

.cross-life-art--door {
    background-image: url("assets/cross-life-door.webp");
}

.cross-life-art--blur {
    transform: scale(1.09);
    filter: blur(8px) saturate(.72) brightness(.72);
}

.cross-life-vignette {
    z-index: -3;
    background:
        linear-gradient(180deg, rgba(15, 23, 44, .66) 0%, rgba(25, 33, 57, .08) 28%, rgba(20, 28, 49, .06) 52%, rgba(11, 18, 35, .78) 100%),
        radial-gradient(ellipse at 50% 49%, transparent 28%, rgba(13, 20, 38, .4) 100%);
}

.cross-life-homebar,
.cross-life-topbar {
    position: relative;
    z-index: 12;
    width: 100%;
    min-height: 62px;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
    padding: calc(9px + var(--cross-safe-top)) calc(14px + var(--cross-safe-right)) 9px calc(14px + var(--cross-safe-left));
}

.cross-life-homebar {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(18, 27, 48, .56), transparent);
}

.cross-life-topbar {
    border-bottom: 1px solid rgba(255, 246, 231, .16);
    background: linear-gradient(180deg, rgba(22, 31, 53, .68), rgba(22, 31, 53, .24));
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    backdrop-filter: blur(14px) saturate(1.08);
}

.cross-life-icon-btn,
.cross-life-transition-back {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid rgba(255, 244, 225, .32);
    border-radius: 50%;
    padding: 0;
    display: grid;
    place-items: center;
    color: #fff8ef;
    background: rgba(27, 37, 61, .36);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 24px rgba(9, 16, 33, .16);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: pointer;
    touch-action: manipulation;
}

.cross-life-icon-btn > span:first-child,
.cross-life-transition-back > span:first-child {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    line-height: 1;
    transform: translateY(-1px);
}

.cross-life-icon-btn--settings > span:first-child {
    font-size: 19px;
    transform: none;
}

.cross-life-icon-btn:active,
.cross-life-transition-back:active {
    transform: scale(.93);
    background: rgba(255, 242, 222, .18);
}

.cross-life-topbar-title {
    overflow: hidden;
    text-align: center;
    color: #fff8ef;
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .12em;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-shadow: 0 2px 16px rgba(14, 22, 41, .45);
}

.cross-life-home-content {
    position: relative;
    z-index: 4;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 3vh calc(18px + var(--cross-safe-right)) calc(18px + var(--cross-safe-bottom)) calc(18px + var(--cross-safe-left));
}

.cross-life-heading {
    width: 100%;
    text-align: center;
    text-shadow: 0 3px 22px rgba(17, 26, 47, .72);
}

.cross-life-kicker {
    margin: 0 0 5px;
    color: rgba(255, 245, 230, .7);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 9px;
    letter-spacing: .34em;
}

.cross-life-heading h1 {
    margin: 0;
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: clamp(34px, 10vw, 48px);
    font-weight: 500;
    letter-spacing: .12em;
    text-indent: .12em;
}

.cross-life-heading > p:last-child {
    margin: 8px 0 0;
    color: rgba(255, 248, 239, .78);
    font-family: "Kaiti SC", "STKaiti", "Songti SC", serif;
    font-size: 12px;
    letter-spacing: .08em;
}

.cross-life-choice-wrap {
    width: min(100%, 430px);
    margin: auto auto 1vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cross-life-choice-line {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 0 6px;
    color: rgba(255, 247, 236, .68);
    font-family: "Kaiti SC", "STKaiti", serif;
    font-size: 10px;
    letter-spacing: .12em;
}

.cross-life-choice-line span {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 242, 222, .42));
}

.cross-life-choice-line span:last-child {
    transform: scaleX(-1);
}

.cross-life-choice-line i {
    font-style: normal;
}

.cross-life-choice {
    position: relative;
    width: 100%;
    min-height: 74px;
    border: 1px solid rgba(255, 245, 229, .32);
    border-radius: 22px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    text-align: left;
    color: #fffaf4;
    background: linear-gradient(115deg, rgba(49, 63, 90, .58), rgba(27, 37, 63, .34));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 12px 34px rgba(9, 16, 33, .2);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    backdrop-filter: blur(14px) saturate(1.08);
    cursor: pointer;
    touch-action: manipulation;
}

.cross-life-choice::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .72;
    pointer-events: none;
}

.cross-life-choice--cool::before {
    background: radial-gradient(circle at 10% 50%, rgba(168, 205, 235, .28), transparent 34%);
}

.cross-life-choice--warm::before {
    background: radial-gradient(circle at 12% 50%, rgba(244, 190, 151, .28), transparent 36%);
}

.cross-life-choice > * {
    position: relative;
    z-index: 1;
}

.cross-life-choice-index {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 245, 231, .36);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: rgba(255, 249, 240, .88);
    font-family: "Songti SC", "STSong", serif;
    font-size: 13px;
    background: rgba(255, 255, 255, .08);
}

.cross-life-choice strong {
    display: block;
    margin-bottom: 4px;
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .08em;
}

.cross-life-choice small {
    display: block;
    color: rgba(250, 246, 241, .68);
    font-size: 10.5px;
    line-height: 1.45;
}

.cross-life-choice b,
.cross-life-persona-card b,
.cross-life-char-card > b {
    font-family: Georgia, serif;
    font-size: 26px;
    font-weight: 400;
}

.cross-life-choice:active,
.cross-life-persona-card:active,
.cross-life-char-card:active,
.cross-life-continue:active {
    transform: scale(.982);
}

.cross-life-choice:disabled {
    cursor: default;
    opacity: .48;
}

.cross-life-continue {
    width: calc(100% - 20px);
    min-height: 50px;
    margin: 2px auto 0;
    border: 1px solid rgba(255, 242, 222, .24);
    border-radius: 17px;
    padding: 9px 13px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 9px;
    text-align: left;
    color: #fff8ef;
    background: rgba(31, 41, 65, .42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.cross-life-continue span {
    grid-row: 1 / span 2;
    align-self: center;
    color: rgba(255, 240, 219, .72);
    font-size: 9px;
    letter-spacing: .08em;
    writing-mode: vertical-rl;
}

.cross-life-continue strong {
    font-family: "Songti SC", "STSong", serif;
    font-size: 13px;
    letter-spacing: .06em;
}

.cross-life-continue i {
    color: rgba(248, 243, 238, .6);
    font-size: 9.5px;
    font-style: normal;
}

.cross-life-home-foot {
    position: relative;
    z-index: 4;
    flex: 0 0 auto;
    margin: 0;
    padding: 0 calc(16px + var(--cross-safe-right)) calc(12px + var(--cross-safe-bottom)) calc(16px + var(--cross-safe-left));
    text-align: center;
    color: rgba(246, 240, 235, .42);
    font-size: 9px;
    letter-spacing: .06em;
}

.cross-life-warning {
    border: 1px solid rgba(255, 218, 183, .38);
    border-radius: 16px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 10px;
    color: #fff5e8;
    background: rgba(83, 57, 54, .6);
    box-shadow: 0 8px 28px rgba(20, 19, 28, .18);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.cross-life-warning strong {
    font-size: 12px;
}

.cross-life-warning span {
    grid-column: 1;
    color: rgba(255, 242, 226, .7);
    font-size: 9.5px;
    line-height: 1.45;
}

.cross-life-warning button,
.cross-life-empty button,
.cross-life-transition-error button {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    border: 1px solid rgba(255, 238, 218, .32);
    border-radius: 999px;
    padding: 7px 10px;
    color: #fff7ed;
    background: rgba(255, 255, 255, .09);
    font-size: 10px;
    cursor: pointer;
}

.cross-life-fog {
    z-index: 2;
    inset: auto -34% -13%;
    width: 168%;
    height: 34%;
    border-radius: 50%;
    opacity: .48;
    filter: blur(22px);
    background:
        radial-gradient(ellipse at 18% 54%, rgba(223, 231, 244, .82), transparent 28%),
        radial-gradient(ellipse at 52% 36%, rgba(211, 221, 240, .7), transparent 33%),
        radial-gradient(ellipse at 84% 62%, rgba(238, 224, 231, .66), transparent 29%);
    animation: crossFogDrift 12s ease-in-out infinite alternate;
}

.cross-life-fog--two {
    bottom: 18%;
    height: 20%;
    opacity: .23;
    animation-duration: 16s;
    animation-direction: alternate-reverse;
}

.cross-life-no-fog .cross-life-fog,
.cross-life-no-fog .cross-life-cloud {
    display: none;
}

.cross-life-picker::after,
.cross-life-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(180deg, rgba(24, 34, 58, .48), rgba(19, 28, 50, .84));
}

.cross-life-picker-main {
    position: relative;
    z-index: 3;
    min-height: 0;
    flex: 1 1 auto;
    overflow: auto;
    padding: 18px calc(16px + var(--cross-safe-right)) calc(28px + var(--cross-safe-bottom)) calc(16px + var(--cross-safe-left));
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cross-life-picker-main::-webkit-scrollbar {
    display: none;
}

.cross-life-picker-heading {
    width: min(100%, 480px);
    margin: 0 auto 16px;
    padding: 2px 4px 0;
}

.cross-life-picker-heading > span {
    display: inline-block;
    margin-bottom: 7px;
    border: 1px solid rgba(255, 239, 217, .26);
    border-radius: 999px;
    padding: 3px 9px;
    color: rgba(255, 242, 224, .72);
    background: rgba(255, 255, 255, .06);
    font-size: 9px;
    letter-spacing: .12em;
}

.cross-life-picker-heading h2 {
    margin: 0;
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: .06em;
}

.cross-life-picker-heading p {
    margin: 8px 0 0;
    color: var(--cross-muted);
    font-size: 11px;
    line-height: 1.65;
}

.cross-life-list {
    width: min(100%, 480px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cross-life-persona-card,
.cross-life-char-card {
    width: 100%;
    min-height: 78px;
    border: 1px solid rgba(255, 244, 228, .26);
    border-radius: 22px;
    padding: 11px 13px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    text-align: left;
    color: #fff9f1;
    background: linear-gradient(120deg, rgba(59, 71, 98, .6), rgba(31, 42, 68, .42));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 12px 30px rgba(9, 16, 33, .16);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    cursor: pointer;
    touch-action: manipulation;
}

.cross-life-persona-card strong,
.cross-life-char-card strong {
    display: block;
    overflow: hidden;
    font-family: "Songti SC", "STSong", serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .04em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cross-life-persona-card small,
.cross-life-char-card small {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: rgba(246, 241, 238, .58);
    font-size: 10px;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cross-life-avatar {
    position: relative;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 244, 228, .4);
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff8ef;
    background: linear-gradient(145deg, rgba(177, 198, 226, .68), rgba(86, 105, 143, .6));
    box-shadow: 0 6px 18px rgba(13, 21, 39, .24), inset 0 1px 0 rgba(255, 255, 255, .32);
}

.cross-life-avatar--user {
    background: linear-gradient(145deg, rgba(235, 195, 173, .78), rgba(148, 112, 122, .62));
}

.cross-life-avatar-fallback {
    font-family: "Songti SC", "STSong", serif;
    font-size: 18px;
}

.cross-life-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.cross-life-avatar img.is-broken {
    display: none;
}

.cross-life-char-card {
    position: relative;
}

.cross-life-char-light {
    position: absolute;
    right: -18px;
    bottom: -24px;
    width: 90px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 196, 155, .24), transparent 68%);
    pointer-events: none;
}

.cross-life-empty {
    border: 1px solid rgba(255, 243, 226, .22);
    border-radius: 24px;
    padding: 28px 22px;
    text-align: center;
    color: #fff8ef;
    background: rgba(37, 48, 75, .5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 14px 34px rgba(10, 17, 34, .17);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.cross-life-empty-mark {
    width: 46px;
    height: 46px;
    margin: 0 auto 12px;
    border: 1px solid rgba(255, 241, 218, .34);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: rgba(255, 236, 211, .8);
    background: rgba(255, 255, 255, .06);
    font-size: 21px;
}

.cross-life-empty h3 {
    margin: 0 0 7px;
    font-family: "Songti SC", "STSong", serif;
    font-size: 17px;
    font-weight: 500;
}

.cross-life-empty p {
    margin: 0;
    color: rgba(246, 241, 237, .64);
    font-size: 11px;
    line-height: 1.65;
}

.cross-life-empty button {
    grid-column: auto;
    grid-row: auto;
    margin-top: 14px;
}

.cross-life-loading-card {
    position: relative;
    z-index: 3;
    width: min(calc(100% - 48px), 340px);
    margin: auto;
    border: 1px solid rgba(255, 244, 226, .24);
    border-radius: 26px;
    padding: 26px 22px;
    text-align: center;
    color: #fff8ef;
    background: rgba(34, 45, 73, .52);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.cross-life-loading-card > span {
    width: 28px;
    height: 28px;
    margin: 0 auto 14px;
    border: 2px solid rgba(255, 244, 226, .18);
    border-top-color: rgba(255, 239, 216, .86);
    border-radius: 50%;
    display: block;
    animation: crossSpin .9s linear infinite;
}

.cross-life-loading-card h2 {
    margin: 0;
    font-family: "Songti SC", "STSong", serif;
    font-size: 17px;
    font-weight: 500;
}

.cross-life-loading-card p {
    margin: 8px 0 0;
    color: rgba(247, 241, 235, .6);
    font-size: 10px;
}

.cross-life-transition .cross-life-art--door {
    transform: scale(1.22);
    filter: saturate(.72) brightness(.72) blur(4px);
    animation: crossDoorPush var(--cross-transition-ms) cubic-bezier(.2, .7, .2, 1) forwards;
}

.cross-life-transition::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: radial-gradient(circle at 50% 57%, rgba(255, 224, 190, .08), rgba(28, 39, 66, .35) 62%, rgba(14, 22, 42, .58));
}

.cross-life-cloud {
    z-index: 2;
    inset: -15% -65%;
    opacity: .76;
    filter: blur(22px);
    background:
        radial-gradient(ellipse at 18% 42%, rgba(225, 231, 240, .92), transparent 26%),
        radial-gradient(ellipse at 48% 60%, rgba(203, 215, 232, .88), transparent 29%),
        radial-gradient(ellipse at 78% 40%, rgba(234, 223, 231, .82), transparent 26%);
    animation: crossCloudPass var(--cross-transition-ms) ease-in-out forwards;
}

.cross-life-cloud--b {
    transform: translateX(28%);
    opacity: .55;
    animation-name: crossCloudPassReverse;
}

.cross-life-cloud--c {
    transform: scale(.72);
    opacity: .38;
    animation-delay: calc(var(--cross-transition-ms) * .08);
}

.cross-life-transition-back {
    position: absolute;
    z-index: 9;
    top: calc(10px + var(--cross-safe-top));
    left: calc(14px + var(--cross-safe-left));
}

.cross-life-transition-copy {
    position: relative;
    z-index: 7;
    width: min(calc(100% - 42px), 370px);
    margin: auto auto 8vh;
    border: 1px solid rgba(255, 244, 226, .24);
    border-radius: 24px;
    padding: 17px 18px;
    text-align: center;
    color: #fff9f1;
    background: rgba(31, 42, 69, .42);
    box-shadow: 0 14px 38px rgba(8, 15, 31, .18), inset 0 1px 0 rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

.cross-life-transition-copy > p {
    margin: 0 0 5px;
    color: rgba(255, 239, 216, .72);
    font-size: 9px;
    letter-spacing: .14em;
}

.cross-life-transition-copy h2 {
    margin: 0;
    font-family: "Songti SC", "STSong", serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .04em;
}

.cross-life-transition-copy > span {
    display: block;
    margin-top: 8px;
    color: rgba(247, 241, 235, .52);
    font-size: 9px;
}

.cross-life-progress {
    width: 76%;
    height: 2px;
    margin: 13px auto 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
}

.cross-life-progress i {
    width: 100%;
    height: 100%;
    display: block;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, #bdd1e8, #f4c6a2, #fff4df);
    animation: crossProgress var(--cross-transition-ms) linear forwards;
}

.cross-life-transition.is-paused .cross-life-art,
.cross-life-transition.is-paused .cross-life-cloud,
.cross-life-transition.is-paused .cross-life-progress i {
    animation-play-state: paused;
}

.cross-life-transition-error p {
    margin: 8px 0 0;
    color: rgba(255, 243, 229, .68);
    font-size: 10.5px;
    line-height: 1.55;
}

.cross-life-transition-error button {
    grid-column: auto;
    grid-row: auto;
    margin-top: 13px;
}

.cross-life-door .cross-life-art--door {
    filter: saturate(.92) brightness(.86);
}

.cross-life-door::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(180deg, rgba(24, 34, 59, .44), transparent 28%, transparent 64%, rgba(17, 25, 45, .62));
}

.cross-life-door-glow {
    z-index: -1;
    background: radial-gradient(ellipse at 53% 59%, rgba(255, 218, 178, .14), transparent 28%);
    animation: crossGlow 3.8s ease-in-out infinite alternate;
}

.cross-life-door-main {
    position: relative;
    z-index: 4;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px calc(18px + var(--cross-safe-right)) calc(5vh + var(--cross-safe-bottom)) calc(18px + var(--cross-safe-left));
}

.cross-life-arrival {
    width: min(100%, 420px);
    border: 1px solid rgba(255, 244, 227, .26);
    border-radius: 24px;
    padding: 16px 18px;
    text-align: center;
    color: #fff9f1;
    background: rgba(31, 42, 68, .42);
    box-shadow: 0 16px 38px rgba(8, 15, 30, .2), inset 0 1px 0 rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

.cross-life-arrival > span {
    display: inline-block;
    margin-bottom: 7px;
    border: 1px solid rgba(255, 230, 197, .28);
    border-radius: 999px;
    padding: 3px 9px;
    color: rgba(255, 238, 216, .72);
    font-size: 8.5px;
    letter-spacing: .1em;
}

.cross-life-arrival h2 {
    margin: 0;
    font-family: "Songti SC", "STSong", serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .04em;
}

.cross-life-arrival p {
    margin: 8px 0 0;
    color: rgba(247, 241, 236, .62);
    font-size: 10px;
    line-height: 1.6;
}

.cross-life-modal {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: calc(18px + var(--cross-safe-top)) calc(14px + var(--cross-safe-right)) calc(18px + var(--cross-safe-bottom)) calc(14px + var(--cross-safe-left));
    background: rgba(14, 21, 38, .44);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.cross-life-settings {
    width: min(100%, 430px);
    max-height: min(78%, 560px);
    overflow: auto;
    border: 1px solid rgba(255, 244, 228, .34);
    border-radius: 28px;
    padding: 18px;
    color: #fff8ef;
    background: linear-gradient(145deg, rgba(52, 65, 92, .94), rgba(29, 40, 66, .96));
    box-shadow: 0 22px 58px rgba(7, 13, 28, .34), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.cross-life-settings header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.cross-life-settings header span {
    color: rgba(255, 237, 213, .58);
    font-size: 8px;
    letter-spacing: .14em;
}

.cross-life-settings h2 {
    margin: 2px 0 0;
    font-family: "Songti SC", "STSong", serif;
    font-size: 21px;
    font-weight: 500;
}

.cross-life-settings header button {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 243, 226, .26);
    border-radius: 50%;
    color: #fff8ef;
    background: rgba(255, 255, 255, .06);
    font-size: 22px;
    cursor: pointer;
}

.cross-life-setting-row {
    min-height: 70px;
    border-top: 1px solid rgba(255, 244, 229, .12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
}

.cross-life-setting-row strong {
    display: block;
    font-family: "Songti SC", "STSong", serif;
    font-size: 13px;
    font-weight: 500;
}

.cross-life-setting-row small {
    display: block;
    max-width: 250px;
    margin-top: 4px;
    color: rgba(247, 241, 236, .52);
    font-size: 9px;
    line-height: 1.45;
}

.cross-life-setting-row input {
    width: 42px;
    height: 24px;
    flex: 0 0 auto;
    accent-color: #e9b992;
}

.cross-life-setting-row select {
    min-width: 78px;
    border: 1px solid rgba(255, 243, 226, .25);
    border-radius: 12px;
    padding: 8px 9px;
    color: #fff8ef;
    background: #34415f;
    outline: none;
}

.cross-life-storage-card {
    border: 1px solid rgba(255, 244, 228, .16);
    border-radius: 16px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .04);
}

.cross-life-storage-card > span {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #b8d8c7;
    box-shadow: 0 0 10px rgba(184, 216, 199, .7);
}

.cross-life-storage-card > span.is-bad {
    background: #e2a59d;
    box-shadow: 0 0 10px rgba(226, 165, 157, .66);
}

.cross-life-storage-card strong,
.cross-life-storage-card small {
    display: block;
}

.cross-life-storage-card strong {
    font-size: 11px;
}

.cross-life-storage-card small {
    margin-top: 3px;
    color: rgba(247, 241, 235, .48);
    font-size: 8.5px;
}

.cross-life-settings-note {
    margin: 10px 2px 0;
    color: rgba(247, 241, 235, .46);
    font-size: 8.5px;
    line-height: 1.5;
}

.cross-life-root button:focus-visible,
.cross-life-root select:focus-visible,
.cross-life-root input:focus-visible {
    outline: 2px solid rgba(255, 236, 207, .9);
    outline-offset: 2px;
}

@keyframes crossFogDrift {
    from { transform: translate3d(-4%, 0, 0) scale(1); }
    to { transform: translate3d(5%, -7%, 0) scale(1.06); }
}

@keyframes crossSpin {
    to { transform: rotate(360deg); }
}

@keyframes crossDoorPush {
    0% { transform: scale(1.24) translateY(4%); filter: saturate(.65) brightness(.62) blur(6px); }
    62% { filter: saturate(.78) brightness(.72) blur(2px); }
    100% { transform: scale(1.025) translateY(0); filter: saturate(.92) brightness(.86) blur(0); }
}

@keyframes crossCloudPass {
    0% { transform: translate3d(-14%, 8%, 0) scale(1.2); opacity: .9; }
    55% { opacity: .68; }
    100% { transform: translate3d(56%, -12%, 0) scale(.88); opacity: 0; }
}

@keyframes crossCloudPassReverse {
    0% { transform: translate3d(22%, -5%, 0) scale(1.1); opacity: .75; }
    100% { transform: translate3d(-56%, 13%, 0) scale(.82); opacity: 0; }
}

@keyframes crossProgress {
    to { transform: scaleX(1); }
}

@keyframes crossGlow {
    from { opacity: .55; transform: scale(.96); }
    to { opacity: 1; transform: scale(1.04); }
}

@media (max-width: 360px) {
    .cross-life-home-content { padding-right: calc(13px + var(--cross-safe-right)); padding-left: calc(13px + var(--cross-safe-left)); }
    .cross-life-choice { min-height: 68px; padding: 10px 11px; }
    .cross-life-choice strong { font-size: 16px; }
    .cross-life-choice small { font-size: 9.5px; }
    .cross-life-picker-main { padding-right: calc(12px + var(--cross-safe-right)); padding-left: calc(12px + var(--cross-safe-left)); }
}

@media (max-height: 700px) {
    .cross-life-homebar,
    .cross-life-topbar { min-height: 56px; padding-top: calc(6px + var(--cross-safe-top)); padding-bottom: 6px; }
    .cross-life-icon-btn { width: 44px; height: 44px; }
    .cross-life-home-content { padding-top: 1vh; }
    .cross-life-heading h1 { font-size: 32px; }
    .cross-life-heading > p:last-child { margin-top: 4px; }
    .cross-life-choice-wrap { gap: 7px; margin-bottom: 0; }
    .cross-life-choice { min-height: 62px; padding-top: 8px; padding-bottom: 8px; }
    .cross-life-choice strong { margin-bottom: 2px; font-size: 16px; }
    .cross-life-home-foot { padding-bottom: calc(7px + var(--cross-safe-bottom)); }
    .cross-life-picker-main { padding-top: 12px; }
    .cross-life-picker-heading { margin-bottom: 11px; }
}

@media (orientation: landscape) and (max-height: 560px) {
    .cross-life-home-content {
        display: grid;
        grid-template-columns: minmax(180px, .72fr) minmax(280px, 1.28fr);
        align-items: center;
        gap: 18px;
        padding-top: 8px;
    }
    .cross-life-choice-wrap { margin: auto; }
    .cross-life-home-foot { display: none; }
    .cross-life-picker-main { padding-bottom: calc(14px + var(--cross-safe-bottom)); }
    .cross-life-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .cross-life-root,
    .cross-life-root *,
    .cross-life-root *::before,
    .cross-life-root *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
