
.intro-panel.is-page {
    --page-top: var(--sp-t, 13vh);
    padding: 0;
    display: block;
    overflow: hidden;
    align-items: stretch;
}


.self {
    --self-ink: #e8f1ff;
    --self-dim: rgba(220, 235, 255, .62);
    --self-line: rgba(160, 205, 255, .20);
    --self-glass: rgba(6, 12, 24, .58);
    --self-accent: #8fe6ff;
    --self-accent2: #ffcf5c;

    --self-skin-empty: rgba(255, 205, 70, .16);
    --self-skin-empty-edge: rgba(255, 213, 90, .38);
    --self-skin: #ffcc4d;
    --self-skin-edge: #c98a1e;

    --self-face-d: clamp(250px, 56vmin, 430px);

    position: absolute;
    inset: var(--page-top, 0px) var(--sp-x, 5vw) var(--sp-b, 7.5vh) var(--sp-x, 5vw);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
}

.self>* {
    opacity: 0;
}

.self.is-live>* {
    opacity: 1;
    transition: opacity .55s ease;
}

.self.is-live .self-glow {
    transition: opacity .9s ease;
}

.self.is-drag {
    cursor: grabbing;
}

.self {
    --self-glow-warm: rgba(255, 204, 77, .10);
    --self-glow-warm2: rgba(255, 207, 92, .06);
    --self-glow-cool: rgba(143, 230, 255, .07);
    --self-glow-cool2: rgba(143, 230, 255, .05);
}

.self-glow {
    position: absolute;
    inset: -10%;
    pointer-events: none;
    background:
        radial-gradient(52% 44% at 50% 54%, var(--self-glow-warm), transparent 70%),
        radial-gradient(40% 30% at 16% 16%, var(--self-glow-warm2), transparent 72%),
        radial-gradient(40% 30% at 86% 22%, var(--self-glow-cool), transparent 72%),
        radial-gradient(50% 36% at 50% 100%, var(--self-glow-cool2), transparent 72%);
}

.self-deco {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.self {
    --self-deco-line: rgba(160, 220, 255, .50);
    --self-deco-tick: rgba(160, 220, 255, .42);
    --self-deco-star: rgba(190, 232, 255, .55);
    --self-deco-core: rgba(226, 246, 255, .9);
    --self-scan-a: #eafcff;
    --self-scan-b: #ffffff;
    --self-scan-glow: rgba(143, 230, 255, .85);
    --self-scan-glow2: rgba(143, 230, 255, .45);
    --self-scan-tail: rgba(143, 230, 255, .18);
    --self-flash: rgba(255, 255, 255, .85);
    --self-flash2: rgba(143, 230, 255, .25);
    --self-step: rgba(206, 228, 255, .55);
    --self-hl: rgba(143, 230, 255, .10);
    --self-hl-hi: rgba(143, 230, 255, .22);
    --self-shadow-fill: rgba(0, 0, 0, .5);
}

.self-deco circle,
.self-deco line,
.self-deco path {
    fill: none;
    stroke: var(--self-deco-line);
    stroke-width: 2;
}

.self-deco .deco-ring {
    transform-origin: center;
    animation: self-spin var(--spin, 60s) linear infinite;
    opacity: .72;
    stroke-width: 2.6;
}

.self-deco .deco-ring--rev {
    animation-direction: reverse;
    opacity: .5;
    stroke-width: 2;
}

@keyframes self-spin {
    to {
        transform: rotate(360deg);
    }
}

.self-deco .deco-tick {
    stroke: var(--self-deco-tick);
    stroke-width: 1.8;
}

.self-deco .deco-star {
    stroke: var(--self-deco-star);
    animation: self-twinkle var(--tw, 3s) ease-in-out var(--tw-d, 0s) infinite;
}

.self-deco .deco-star__core {
    fill: var(--self-deco-core);
    stroke: none;
}

@keyframes self-twinkle {

    0%,
    100% {
        opacity: .35;
        transform: scale(.86) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.06) rotate(18deg);
    }
}

.self-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    top: 0;
    pointer-events: none;
    z-index: 5;
    animation: self-sweep 16s cubic-bezier(.45, .05, .55, .95) infinite;
}

.self-scan__line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--self-scan-a) 12%, var(--self-scan-b) 50%, var(--self-scan-a) 88%, transparent);
    box-shadow: 0 0 10px var(--self-scan-glow);
}

.self-scan__line::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1px;
    height: 30px;
    background: linear-gradient(to top, var(--self-scan-tail), transparent);
}

@keyframes self-sweep {

    0% {
        top: 2%;
    }

    42% {
        top: 92%;
    }

    50% {
        top: 92%;
    }

    92% {
        top: 2%;
    }

    100% {
        top: 2%;
    }
}

.self-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    opacity: .05;
    background-image:
        repeating-linear-gradient(to bottom, rgba(255, 255, 255, .5) 0 1px, transparent 1px 3px);
    mix-blend-mode: overlay;
}

.self-head {
    position: absolute;
    left: 0;
    top: 0;
    max-width: min(34%, 420px);
    pointer-events: none;
    z-index: 6;
}

.self-kicker {
    display: block;
    font-family: "Alpha Sector", ui-monospace, Consolas, monospace;
    font-size: clamp(1.6rem, 3.4vw, 2.8rem);
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1.1;
    color: var(--self-ink);
}

.self-kicker::after {
    content: "PIECES";
    display: block;
    margin-top: 3px;
    font-size: .30em;
    line-height: 1.6;
    letter-spacing: .34em;
    color: var(--self-dim);
}

.self-lead {
    margin: clamp(6px, 1.4vh, 16px) 0 0;
    font-size: clamp(1rem, 1.5vw, 1.45rem);
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: .02em;
    color: var(--self-ink);
}

.self-field {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.self-pod {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    width: clamp(40px, 5.6vmin, 62px);
    height: clamp(40px, 5.6vmin, 62px);
    margin: calc(clamp(40px, 5.6vmin, 62px) / -2) 0 0 calc(clamp(40px, 5.6vmin, 62px) / -2);
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: inherit;
    cursor: pointer;
    pointer-events: auto;
    touch-action: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate3d(0, 0, 0) rotate(-8deg);
    animation: self-wob var(--wob, 3s) ease-in-out var(--wob-d, 0s) infinite;
    transition: filter .25s ease;
    will-change: transform;
}

.self-pod__glyph {
    font-size: clamp(26px, 3.8vmin, 42px);
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .5));
    font-variant-emoji: emoji;
}

.self-pod:hover .self-pod__glyph,
.self-pod:focus-visible .self-pod__glyph {
    filter: drop-shadow(0 0 10px var(--self-scan-glow2, rgba(143, 230, 255, .45))) drop-shadow(0 4px 12px rgba(0, 0, 0, .5));
}

.self-pod:focus-visible {
    outline: 2px solid var(--self-accent);
    outline-offset: 2px;
}

@keyframes self-wob {
    0% {
        transform: translate3d(0, -6px, 0) rotate(-8deg) scale(1);
    }

    50% {
        transform: translate3d(4px, 6px, 0) rotate(7deg) scale(1.05);
    }

    100% {
        transform: translate3d(0, -6px, 0) rotate(-8deg) scale(1);
    }
}

.self-pod.is-placed {
    position: fixed;
    left: 0;
    top: 0;
    width: calc(var(--hit, 110px) / var(--tu, 1));
    height: calc(var(--hit, 110px) / var(--tu, 1));
    margin: -54px 0 0 -54px;
    transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1.5);
    animation: none;
    z-index: 40;
    cursor: pointer;
    transform-origin: center center;
    transition: none;
}

.self-pod.is-flying {
    transition: transform .46s cubic-bezier(.22, .9, .24, 1);
    transform: translate3d(calc(var(--x, 0px) + var(--fly-x, 0px)),
            calc(var(--y, 0px) + var(--fly-y, 0px)), 0) scale(var(--tu, 1)) rotate(var(--tr, 0deg));
}

.self-pod.is-flown {
    transform: translate3d(var(--tx, 160px), var(--ty, 150px), 0) scale(var(--tu, 1)) rotate(var(--tr, 0deg));
    z-index: 12;
}

.self-pod.is-placed:not(.is-flying):not(.is-flown) {
    opacity: 0;
}

.self-shot {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 90;
    font-size: clamp(30px, 4.4vmin, 48px);
    line-height: 1;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1.15) rotate(8deg);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55));
    font-variant-emoji: emoji;
}

.self-shot.is-hot {
    transform: translate(-50%, -50%) scale(1.35) rotate(0deg);
    filter: drop-shadow(0 0 12px var(--self-scan-glow, rgba(143, 230, 255, .5)));
}

.self-stage {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: min(52%, 620px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 8;
    pointer-events: none;
}

.self-facebox {
    position: relative;
    width: var(--self-face-d);
    transition: transform .35s cubic-bezier(.2, .8, .3, 1);
    transform: scale(calc(1 + var(--deform, 0) * .06)) translateY(calc(var(--deform, 0) * -6px));
    pointer-events: none;
}

.self-facebox .self-trim-group {
    clip-path: url(#selfTrim);
}

.self-facebox.is-melt .self-trim-group {
    clip-path: url(#selfTrimMelt);
}

.self-facebox.is-clear .self-trim-group {
    clip-path: url(#selfTrimClear);
}

.self-face {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.self-shadow {
    fill: var(--self-shadow-fill);
    transition: opacity .5s ease;
}

.self[data-count="0"] .self-shadow {
    opacity: .26;
}

.self-blob {
    fill: var(--self-skin-empty);
    stroke: var(--self-skin-empty-edge);
    stroke-width: 2.5;
    stroke-dasharray: 9 8;
    transition: fill .6s ease, stroke .6s ease, stroke-dasharray .6s ease;
    animation: self-breathe 5.5s ease-in-out infinite;
}

@keyframes self-breathe {

    0%,
    100% {
        opacity: .82;
    }

    50% {
        opacity: 1;
    }
}

.self-blob-gloss {
    mix-blend-mode: soft-light;
    opacity: .95;
    pointer-events: none;
}

.self-facebox.is-tint .self-blob {
    fill: var(--self-skin);
    stroke: var(--self-skin-edge);
    stroke-width: 3;
    stroke-dasharray: none;
    animation: none;
    opacity: 1;
}

.self-facebox.is-done .self-blob {
    stroke-width: 5;
    filter: drop-shadow(0 0 18px rgba(255, 205, 90, .55));
}


.self-trim-bot {
    fill: #fff;
    transition: fill .1s linear;
}




.self-facebox.is-melt .self-trim-bot,
.self-facebox.is-clear .self-trim-bot {
    fill: #000;
}

.self-flash {
    position: absolute;
    inset: -14%;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(closest-side, var(--self-flash), var(--self-flash2) 55%, transparent 72%);
}

.self-facebox.is-flash .self-flash {
    animation: self-flash .34s ease-out;
}

@keyframes self-flash {
    0% {
        opacity: 0;
        transform: scale(.72);
    }

    35% {
        opacity: .9;
    }

    100% {
        opacity: 0;
        transform: scale(1.12);
    }
}

.self-facebox.is-hot {
    transform: scale(calc(1.06 + var(--deform, 0) * .06)) translateY(calc(var(--deform, 0) * -6px));
}

.self-facebox.is-hot .self-blob {
    stroke: var(--self-accent);
    stroke-width: 3;
}

.self-step {
    position: absolute;
    left: 50%;
    bottom: -2%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(to right, transparent, var(--self-step), transparent);
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity .6s ease, bottom .6s ease;
    pointer-events: none;
}

.self-step--1 {
    width: 44%;
}

.self-step--2 {
    width: 66%;
}

.self-step--3 {
    width: 90%;
}

.self-facebox.is-done .self-step {
    opacity: .9;
}

.self-facebox.is-done .self-step--1 {
    bottom: 1%;
}

.self-facebox.is-done .self-step--2 {
    bottom: -3%;
}

.self-facebox.is-done .self-step--3 {
    bottom: -7%;
}

.self-face-part {
    opacity: 0;
    transform: scale(.5);
    transform-box: fill-box;
    transform-origin: center center;
    transition: opacity .3s ease, transform .42s cubic-bezier(.2, 1.5, .4, 1);
    pointer-events: none;
}

.self-face-part[data-on] {
    opacity: 1;
    transform: scale(1);
}

.self-cup path:first-child {
    fill: #f3e6d2;
    stroke: #8a6a44;
    stroke-width: 3;
}

.self-cup__handle {
    fill: none;
    stroke: #8a6a44;
    stroke-width: 4;
}

.self-cup__steam {
    fill: none;
    stroke: rgba(255, 255, 255, .75);
    stroke-width: 3;
    stroke-linecap: round;
    animation: self-steam 2.6s ease-in-out infinite;
}

@keyframes self-steam {
    0% {
        opacity: 0;
        transform: translateY(4px);
    }

    40% {
        opacity: .85;
    }

    100% {
        opacity: 0;
        transform: translateY(-9px);
    }
}

.self-glasses circle {
    fill: rgba(180, 228, 255, .16);
    stroke: #dfeeff;
    stroke-width: 4;
}

.self-glasses path {
    fill: none;
    stroke: #dfeeff;
    stroke-width: 4;
    stroke-linecap: round;
}

.self-pad path:first-child {
    fill: #4b5568;
    stroke: #8f9db4;
    stroke-width: 3;
}

.self-pad__cross {
    fill: none;
    stroke: #cfe0f5;
    stroke-width: 3.4;
    stroke-linecap: round;
}

.self-pad__btn {
    fill: #cfe0f5;
}

.self-cans__band {
    fill: none;
    stroke: url(#selfBand);
    stroke-width: 11;
    stroke-linecap: round;
}

.self-cans__cup {
    fill: #59657a;
    stroke: #c6d6ec;
    stroke-width: 3;
}

.self-bags path {
    fill: none;
    stroke: #6b4b8a;
    stroke-width: 5;
    stroke-linecap: round;
    opacity: .8;
}

.self-nose {
    fill: #e8455f;
    stroke: #ffd0d8;
    stroke-width: 2;
}

.self-flame path {
    fill: #ff9a3c;
    stroke: #ffe08a;
    stroke-width: 2;
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: self-fire 1.1s ease-in-out infinite alternate;
}

.self-flame path:last-child {
    animation-delay: .28s;
    fill: #ffcf5c;
}

@keyframes self-fire {
    0% {
        transform: scaleY(.88) scaleX(1.04) rotate(-3deg);
    }

    100% {
        transform: scaleY(1.10) scaleX(.94) rotate(3deg);
    }
}

.self-melt__drip {
    fill: var(--self-skin);
    stroke: var(--self-skin-edge);
    stroke-width: 3;
}

.self-melt[data-on] .self-melt__drip {
    animation: self-melt 3.4s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center top;
}

@keyframes self-melt {
    0% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.14);
    }

    100% {
        transform: scaleY(1);
    }
}

.self-melt__bead {
    fill: var(--self-skin);
    transform-box: fill-box;
    transform-origin: center center;
    animation: self-bead 2.2s ease-in infinite;
}

.self-melt__bead:nth-of-type(2) {
    animation-delay: .5s;
}

.self-melt__bead:nth-of-type(3) {
    animation-delay: 1.1s;
}

@keyframes self-bead {
    0% {
        transform: translateY(-14px) scale(.4);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        transform: translateY(16px) scale(1);
        opacity: 0;
    }
}

.self-ghost-path {
    opacity: 0;
    visibility: hidden;
    fill: var(--self-skin);
    stroke: none;
}

.self-facebox.is-clear .self-ghost-path {
    opacity: 1;
    visibility: visible;
}

.self-facebox.is-clear .self-skinfade {
    opacity: .58;
}

.self-facebox.is-clear .self-face {
    animation: self-haunt 4.6s ease-in-out infinite;
}

@keyframes self-haunt {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(-10px);
        opacity: .68;
    }
}

.self-stars path {
    fill: #fff3b0;
    stroke: #e8a72a;
    stroke-width: 3;
    stroke-linejoin: round;
}

.self-stars[data-on] path {
    transform-box: fill-box;
    transform-origin: center center;
    animation: self-sparkle 1.8s ease-in-out infinite;
}

.self-stars[data-on] path:last-child {
    animation-delay: .45s;
}

@keyframes self-sparkle {

    0%,
    100% {
        transform: scale(.9) rotate(-8deg);
    }

    50% {
        transform: scale(1.12) rotate(8deg);
    }
}

.self-mask path:not(.self-mask__strap):not(.self-mask__fold) {
    fill: #eef4fb;
    stroke: #9fb2c8;
    stroke-width: 3;
}

.self-mask__strap {
    fill: none;
    stroke: #9fb2c8;
    stroke-width: 4;
    stroke-linecap: round;
}

.self-mask__fold {
    fill: none;
    stroke: #c3d1e2;
    stroke-width: 3;
}

.self-mask__shot {
    fill: none;
    stroke: #a9bdd4;
    stroke-width: 4;
}

.self-mask__rim {
    fill: none;
    stroke: #8fa5bd;
    stroke-width: 3.5;
    stroke-linecap: round;
}

.self-crown path:first-child {
    fill: #ffd24a;
    stroke: #b8860b;
    stroke-width: 3;
    stroke-linejoin: round;
}

.self-crown__band {
    fill: #f0b429;
    stroke: #b8860b;
    stroke-width: 3;
}

.self-zzz path {
    fill: none;
    stroke: #cfe6ff;
    stroke-width: 4.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.self-zzz[data-on] path {
    animation: self-float 3.2s ease-in-out infinite;
}

.self-zzz[data-on] .self-zzz__s {
    animation-delay: .7s;
}

.self-zzz[data-on] path:last-child {
    animation-delay: 1.4s;
}

@keyframes self-float {

    0%,
    100% {
        opacity: .35;
        transform: translateY(4px);
    }

    50% {
        opacity: 1;
        transform: translateY(-6px);
    }
}

.self-note path {
    fill: none;
    stroke: #cfe6ff;
    stroke-width: 4.5;
    stroke-linecap: round;
}

.self-note__head {
    fill: #cfe6ff;
    stroke: none;
}

.self-note[data-on] {
    animation: self-drift 3.6s ease-in-out infinite;
}

@keyframes self-drift {

    0%,
    100% {
        transform: translate(0, 0) rotate(-4deg);
    }

    50% {
        transform: translate(5px, -7px) rotate(5deg);
    }
}

.self-blush ellipse {
    transform-box: fill-box;
    transform-origin: center center;
}

.self-blush[data-on] ellipse {
    animation: self-flush 4.2s ease-in-out infinite;
}

@keyframes self-flush {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.07);
    }
}

.self-heavy path:not(.self-heavy__drop) {
    fill: none;
    stroke: var(--self-skin-edge);
    stroke-width: 6;
    stroke-linecap: round;
}

.self-heavy__drop {
    fill: #8fd8ff;
    stroke: #4aa8d8;
    stroke-width: 2;
}

.self-heavy[data-on] .self-heavy__drop {
    transform-box: fill-box;
    transform-origin: center center;
    animation: self-sweat 2.6s ease-in-out infinite;
}

@keyframes self-sweat {

    0%,
    100% {
        transform: translateY(0) scale(.9);
        opacity: .7;
    }

    50% {
        transform: translateY(6px) scale(1.05);
        opacity: 1;
    }
}

.self-say {
    position: absolute;
    right: 0;
    top: var(--page-top, 0px);
    bottom: var(--page-b, 0px);
    width: min(40%, 430px);
    overflow: hidden auto;
    padding-left: clamp(10px, 1.4vw, 22px);
    border-left: 1px solid var(--self-line);
    scrollbar-width: thin;
    z-index: 7;
    pointer-events: none;
}

.self-say__hint {
    margin: 0;
    font-size: clamp(.82rem, 1vw, .95rem);
    line-height: 1.8;
    color: var(--self-dim);
    letter-spacing: .02em;
}

.self-say__hint[hidden] {
    display: none;
}

.self-say__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: clamp(5px, .8vh, 9px);
}

.self-say__line {
    display: flex;
    align-items: flex-start;
    gap: .5em;
    font-size: clamp(.86rem, 1.05vw, 1.05rem);
    line-height: 1.65;
    color: var(--self-ink);
    pointer-events: auto;
    cursor: pointer;
    border-radius: 6px;
    margin: 0 -6px;
    padding: 1px 6px;
    transition: background .18s ease, opacity .3s ease;
    animation: self-pop .42s cubic-bezier(.2, 1.4, .4, 1) both;
    transition: opacity .3s ease;
}

.self-say__line:nth-last-child(n+5) {
    opacity: .38;
}

.self-say__line:nth-last-child(n+8) {
    opacity: .18;
}

.self-say__line.is-gone {
    animation: self-gone .24s ease-in both;
}

.self-say__emoji {
    flex: 0 0 auto;
    font-size: 1.15em;
    line-height: 1.45;
    font-variant-emoji: emoji;
}

.self-say__tx {
    flex: 1 1 auto;
}

.self-say__undo {
    flex: 0 0 auto;
    width: 1.15em;
    text-align: center;
    font-size: 1.05em;
    line-height: 1.5;
    color: var(--self-dim);
    opacity: .35;
    transition: opacity .18s ease, color .18s ease, transform .18s ease;
}

.self-say__line:hover {
    background: var(--self-hl);
}

.self-say__line:hover .self-say__undo {
    opacity: 1;
    color: var(--self-accent);
    transform: scale(1.15);
}

.self-say__line:active {
    background: var(--self-hl-hi);
}

@keyframes self-pop {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(.94);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes self-gone {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(18px);
    }
}

.self-card {
    margin-top: clamp(10px, 1.6vh, 20px);
    padding: clamp(12px, 1.6vh, 18px) clamp(12px, 1.4vw, 20px);
    border: 1px solid var(--self-line);
    border-radius: 12px;
    background: var(--self-glass);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .40);
}

.self-card[hidden] {
    display: none;
}

.self-card.is-in {
    animation: self-card-in .6s cubic-bezier(.2, 1.1, .3, 1) both;
}

@keyframes self-card-in {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(.96);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.self-card__h {
    margin: 0 0 8px;
    font-family: "Alpha Sector", ui-monospace, Consolas, monospace;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .26em;
    color: var(--self-accent2);
    text-transform: uppercase;
}

.self-card__chips {
    margin: 0 0 10px;
    font-size: clamp(1.1rem, 1.7vw, 1.5rem);
    line-height: 1.5;
    letter-spacing: .12em;
    font-variant-emoji: emoji;
}

.self-card__out {
    margin: 0;
    font-size: clamp(.86rem, 1.1vw, 1rem);
    line-height: 1.85;
    color: var(--self-ink);
    max-height: 30vh;
    overflow: hidden;
}

.self-card__out.is-long {
    overflow-y: auto;
}

.self-card__foot {
    margin: 12px 0 0;
    text-align: right;
}

.self-card__btn {
    padding: 6px 14px;
    font: inherit;
    font-size: .8rem;
    letter-spacing: .08em;
    color: var(--self-ink);
    background: var(--self-hl);
    border: 1px solid var(--self-line);
    border-radius: 999px;
    cursor: pointer;
    pointer-events: auto;
    transition: background .22s ease, border-color .22s ease, transform .22s ease;
}

.self-card__btn:hover {
    background: var(--self-hl-hi);
    border-color: var(--self-accent);
    transform: translateY(-1px);
}

@media (max-width: 1100px), (max-height: 620px) {
    .self-say {
        width: min(42%, 380px);
    }

    .self-lead {
        font-size: clamp(0.9rem, 2.4vw, 1.15rem);
    }

    .self-head {
        max-width: 46%;
    }

    .self-face-d {
        --self-face-d: clamp(210px, 46vmin, 340px);
    }

    .self-stage {
        width: min(52%, 460px);
    }
}

:root[data-theme="light"] .self {
    --self-ink: #10141c;
    --self-dim: rgba(16, 20, 28, .70);
    --self-line: rgba(16, 20, 28, .18);
    --self-glass: rgba(255, 255, 255, .76);

    --self-accent: #0b6b86;
    --self-accent2: #8a5a00;

    --self-skin-empty: rgba(230, 170, 40, .30);
    --self-skin-empty-edge: rgba(120, 90, 20, .73);

    --self-glow-warm: rgba(214, 162, 40, .16);
    --self-glow-warm2: rgba(214, 162, 40, .10);
    --self-glow-cool: rgba(40, 130, 190, .10);
    --self-glow-cool2: rgba(40, 130, 190, .07);

    --self-deco-line: rgba(40, 110, 160, .78);
    --self-deco-tick: rgba(40, 110, 160, .68);
    --self-deco-star: rgba(40, 110, 160, .82);
    --self-deco-core: rgba(20, 80, 130, .92);

    --self-scan-a: #1d6f93;
    --self-scan-b: #0d4d69;
    --self-scan-glow: rgba(29, 111, 147, .40);
    --self-scan-glow2: rgba(29, 111, 147, .18);
    --self-scan-tail: rgba(29, 111, 147, .16);

    --self-flash: rgba(255, 255, 255, .95);
    --self-flash2: rgba(214, 162, 40, .35);
    --self-step: rgba(40, 110, 160, .45);
    --self-hl: rgba(16, 20, 28, .06);
    --self-hl-hi: rgba(16, 20, 28, .12);
    --self-shadow-fill: rgba(0, 0, 0, .18);
}

:root[data-theme="light"] .self-noise {
    opacity: .04;
    background-image: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .5) 0 1px, transparent 1px 3px);
    mix-blend-mode: multiply;
}

:root[data-theme="light"] .self-card {
    box-shadow: 0 10px 30px rgba(16, 20, 28, .10);
}


:root[data-theme="light"] .self-deco .deco-ring {
    opacity: .85;
}

:root[data-theme="light"] .self-deco .deco-ring--rev {
    opacity: .6;
}

@media (prefers-reduced-motion: reduce) {

    .self-pod,
    .self-blob,
    .self-cup__steam,
    .self-flame path,
    .self-melt__drip,
    .self-melt__bead,
    .self-stars path,
    .self-blush ellipse,
    .self-zzz path,
    .self-note,
    .self-heavy__drop,
    .self-deco .deco-ring,
    .self-deco .deco-star,
    .self-scan,
    .self-facebox.is-clear .self-face {
        animation: none !important;
    }

    .self-pod.is-flying {
        transition-duration: .12s;
    }
}


.self-tune {
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 9999;
    width: 322px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 12px 14px;
    font: 500 12px/1.5 ui-monospace, Consolas, monospace;
    color: #e8f1ff;
    background: rgba(6, 12, 24, .93);
    border: 1px solid rgba(143, 230, 255, .35);
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
}

.self-tune__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(143, 230, 255, .2);
}

.self-tune__head b {
    flex: 1 1 auto;
    font-size: 12px;
    letter-spacing: .06em;
}

.self-tune__head span {
    font-size: 10px;
    opacity: .6;
}

.self-tune__btn {
    padding: 3px 9px;
    font: inherit;
    font-size: 11px;
    color: #e8f1ff;
    background: rgba(143, 230, 255, .14);
    border: 1px solid rgba(143, 230, 255, .3);
    border-radius: 999px;
    cursor: pointer;
}

.self-tune__btn:hover {
    background: rgba(143, 230, 255, .28);
}

.self-tune__row {
    display: grid;
    grid-template-columns: 88px 1fr 66px;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.self-tune__row i {
    font-style: normal;
    opacity: .8;
}

.self-tune__row input[type=range] {
    width: 100%;
    accent-color: #8fe6ff;
}

.self-tune__row input[type=number] {
    width: 100%;
    padding: 2px 4px;
    font: inherit;
    color: #e8f1ff;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(143, 230, 255, .25);
    border-radius: 5px;
}

.self-tune__out {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    font: 11px/1.5 ui-monospace, Consolas, monospace;
    color: #bfe9ff;
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(143, 230, 255, .22);
    border-radius: 6px;
    resize: vertical;
}


.frost {
    --frost-night: #060a14;
    --frost-ground-near: rgba(4, 7, 14, .88);
    --frost-warm: rgba(255, 186, 120, .16);
    --frost-frame: rgba(9, 13, 20, .72);
    --frost-sill: rgba(255, 186, 120, .16);
    --frost-sill-lit: rgba(255, 214, 170, .34);
    --frost-sill-h: clamp(16px, 3.4vh, 42px);
    --frost-ink: #eaf4ff;
    --frost-dim: rgba(214, 234, 255, .72);
    --frost-accent: #dceeff;
    --frost-shard-glow: rgba(176, 220, 255, .55);
    --frost-glint-core: #f4fbff;
    --frost-glint-halo: rgba(190, 226, 255, .55);
    --frost-glint-ray: rgba(235, 247, 255, .95);
    --frost-glint-ray-main: 30px;
    --frost-glint-ray-cross: 22px;
    --frost-star: #eaf4ff;

    position: absolute;
    inset: var(--page-top, 0px) var(--sp-x, 5vw) var(--sp-b, 7.5vh) var(--sp-x, 5vw);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    cursor: crosshair;
    touch-action: none;
    background: var(--frost-night);
    /* 与过场的衔接:过场在霜雾里结束,面板从同一层霜雾里透出来,
       而不是先黑一下再突然出现 */
    --frost-enter: 1;
}

.frost::after {
    /* 进场霜雾:面板激活时盖一层与过场同色的雾,1.6s 内散掉 */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 9;
    pointer-events: none;
    background:
        radial-gradient(120% 90% at 50% 44%, rgba(16, 28, 42, .10) 0%, rgba(168, 205, 228, .55) 78%, rgba(190, 222, 244, .78) 100%);
    opacity: var(--frost-enter);
    transition: opacity 1.6s ease;
}

.frost.is-entering {
    --frost-enter: 1;
}

.frost.is-entered {
    --frost-enter: 0;
}

.frost-scene {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    isolation: isolate;
    pointer-events: none;
}

.frost-sky,
.frost-aurora,
.frost-snow {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    display: block;
}

.frost-sky {
    z-index: 1;
}

.frost-aurora {
    z-index: 2;
    opacity: .75;
    mix-blend-mode: screen;
    transition: opacity 3.5s ease;
}

.frost-snow {
    z-index: 3;
}

.frost-ground {
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: 0;
    height: 27%;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg,
            transparent 0%,
            transparent 13%,
            rgba(4, 6, 12, .88) 17%,
            var(--frost-ground-near) 100%);
}

.frost-shards {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.frost-shard {
    position: absolute;
    display: block;
    padding: 0;
    border: 0;
    font: inherit;
    color: var(--frost-ink);
    background: linear-gradient(155deg,
            rgba(206, 232, 255, .26),
            rgba(140, 184, 232, .07) 58%,
            rgba(206, 232, 255, .18));
    box-shadow:
        inset 0 0 26px var(--frost-shard-glow),
        inset 0 0 3px rgba(232, 246, 255, .55);
    opacity: calc(.10 + var(--clear, 0) * .90);
    pointer-events: none;
    transition: opacity .25s linear;
    animation: shardGlow 7.5s ease-in-out infinite;
    animation-delay: var(--shard-delay, 0s);
}

.frost-shard__text {
    opacity: 0;
}

.frost.is-reading .frost-shards {
    visibility: hidden;
}

.frost-shard:focus-visible {
    box-shadow:
        inset 0 0 44px rgba(212, 240, 255, .78),
        inset 0 0 6px rgba(255, 255, 255, .95);
    outline: none;
}

.frost-shard.is-kept {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity .5s ease;
}

.frost-ice {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
    pointer-events: none;
    display: block;
}

.frost-glints {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.frost-glint {
    position: absolute;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: radial-gradient(closest-side,
            var(--frost-glint-core),
            var(--frost-glint-halo) 52%,
            transparent);
    box-shadow: 0 0 7px var(--frost-glint-ray);
    opacity: 0;
    animation: glintFlash 9s linear infinite;
    will-change: opacity, transform;
}

.frost-glint::before,
.frost-glint::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: linear-gradient(90deg, transparent, var(--frost-glint-ray), transparent);
}

.frost-glint::before {
    width: var(--frost-glint-ray-main);
    height: 1.5px;
    transform: translate(-50%, -50%) rotate(var(--edge, 0deg));
}

.frost-glint::after {
    width: 1.5px;
    height: var(--frost-glint-ray-cross);
    background: linear-gradient(180deg, transparent, var(--frost-glint-ray), transparent);
    transform: translate(-50%, -50%) rotate(var(--edge, 0deg));
}

.frost-glint.is-kept {
    display: none;
}

@keyframes glintFlash {

    0%,
    88% {
        opacity: 0;
        transform: scale(.55);
    }

    89% {
        opacity: 1;
        transform: scale(1.15);
    }

    92% {
        opacity: .5;
        transform: scale(1.04);
    }

    95% {
        opacity: .1;
        transform: scale(.98);
    }

    97%,
    100% {
        opacity: 0;
        transform: scale(.92);
    }
}

.frost-map {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
}

.frost-star {
    position: absolute;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, var(--frost-star) 45%, rgba(180, 220, 255, 0) 72%);
    box-shadow: 0 0 10px rgba(190, 228, 255, .7);
    opacity: .85;
    animation: starPop .7s cubic-bezier(.2, .9, .3, 1.4) both, starTwinkle 4.5s ease-in-out .7s infinite;
}

.frost-star::before,
.frost-star::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: linear-gradient(90deg, transparent, rgba(230, 245, 255, .75), transparent);
    transform: translate(-50%, -50%);
}

.frost-star::before {
    width: 26px;
    height: 1px;
}

.frost-star::after {
    width: 1px;
    height: 26px;
}

.frost-companion {
    position: absolute;
    width: 4px;
    height: 4px;
    margin: -2px 0 0 -2px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, var(--frost-star) 45%, rgba(180, 220, 255, 0) 72%);
    box-shadow: 0 0 6px rgba(190, 228, 255, .40);
    opacity: .45;
    animation:
        starPop .7s cubic-bezier(.2, .9, .3, 1.4) .25s both,
        starTwinkle 5.5s ease-in-out .95s infinite;
}

.frost-starline {
    position: absolute;
    height: 1px;
    transform-origin: 0 50%;
    background: linear-gradient(90deg, rgba(190, 226, 255, .0), rgba(190, 226, 255, .55) 18%, rgba(190, 226, 255, .55) 82%, rgba(190, 226, 255, 0));
    animation: starLine .9s ease both;
}

.frost-frame {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    box-shadow:
        inset 0 0 0 clamp(6px, .9vw, 13px) var(--frost-frame),
        inset 0 0 46px var(--frost-warm);
}

.frost-frame::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--frost-sill-h);
    background: linear-gradient(180deg,
            var(--frost-sill-lit) 0,
            var(--frost-sill) 16%,
            var(--frost-frame) 100%);
    box-shadow: 0 -1px 0 var(--frost-sill-lit), 0 -16px 30px var(--frost-warm);
    pointer-events: none;
}

.frost-frame__v,
.frost-frame__h {
    position: absolute;
    background: var(--frost-frame);
    box-shadow: 0 0 18px rgba(255, 186, 120, .10);
}

.frost-frame__v {
    left: 37%;
    top: 0;
    bottom: 0;
    width: clamp(5px, .7vw, 11px);
}

.frost-frame__h {
    left: 0;
    right: 0;
    top: 38%;
    height: clamp(5px, .7vw, 11px);
}

.frost-head {
    position: absolute;
    left: clamp(14px, 2vw, 30px);
    top: clamp(12px, 2vh, 26px);
    z-index: 6;
    max-width: min(48%, 560px);
    pointer-events: none;
}

.frost-kicker {
    display: block;
    font-family: "Alpha Sector", ui-monospace, Consolas, monospace;
    font-size: clamp(1.3rem, 2.6vw, 2.1rem);
    font-weight: 600;
    letter-spacing: .14em;
    line-height: 1.15;
    color: var(--frost-accent);
    text-shadow: 0 0 22px rgba(4, 8, 16, .9), 0 1px 10px rgba(4, 10, 16, .95);
}

.frost-lead {
    margin: clamp(6px, 1.2vh, 14px) 0 0;
    font-size: clamp(.92rem, 1.35vw, 1.26rem);
    font-weight: 600;
    line-height: 1.7;
    color: var(--frost-ink);
    text-shadow: 0 0 18px rgba(4, 8, 16, .9), 0 1px 8px rgba(4, 10, 16, .95);
}

.frost-hint {
    position: absolute;
    left: clamp(14px, 2vw, 30px);
    bottom: calc(var(--frost-sill-h) + clamp(8px, 1.2vh, 16px));
    z-index: 6;
    margin: 0;
    font-size: clamp(.76rem, .92vw, .9rem);
    letter-spacing: .04em;
    color: var(--frost-dim);
    text-shadow: 0 0 16px rgba(4, 8, 16, .9), 0 1px 8px rgba(4, 10, 16, .95);
    pointer-events: none;
    transition: opacity .6s ease;
}

.frost-hint.is-used {
    opacity: .38;
}

.frost-count {
    position: absolute;
    right: clamp(14px, 2vw, 30px);
    top: clamp(12px, 2vh, 26px);
    z-index: 6;
    margin: 0;
    font-family: ui-monospace, Consolas, monospace;
    font-size: clamp(.74rem, .9vw, .88rem);
    letter-spacing: .12em;
    color: var(--frost-dim);
    text-shadow: 0 1px 8px rgba(4, 10, 16, .95);
    pointer-events: none;
}

.frost-read {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: grid;
    place-items: center;
    background: radial-gradient(60% 50% at 50% 50%, rgba(4, 8, 16, .55), rgba(4, 8, 16, .82));
    opacity: 0;
    transition: opacity .35s ease;
}

.frost-read[hidden] {
    display: none;
}

.frost-read.is-on {
    opacity: 1;
}

.frost-read__card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: min(62vw, 620px);
    height: min(38vh, 320px);
    padding: 0 7% 0 5%;
    border: 0;
    border-radius: 20px;
    font: inherit;
    text-align: left;
    color: var(--frost-ink);
    background: linear-gradient(158deg,
            rgba(214, 236, 255, .30),
            rgba(140, 184, 232, .10) 55%,
            rgba(214, 236, 255, .22));
    box-shadow:
        inset 0 0 60px rgba(176, 220, 255, .45),
        inset 0 0 4px rgba(236, 248, 255, .7);
    cursor: pointer;
    transform: scale(.96);
    transition: transform .58s cubic-bezier(.2, .9, .25, 1), opacity .35s ease;
    animation: shardGlow 6s ease-in-out infinite;
}

.frost-read.is-on .frost-read__card {
    transform: scale(1);
}

.frost-read__mark {
    position: relative;
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
    margin-right: clamp(18px, 3.2vw, 42px);
    pointer-events: none;
}

.frost-read__mark svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 12px rgba(186, 226, 255, .75));
}

.frost-read__mark polygon {
    fill: rgba(150, 198, 246, .30);
    stroke: rgba(226, 244, 255, .92);
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
}

.frost-read__mark {
    transform:
        translate(var(--mark-x, 0px), var(--mark-y, 0px))
        scale(var(--mark-s, 1))
        rotate(var(--mark-rot, 0deg));
    transition:
        transform .52s cubic-bezier(.2, .9, .25, 1),
        opacity .3s ease;
}

.frost-read__mark.is-flying {
    transition: none;
}

.frost-read__mark.is-kept {
    opacity: 1;
}

.frost-read__mark svg {
    transform-origin: 50% 50%;
    animation: shardCondense 1s cubic-bezier(.5, 0, .35, 1) forwards;
    animation-play-state: paused;
}

.frost-read__mark.is-kept svg {
    animation-play-state: running;
}

@keyframes shardCondense {
    /* 凝聚 = 缩小 + 提亮白芯(用叠层白芯圆的 opacity 表达, 不用
       filter: brightness 3.4 —— 那是逐帧重绘 + 色阶断裂的元凶) */
    0% {
        transform: scale(1);
        opacity: 1;
    }

    34% {
        transform: scale(.58);
        opacity: 1;
        filter: drop-shadow(0 0 6px rgba(190, 232, 255, .9));
    }

    62% {
        transform: scale(.08);
        opacity: 1;
        filter: drop-shadow(0 0 14px rgba(220, 244, 255, 1));
    }

    78% {
        transform: scale(.08);
        opacity: 1;
        filter: drop-shadow(0 0 14px rgba(220, 244, 255, 1));
    }

    100% {
        transform: scale(.06);
        opacity: 0;
    }
}

.frost-read__mote {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle,
            #fff 0%,
            rgba(226, 246, 255, .95) 30%,
            rgba(150, 218, 255, .5) 55%,
            rgba(120, 200, 255, 0) 76%);
    box-shadow: 0 0 18px rgba(200, 238, 255, .8);
    opacity: 0;
    transform: scale(.2);
    pointer-events: none;
}

.frost-read__mark.is-kept .frost-read__mote {
    animation: shardMote 1s cubic-bezier(.2, .8, .3, 1.35) forwards;
}

@keyframes shardMote {
    0%,
    34% {
        opacity: 0;
        transform: translateY(0) scale(.15);
    }

    62% {
        opacity: 1;
        transform: translateY(0) scale(1.14);
    }

    78% {
        opacity: 1;
        transform: translateY(-4%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-42vh) scale(.55);
    }
}




.frost-read__text {
    font-size: clamp(1.05rem, 2.1vw, 1.7rem);
    font-weight: 600;
    line-height: 1.9;
    letter-spacing: .02em;
    text-shadow: 0 0 24px rgba(4, 8, 16, .8);
    animation: readTextIn .5s ease .1s both;
}

.frost-read.is-off .frost-read__text {
    animation: none;
}

.frost-read__card.is-flying {
    animation: cardOut .3s ease 1s forwards;
    pointer-events: none;
}

@keyframes cardOut {
    to {
        opacity: 0;
    }
}

.frost-read.is-off {
    opacity: 0;
}

.frost-read.is-off .frost-read__mark {
    animation: none;
}

.frost-read__card:focus-visible {
    box-shadow:
        inset 0 0 74px rgba(212, 240, 255, .62),
        inset 0 0 6px rgba(255, 255, 255, .95);
    outline: none;
}

.frost-read__keep {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12%;
    font-size: clamp(.72rem, .9vw, .86rem);
    letter-spacing: .18em;
    color: var(--frost-dim);
}

.frost-finale {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: grid;
    place-content: center;
    gap: .5em;
    padding: 0 8%;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 2s ease, visibility 0s linear 2s;
}

.frost-finale__main {
    margin: 0;
    font-size: clamp(1.1rem, 2.2vw, 1.8rem);
    font-weight: 600;
    line-height: 2;
    letter-spacing: .03em;
    color: var(--frost-ink);
    text-shadow: 0 0 30px rgba(4, 8, 16, .95);
}

.frost-finale__sub {
    margin: 0;
    font-size: clamp(.76rem, .95vw, .9rem);
    letter-spacing: .2em;
    color: var(--frost-dim);
    text-shadow: 0 1px 10px rgba(4, 10, 16, .95);
}

.frost.is-done .frost-aurora {
    opacity: 1;
}

.frost.is-done .frost-finale {
    opacity: 1;
    visibility: visible;
    transition: opacity 2s ease;
}

.frost.is-done .frost-head,
.frost.is-done .frost-hint,
.frost.is-done .frost-count {
    opacity: 0;
    transition: opacity 1.2s ease;
}

@keyframes readTextIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@keyframes shardGlow {

    0%,
    100% {
        opacity: .92;
    }

    46% {
        opacity: 1;
    }

    54% {
        opacity: .96;
    }
}

@keyframes starPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    70% {
        transform: scale(1.5);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes starTwinkle {

    0%,
    100% {
        opacity: .78;
    }

    50% {
        opacity: 1;
    }
}

@keyframes starLine {
    0% {
        opacity: 0;
        transform-origin: 0 50%;
        scale: 0 1;
    }

    100% {
        opacity: 1;
        scale: 1 1;
    }
}

@media (max-width: 900px), (max-height: 560px) {
    .frost-head {
        max-width: 62%;
    }

    .frost-frame__v {
        left: 30%;
    }

    .frost-frame__h {
        top: 34%;
    }

    .frost-read__card {
        width: 78vw;
        height: min(46vh, 300px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .frost-aurora,
    .frost-shard,
    .frost-star,
    .frost-companion,
    .frost-starline {
        animation: none !important;
    }

    .frost-star,
    .frost-companion {
        opacity: .62;
    }

    .frost-glint {
        animation: none !important;
        opacity: .34;
    }
}


.solar {
    --pad: clamp(16px, 2.4vw, 34px);
    --cam-x: 0;
    --cam-y: 0px;
    --cam-max: 0.06;
    --cam-tau: 110;
    --cam-par: 8;
    --sun-w: 220px;
    position: absolute;
    inset: var(--page-top, 0px) var(--sp-x, 5vw) var(--sp-b, 7.5vh) var(--sp-x, 5vw);
    overflow: hidden;
    cursor: grab;
    background: radial-gradient(125% 95% at 30% 34%, #0c1a33 0%, #070c18 55%, #03050b 100%);
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.solar-sky,
.solar-neb {
    position: absolute;
    inset: -12%;
    pointer-events: none;
}

.solar-sky {
    background-image:
        radial-gradient(1.4px 1.4px at 24px 36px, rgba(255, 255, 255, 0.85), transparent 60%),
        radial-gradient(1.1px 1.1px at 132px 96px, rgba(200, 230, 255, 0.7), transparent 60%),
        radial-gradient(1.6px 1.6px at 216px 172px, rgba(255, 255, 255, 0.6), transparent 60%),
        radial-gradient(1px 1px at 78px 208px, rgba(220, 240, 255, 0.55), transparent 60%);
    background-size: 280px 280px, 340px 340px, 420px 420px, 260px 260px;
    background-position:
        calc(var(--cam-x) * -0.18) calc(var(--cam-y) * -0.18),
        calc(var(--cam-x) * -0.26) calc(var(--cam-y) * -0.22),
        calc(var(--cam-x) * -0.34) calc(var(--cam-y) * -0.3),
        calc(var(--cam-x) * -0.42) calc(var(--cam-y) * -0.38);
    opacity: 0.75;
}

.solar-neb {
    background:
        radial-gradient(46% 38% at 18% 26%, rgba(70, 120, 220, 0.20), transparent 70%),
        radial-gradient(38% 32% at 82% 74%, rgba(150, 90, 220, 0.16), transparent 72%),
        radial-gradient(60% 50% at 60% 50%, rgba(30, 80, 160, 0.10), transparent 76%);
    transform: translate3d(calc(var(--cam-x) * -0.12), calc(var(--cam-y) * -0.12), 0);
    animation: solar-breathe 26s ease-in-out infinite;
}

@keyframes solar-breathe {

    0%,
    100% {
        opacity: 0.75;
    }

    50% {
        opacity: 1;
    }
}

.solar-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.solar-lead {
    fill: none;
    stroke: color-mix(in srgb, var(--intro-accent) 70%, transparent);
    stroke-width: 1;
}

.solar-node-dot {
    fill: var(--intro-accent);
}

.solar-node {
    position: absolute;
    width: 0;
    height: 0;
}

.solar-body {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    transform: translate3d(var(--cam-dx, 0px), var(--cam-dy, 0px), 0) scale(var(--cam-s, 1));
    transform-origin: 50% 50%;
}

.solar-node--star {
}

.solar-sun {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--sun-w, 220px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 42% 40%, #ffffff 0%, #fff3c4 18%, #ffcf6b 38%, #ff9a3c 60%, rgba(255, 120, 40, 0) 74%),
        radial-gradient(circle, #ffd98a 0%, rgba(255, 170, 60, 0) 62%);
    /* 恒星光:本体 radial-gradient 已含光感, box-shadow 只留一层
       中距晕(60px)。旧版 60/160/300 三层且在 keyframes 里逐帧
       变化 —— 300px 阴影每帧重绘, 是全站最重的一笔。 */
    box-shadow: 0 0 60px rgba(255, 186, 90, 0.45);
    animation: solar-sun 7s ease-in-out infinite;
}


@keyframes solar-sun {

    0%,
    100% {
        opacity: .94;
    }

    50% {
        opacity: 1;
    }
}

.solar-sun::after {
    content: "";
    position: absolute;
    inset: -26%;
    border-radius: 50%;
    border: 1px solid rgba(255, 206, 130, 0.22);
    animation: solar-spin 60s linear infinite;
}

@keyframes solar-spin {
    to {
        transform: rotate(360deg);
    }
}







.solar-planet {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--w, calc(var(--r, 30px) * 2));
    height: auto;
    min-height: var(--r, 0);
    padding: 0;
    border: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
    cursor: pointer;
    background: var(--skin, radial-gradient(circle at 34% 30%, #cfe9ff, #4a7fa8 55%, #17293b 100%));
    box-shadow: 0 0 24px var(--glow, rgba(140, 200, 255, 0.28));
    transition: transform 0.7s cubic-bezier(0.22, 0.9, 0.3, 1), opacity 0.5s ease;
}

.solar-shade {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 44%),
        radial-gradient(circle at 74% 76%, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 62%);
    pointer-events: none;
}

.solar-planet::before {
    content: "";
    position: absolute;
    inset: -14%;
    border-radius: 50%;
    border: 1px dashed color-mix(in srgb, var(--intro-accent) 70%, transparent);
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.solar.is-live .solar-planet {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.solar-node:hover .solar-planet,
.solar-node.is-on .solar-planet,
.solar-planet:focus-visible {
    box-shadow: 0 0 34px var(--glow-strong, rgba(170, 225, 255, 0.75));
    outline: none;
}

.solar-node.is-on .solar-planet::before {
    opacity: 1;
    transform: scale(1);
}

.solar-node--terrestrial .solar-planet {
    --skin:
        radial-gradient(circle at 62% 34%, rgba(255, 255, 255, 0.5) 0 6%, rgba(255, 255, 255, 0) 30%),
        repeating-linear-gradient(102deg, rgba(255, 255, 255, 0.10) 0 6%, rgba(255, 255, 255, 0) 6% 16%),
        radial-gradient(circle at 36% 30%, #9fe0ff 0%, #3f9ad4 24%, #1d6e9e 48%, #10405e 72%, #061a28 100%);
    --glow: rgba(120, 200, 255, 0.35);
    --glow-strong: rgba(150, 220, 255, 0.8);
}

.solar-node--hot .solar-planet {
    --skin:
        radial-gradient(circle at 30% 34%, rgba(255, 236, 190, 0.75) 0 5%, rgba(255, 236, 190, 0) 26%),
        repeating-linear-gradient(74deg, rgba(90, 20, 0, 0.32) 0 4%, rgba(255, 160, 90, 0.12) 4% 11%),
        radial-gradient(circle at 36% 30%, #ffe6b0 0%, #ff9d4a 22%, #d2541d 52%, #79260f 78%, #260a05 100%);
    --glow: rgba(255, 150, 70, 0.4);
    --glow-strong: rgba(255, 180, 100, 0.85);
}

.solar-node--gas .solar-planet {
    --skin:
        repeating-linear-gradient(94deg, #f6e2b4 0 7%, #e0bd83 7% 13%, #c79b5f 13% 19%, #edd6a4 19% 26%, #d2a970 26% 33%),
        radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 55%);
    --glow: rgba(240, 210, 150, 0.4);
    --glow-strong: rgba(255, 232, 180, 0.85);
}

.solar-node--blackhole .solar-planet {
    --skin: radial-gradient(circle, #000000 0 52%, #05050b 60%, #1b1030 70%, #06030c 100%);
    --glow: rgba(150, 110, 255, 0.5);
    --glow-strong: rgba(190, 150, 255, 0.9);
    box-shadow: 0 0 30px rgba(150, 110, 255, 0.5), 0 0 70px rgba(110, 80, 220, 0.25);
}

.solar-node--blackhole .solar-planet::after {
    content: "";
    position: absolute;
    inset: 26% -40%;
    border-radius: 50%;
    border: 1.4px solid rgba(198, 160, 255, 0.85);
    transform: rotate(-13deg);
    box-shadow: 0 0 18px rgba(160, 120, 255, 0.6);
}

.solar-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 268%;
    height: 92%;
    transform: translate(-50%, -50%) rotate(-15deg);
    border-radius: 50%;
    border: 2px solid rgba(246, 226, 178, 0.75);
    box-shadow: 0 0 20px rgba(236, 206, 140, 0.35), inset 0 0 16px rgba(236, 206, 140, 0.28);
    pointer-events: none;
}

.solar-ring--front {
    clip-path: polygon(-10% 52%, 110% 52%, 110% 120%, -10% 120%);
    border-color: rgba(246, 226, 178, 0.62);
}

.solar-card {
    position: absolute;
    left: 0;
    top: 0;
    width: clamp(190px, 17vw, 280px);
    padding: 11px 13px 13px;
    border: 1px solid var(--intro-border);
    border-left: 2px solid color-mix(in srgb, var(--intro-accent) 70%, transparent);
    border-radius: 3px;
    background: color-mix(in srgb, var(--theme, #06080f) 78%, transparent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translate3d(0, 0, 0);
    pointer-events: none;
    transition: opacity 0.22s ease;
    will-change: transform, opacity;
}

.solar-card.is-on {
    opacity: 1;
}

/* 文字多的卡(SS-02 等)在小窗口会比视口还高,placeCard 的夹边就失效了
   → 限高 + 内部滚动,让 offsetHeight 回到可夹范围,卡片永远出不了屏。 */
.solar:not(.is-narrow) .solar-card {
    max-height: calc(100vh - var(--pad, 20px) * 2 - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--intro-accent, #8ad) 45%, transparent) transparent;
}

.solar:not(.is-narrow) .solar-card::-webkit-scrollbar {
    width: 4px;
}

.solar:not(.is-narrow) .solar-card::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--intro-accent, #8ad) 45%, transparent);
    border-radius: 2px;
}


.solar-code {
    display: inline-block;
    font-family: "Alpha Sector", ui-monospace, Consolas, monospace;
    font-size: 0.7rem;
    letter-spacing: 0.26em;
    color: var(--intro-accent);
}

.solar-title {
    margin: 4px 0 6px;
    font-size: clamp(0.98rem, 1.2vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 0.03em;
}

.solar-text {
    color: var(--intro-dim);
    font-size: clamp(0.78rem, 0.92vw, 0.95rem);
    line-height: 1.75;
}

.solar-hud {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.solar-hud::before,
.solar-hud::after {
    content: "";
    position: absolute;
    width: clamp(22px, 2.4vw, 42px);
    height: clamp(22px, 2.4vw, 42px);
    border: 1px solid color-mix(in srgb, var(--intro-accent) 34%, transparent);
}

.solar-hud::before {
    left: var(--pad);
    top: var(--pad);
    border-right: 0;
    border-bottom: 0;
}

.solar-hud::after {
    right: var(--pad);
    bottom: var(--pad);
    border-left: 0;
    border-top: 0;
}

.solar-tag {
    position: absolute;
    left: var(--pad);
    bottom: var(--pad);
    font-family: "Alpha Sector", ui-monospace, Consolas, monospace;
    font-size: 0.66rem;
    letter-spacing: 0.3em;
    color: color-mix(in srgb, var(--intro-accent) 55%, transparent);
}

.solar.is-narrow {
    overflow-y: auto;
    overflow-x: hidden;
    cursor: default;
    padding: clamp(16px, 3vh, 30px) clamp(16px, 4vw, 30px);
}

.solar.is-narrow .solar-svg,
.solar.is-narrow .solar-neb {
    display: none;
}

.solar.is-narrow .solar-node {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: auto;
    height: auto;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px dashed var(--intro-border);
}

.solar.is-narrow .solar-body {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    transform: none;
    flex: 0 0 auto;
    padding-top: 3px;
}

.solar.is-narrow .solar-node--star {
    padding-bottom: 18px;
}

.solar.is-narrow .solar-sun {
    position: relative;
    left: auto;
    top: auto;
    width: 38px !important;
    height: 38px !important;
    transform: none;
}

.solar.is-narrow .solar-sun::after {
    display: none;
}







.solar.is-narrow .solar-planet {
    position: relative;
    left: auto;
    top: auto;
    width: 26px !important;
    height: 26px !important;
    transform: none;
    opacity: 1;
}

.solar.is-narrow .solar-planet::before {
    display: none;
}

.solar.is-narrow .solar-ring {
    width: 150%;
    height: 116%;
    border-width: 1px;
}

.solar.is-narrow .solar-card {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    flex: 1 1 auto;
    transform: none;
    opacity: 1;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    pointer-events: auto;
}

.solar.is-narrow .solar-hud {
    display: none;
}

.solar-art {
    --bg-dim: 0.45;
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.solar-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 100% at 50% 45%,
            rgba(2, 5, 12, calc(var(--bg-dim) * 0.72)) 0%,
            rgba(1, 3, 9, var(--bg-dim)) 100%);
    pointer-events: none;
}

.solar.has-art {
    background: #03050b;
}

.solar.has-art .solar-sky,
.solar.has-art .solar-neb,
.solar.has-art .solar-sun {
    display: none;
}

.solar.has-art .solar-planet {
    opacity: 0;
}

.solar.has-art .solar-planet:focus-visible::before {
    opacity: 1;
}

.solar-tex {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    transform-origin: 50% 50%;
}

.solar-node.has-tex .solar-planet {
    background: none;
    box-shadow: none;
}

.solar-node.has-tex .solar-shade,
.solar-node.has-tex .solar-ring {
    display: none;
}

.solar-node.has-tex.is-on .solar-tex {
    filter: drop-shadow(0 0 10px color-mix(in srgb, var(--intro-accent) 55%, transparent));
}

.solar-sun.has-tex {
    background: none;
    box-shadow: none;
    animation: none;
}


.solar-sun.has-tex::after {
    display: none;
}

.solar-sun-img {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.solar.has-bg .solar-sky,
.solar.has-bg .solar-neb {
    display: none;
}

.solar-tune {
    position: fixed;
    right: 12px;
    top: 12px;
    z-index: 9999;
    width: min(520px, 94vw);
    max-height: 94vh;
    overflow: auto;
    padding: 10px 12px 12px;
    border: 1px solid rgba(127, 240, 255, 0.35);
    border-radius: 6px;
    background: rgba(6, 10, 18, 0.92);
    color: #dff6ff;
    font: 12px/1.5 ui-monospace, Consolas, monospace;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.solar-tune__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.solar-tune__head b {
    color: #7ff0ff;
}

.solar-tune__head span {
    flex: 1;
    opacity: 0.55;
    font-size: 11px;
}

.solar-tune__btn {
    padding: 2px 8px;
    border: 1px solid rgba(127, 240, 255, 0.4);
    border-radius: 4px;
    background: transparent;
    color: #7ff0ff;
    cursor: pointer;
    font: inherit;
}

.solar-tune__row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    border-top: 1px dashed rgba(127, 240, 255, 0.16);
    flex-wrap: wrap;
}

.solar-tune__row>b {
    width: 118px;
    color: #9fe8ff;
    font-weight: 600;
}

.solar-tune__row label {
    display: flex;
    align-items: center;
    gap: 3px;
    opacity: 0.9;
}

.solar-tune__row i {
    font-style: normal;
    opacity: 0.6;
}

.solar-tune__row input[type=range] {
    width: 56px;
}

.solar-tune__row input[type=number] {
    width: 58px;
    padding: 1px 3px;
    border: 1px solid rgba(127, 240, 255, 0.3);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.4);
    color: #dff6ff;
    font: inherit;
}

.solar-tune__row .val {
    width: 38px;
    text-decoration: none;
    opacity: 0.8;
}

.solar-tune__out {
    width: 100%;
    margin-top: 8px;
    padding: 6px;
    border: 1px solid rgba(127, 240, 255, 0.25);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
    color: #bfefff;
    font: 11px/1.5 ui-monospace, Consolas, monospace;
}
.solar-node.has-tex .solar-planet::before {
    display: none;
}

.solar-node.has-tex .solar-planet {
    border-radius: 0;
}

.solar-node.has-tex .solar-planet::before,
.solar-node.has-tex .solar-planet::after {
    display: none;
}

.solar.is-drag {
    cursor: grabbing;
}

.solar-drag {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 6;
    padding: 2px 7px;
    border: 1px solid color-mix(in srgb, var(--intro-accent) 45%, transparent);
    border-radius: 3px;
    background: color-mix(in srgb, var(--theme, #05070d) 72%, transparent);
    color: var(--intro-accent);
    font-family: "Alpha Sector", ui-monospace, Consolas, monospace;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 0.24em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.solar.is-cursor .solar-drag {
    opacity: 0.85;
}

.solar.is-drag .solar-drag {
    opacity: 1;
    border-color: color-mix(in srgb, var(--intro-accent) 85%, transparent);
    color: #ffffff;
}

.solar.is-narrow .solar-drag {
    display: none;
}

.solar-photons {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.solar.is-narrow .solar-photons {
    display: none;
}

.solar-sun.has-video {
    aspect-ratio: auto;
    background: none;
    box-shadow: none;
    animation: none;
}

.solar-sun-video {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) translate3d(var(--cam-dx, 0px), var(--cam-dy, 0px), 0) scale(var(--cam-s, 1));
    transform-origin: 50% 50%;
    mix-blend-mode: screen;
    --sun-key: 2;
    filter: contrast(var(--sun-key)) saturate(1.04);
    --sun-mask-rp: 260px;
    --sun-mask: 76%;
    -webkit-mask-image: radial-gradient(circle var(--sun-mask-rp, 260px) at 50% 50%,
            #000 var(--sun-mask), transparent 100%);
    mask-image: radial-gradient(circle var(--sun-mask-rp, 260px) at 50% 50%,
            #000 var(--sun-mask), transparent 100%);
}

.solar-sun.has-video::before,
.solar-sun.has-video::after {
    display: none;
}

.solar-planet--star {
    width: var(--sun-hit, 0px);
    height: var(--sun-hit, 0px);
    min-height: 0;
    background: none;
    border-radius: 50%;
    box-shadow: none;
    transform: translate(-50%, -50%) translate3d(var(--cam-dx, 0px), var(--cam-dy, 0px), 0) scale(var(--cam-s, 1));
    transform-origin: 50% 50%;
}

.solar.is-live .solar-planet--star {
    opacity: 1;
    transform: translate(-50%, -50%) translate3d(var(--cam-dx, 0px), var(--cam-dy, 0px), 0) scale(var(--cam-s, 1));
}

.solar-node--star:hover .solar-planet--star,
.solar-node--star.is-on .solar-planet--star,
.solar-planet--star:focus-visible {
    box-shadow: none;
    outline: none;
}

.solar-planet--star::before {
    inset: -2%;
}

.solar.is-narrow .solar-planet--star {
    display: none;
}

.solar.is-narrow .solar-sun-video,
.solar.is-narrow .solar-sun-img {
    position: relative;
    left: auto;
    top: auto;
    width: 38px;
    height: 38px;
    object-fit: contain;
    transform: none;
}

.solar.is-drag .solar-planet {
    cursor: grabbing;
}

.solar.is-drag {
    user-select: none;
}

.lost-ed {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: none;
    flex-direction: column;
    background: rgba(4, 7, 14, 0.97);
    color: #e8f6ff;
    font-family: "Alpha Sector", ui-monospace, Consolas, monospace;
    font-size: 0.7rem;
}

.lost-ed__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(127, 240, 255, 0.22);
    background: rgba(6, 10, 18, 0.9);
}

.lost-ed__title {
    color: var(--intro-accent);
    letter-spacing: 0.24em;
    margin-right: 6px;
}

.lost-ed__status {
    margin-left: auto;
    opacity: 0.75;
    max-width: 46%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lost-ed__btn,
.lost-ed__sel,
.lost-ed__num {
    padding: 3px 8px;
    border: 1px solid rgba(127, 240, 255, 0.4);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
    color: #dff6ff;
    font: inherit;
    cursor: pointer;
}

.lost-ed__btn:hover {
    background: rgba(127, 240, 255, 0.18);
    color: #ffffff;
}

.lost-ed__num {
    width: 52px;
    cursor: text;
}

.lost-ed__tag {
    font-style: normal;
    opacity: 0.55;
}

.lost-ed__tone {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(127, 240, 255, 0.14);
    background: rgba(8, 14, 24, 0.9);
}

.lost-ed__cv {
    display: block;
    cursor: crosshair;
}

.lost-ed__json {
    width: 100%;
    height: 34vh;
    margin: 0;
    padding: 8px;
    border: 0;
    border-top: 1px solid rgba(127, 240, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    color: #bfefff;
    font: 11px/1.5 ui-monospace, Consolas, monospace;
    resize: vertical;
}

.lost-ed__hint {
    padding: 5px 10px 7px;
    opacity: 0.5;
    letter-spacing: 0.06em;
}

.lost {
    --pad: 20px;
    --page-top: 0px;
    position: absolute;
    inset: var(--sp-t, 0px) var(--sp-x, 0px) var(--sp-b, 0px);
    border-radius: 12px;
    --theme: #06080f;
    --intro-accent: #7ff0ff;
    --intro-dim: rgba(226, 242, 255, 0.62);
    --intro-border: rgba(127, 240, 255, 0.24);
    overflow: hidden;
    background: var(--theme, #05070d);
    color: #e8f6ff;
    font-family: "Alpha Sector", ui-monospace, Consolas, monospace;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.lost-stage {
    position: absolute;
    inset: 0;
}

.lost-cv {
    display: block;
    width: 100%;
    height: 100%;
    width: 100% !important;
    height: 100% !important;
}

.lost-veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.28s ease;
    background:
        radial-gradient(120% 90% at 50% 50%, rgba(0, 0, 0, 0) 40%, rgba(60, 190, 255, 0.16) 100%),
        linear-gradient(0deg, rgba(60, 190, 255, 0.07), rgba(60, 190, 255, 0.07));
}

.lost-veil.is-on {
    opacity: 1;
}

.lost-lyric {
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 10px;
    z-index: 5;
    pointer-events: none;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: #e6f7ff;
    text-shadow: 0 0 10px rgba(0, 20, 30, 0.95), 0 0 3px rgba(0, 20, 30, 1);
    opacity: 0;
    transition: opacity 0.35s linear;
}

.lost-top {
    position: absolute;
    left: var(--pad);
    right: var(--pad);
    top: calc(var(--page-top, 0px) + var(--pad));
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
}

.lost-code {
    position: relative;
    padding-bottom: 7px;
    color: color-mix(in srgb, var(--intro-accent) 72%, transparent);
}

.lost-code::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: var(--p, 0%);
    height: 2px;
    background: var(--intro-accent);
    opacity: 0.75;
    transition: width 0.25s linear;
}

.lost-tries {
    color: var(--intro-dim);
}

.lost-tries b {
    color: var(--intro-accent);
    font-weight: 700;
}

.lost-say {
    position: absolute;
    left: 50%;
    top: calc(var(--page-top, 0px) + var(--pad) + 34px);
    width: min(760px, 78%);
    transform: translate(-50%, -6px);
    text-align: center;
    font-family: inherit;
    font-size: clamp(0.82rem, 1.05vw, 1.02rem);
    line-height: 1.85;
    letter-spacing: 0.06em;
    color: #dff2ff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.lost-say.is-on {
    opacity: 1;
    transform: translate(-50%, 0);
}

.lost-skills {
    position: absolute;
    left: var(--pad);
    bottom: calc(var(--pad) + 22px);
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    pointer-events: none;
}

.lost-skill {
    display: grid;
    grid-template-columns: 44px 46px 62px 78px 1fr;
    align-items: center;
    gap: 8px;
    width: min(620px, 66vw);
    padding: 5px 9px;
    border: 1px solid var(--intro-border);
    border-left: 2px solid color-mix(in srgb, var(--intro-accent) 70%, transparent);
    border-radius: 3px;
    background: color-mix(in srgb, var(--theme, #06080f) 74%, transparent);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    transition: opacity 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.lost-skill-code {
    color: color-mix(in srgb, var(--intro-accent) 60%, transparent);
}

.lost-skill-name {
    color: #eaf8ff;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.lost-skill-unknown {
    color: color-mix(in srgb, var(--intro-dim) 70%, transparent);
    letter-spacing: 0.3em;
}

.lost-skill-theme {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.lost-clock {
    flex: 1 1 auto;
    text-align: center;
    color: color-mix(in srgb, var(--intro-accent) 78%, transparent);
    letter-spacing: 0.18em;
}

.lost-beat {
    position: absolute;
    left: 50%;
    top: calc(var(--page-top, 0px) + var(--pad) + 22px);
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.lost-beat i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--intro-accent) 30%, transparent);
    transition: background 0.06s linear, transform 0.06s linear;
}

.lost-beat i.is-on {
    background: var(--intro-accent);
    transform: scale(1.5);
}

.lost-state {
    position: absolute;
    right: var(--pad);
    bottom: calc(var(--pad) + 22px);
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    pointer-events: none;
}

.lost-state b {
    color: var(--intro-accent);
    font-weight: 700;
    letter-spacing: 0.2em;
}

.lost-state span {
    color: var(--intro-dim);
}

.lost-skill-key {
    color: var(--intro-accent);
    font-size: 0.62rem;
    opacity: 0.85;
}

.lost-skill-tx {
    color: var(--intro-dim);
    font-size: 0.64rem;
    letter-spacing: 0.02em;
}

.lost-skill.is-locked {
    opacity: 0.4;
    border-left-color: color-mix(in srgb, var(--intro-dim) 45%, transparent);
}

.lost-skill.is-locked .lost-skill-name,
.lost-skill.is-locked .lost-skill-tx,
.lost-skill.is-locked .lost-skill-key {
    display: none;
}

.lost-skill:not(.is-locked) .lost-skill-unknown {
    display: none;
}

.lost-skill.is-on {
    background: color-mix(in srgb, var(--intro-accent) 9%, color-mix(in srgb, var(--theme, #06080f) 74%, transparent));
}

.lost-hint {
    position: absolute;
    right: var(--pad);
    bottom: var(--pad);
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    color: color-mix(in srgb, var(--intro-accent) 50%, transparent);
    pointer-events: none;
}

.lost-touch {
    position: absolute;
    left: 50%;
    bottom: calc(var(--pad) - 4px);
    transform: translateX(-50%);
    display: none;
    gap: 6px;
}

.lost-btn {
    min-width: 46px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid color-mix(in srgb, var(--intro-accent) 45%, transparent);
    border-radius: 4px;
    background: color-mix(in srgb, var(--theme, #06080f) 72%, transparent);
    color: var(--intro-accent);
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    touch-action: none;
}

.lost-btn:active {
    background: color-mix(in srgb, var(--intro-accent) 22%, transparent);
    color: #ffffff;
}

.lost-btn--wide {
    min-width: 62px;
}

.lost-btn--tap {
    min-width: 150px;
    font-size: 0.95rem;
    letter-spacing: 0.3em;
}

.lost-btn--ghost {
    opacity: 0.7;
}

body.scene-open .intro-panel.is-page {
    visibility: hidden;
}

.lost.is-wip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
}

.lost-wip {
    flex: 0 0 auto;
    width: auto;
    max-width: min(680px, 92%);
    padding: 18px 22px 16px;
    border: 1px solid color-mix(in srgb, var(--intro-accent) 26%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--intro-accent) 6%, transparent);
    text-align: left;
}

.lost-wip__title {
    display: block;
    font-size: 0.86rem;
    letter-spacing: 0.24em;
    color: var(--intro-accent);
    margin-bottom: 10px;
}

.lost-wip__lead {
    margin: 0 0 10px;
    font-size: 0.72rem;
    line-height: 1.9;
    color: color-mix(in srgb, var(--intro-accent) 62%, transparent);
}

.lost-wip__lead code {
    padding: 1px 5px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--intro-accent) 12%, transparent);
    color: #ffffff;
}

.lost-wip__list {
    margin: 0;
    padding: 0 0 0 2px;
    list-style: none;
    display: grid;
    gap: 7px;
}

.lost-wip__list li {
    font-size: 0.7rem;
    line-height: 1.85;
    color: color-mix(in srgb, var(--intro-accent) 52%, transparent);
}

.lost-wip__list b {
    display: inline-block;
    min-width: 3.2em;
    margin-right: 6px;
    font-weight: 600;
    color: color-mix(in srgb, var(--intro-accent) 88%, #ffffff);
}

.lost-wip__list em {
    font-style: normal;
    color: color-mix(in srgb, var(--intro-accent) 78%, #ffffff);
}

.lost-wip__ref {
    margin: 12px 0 0;
    padding-top: 10px;
    font-size: 0.66rem;
    line-height: 1.9;
    color: color-mix(in srgb, var(--intro-accent) 45%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--intro-accent) 16%, transparent);
}

.lost-wip__ref a {
    color: var(--intro-accent);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--intro-accent) 45%, transparent);
}

.lost-wip__ref a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.lost-stage #gd-canvas {
    display: block;
    background: #05070d;
}

.lost-tip {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    color: color-mix(in srgb, var(--intro-accent) 55%, transparent);
    pointer-events: none;
}

.gd-tools { display: none; }

.lost.is-game .gd-tools {
    display: flex;
    position: absolute;
    right: 10px;
    bottom: 34px;
    z-index: 5;
    gap: 6px;
    pointer-events: none;
}

.gd-tool {
    pointer-events: auto;
    cursor: pointer;
    font: inherit;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    color: color-mix(in srgb, var(--intro-accent) 82%, transparent);
    background: rgba(6, 12, 20, 0.55);
    border: 1px solid color-mix(in srgb, var(--intro-accent) 30%, transparent);
    border-radius: 4px;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.gd-tool:hover {
    color: #ffffff;
    border-color: color-mix(in srgb, var(--intro-accent) 70%, transparent);
}

.gd-tool.is-on {
    color: #0a1a10;
    background: #7dffb0;
    border-color: #7dffb0;
}

.gd-mobile-note { display: none; }

html[data-gd="mobile"] .lost-stage #gd-canvas,
html[data-gd="mobile"] .lost-tip { display: none; }

html[data-gd="mobile"] .gd-mobile-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: absolute;
    inset: 0;
    text-align: center;
    padding: 24px;
}

html[data-gd="mobile"] .gd-mobile-note b {
    font-size: 0.9rem;
    letter-spacing: 0.24em;
    color: var(--intro-accent);
}

html[data-gd="mobile"] .gd-mobile-note span {
    max-width: 32ch;
    font-size: 0.7rem;
    line-height: 1.9;
    color: color-mix(in srgb, var(--intro-accent) 55%, transparent);
}

.lost.is-game .lost-stage { inset: 0; }

.lost-hud {
    position: absolute;
    left: 10px;
    top: 8px;
    z-index: 3;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    color: color-mix(in srgb, var(--intro-accent) 72%, transparent);
    text-shadow: 0 0 8px color-mix(in srgb, var(--intro-accent) 35%, transparent);
    pointer-events: none;
}

.lost-hud.is-dead { color: #ff9a8c; }
