/* ==========================================================
   页面样式

   @author   ZyKun
   @created  2026-07-15 9:12:30
========================================================== */

/* ==========================================================
   Reset
========================================================== */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


/* ==========================================================
   Theme
========================================================== */

:root {

    --bg: #07090f;

    --text: rgba(255, 255, 255, .95);

    --ease-out: cubic-bezier(.19, 1, .22, 1);

    --layout-duration: 1.15s;

}


/* ==========================================================
   Html Body
========================================================== */

html,
body {

    width: 100%;

    height: 100%;

    min-height: 100dvh;

}


/* ==========================================================
   Body
========================================================== */

body {

    position: relative;

    overflow: hidden;

    background: var(--bg);

    color: var(--text);

    font-family:

        "PingFang SC",

        "Microsoft YaHei",

        sans-serif;

    -webkit-font-smoothing: antialiased;

}


/* ==========================================================
   Ambient Light
========================================================== */

body::before {

    content: "";

    position: fixed;

    inset: -40%;

    background:

        radial-gradient(circle at 15% 20%,

            rgba(59, 130, 246, .42),

            transparent 30%),

        radial-gradient(circle at 85% 80%,

            rgba(168, 85, 247, .30),

            transparent 32%),

        radial-gradient(circle at 50% 50%,

            rgba(255, 255, 255, .035),

            transparent 60%);

    filter: blur(220px);

    animation: ambientMove 40s ease-in-out infinite alternate;

    pointer-events: none;

    z-index: 0;

}


/* ==========================================================
   Vignette
========================================================== */

body::after {

    content: "";

    position: fixed;

    inset: 0;

    background:

        radial-gradient(ellipse at center,

            transparent 40%,

            rgba(0, 0, 0, .42) 100%);

    pointer-events: none;

    z-index: 1;

}


/* ==========================================================
   App
========================================================== */

#app {

    width: 100%;

    height: 100%;

}


/* ==========================================================
   Canvas Background
========================================================== */

#bgCanvas {

    position: fixed;

    inset: 0;

    width: 100%;

    height: 100%;

    z-index: 1;

    pointer-events: none;

}

/* ==========================================================
   Scene
========================================================== */

.scene {

    position: relative;

    z-index: 10;

    width: 100%;

    height: 100dvh;

    max-height: 100dvh;

    display: flex;

    justify-content: center;

    align-items: stretch;

    padding: clamp(28px, 5vh, 64px) clamp(20px, 4vw, 80px);

    overflow: hidden;

}


.scene-stack {

    display: flex;

    width: 100%;

    height: 100%;

    max-height: 100%;

    flex-direction: column;

    align-items: center;

    flex-shrink: 1;

    min-height: 0;

    overflow-y: auto;

    scrollbar-width: none;

}


.scene-stack::-webkit-scrollbar {

    display: none;

}


.scene-head {

    width: 100%;

    flex: 1 1 auto;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 0;

}


.scene-stack.has-actions,
.scene-stack.has-summary {

    justify-content: center;

}


.scene-stack.has-actions .scene-head,
.scene-stack.has-summary .scene-head {

    flex: 0 0 auto;

}


.scene-stack.has-actions .scene-text,
.scene-stack.is-compact .scene-text {

    font-size: clamp(1.65rem, 3vw, 2.35rem);

    line-height: 1.3;

}


.scene-stack > [hidden] {

    display: none !important;

}


/* ==========================================================
   Scene Text
========================================================== */

.scene-text {

    max-width: 720px;

    text-align: center;

    white-space: pre-line;

    font-size: clamp(2.4rem, 4vw, 4rem);

    font-weight: 400;

    line-height: 1.35;

    letter-spacing: -.03em;

    color: white;

    text-shadow:

        0 0 60px rgba(255, 255, 255, .05);

    opacity: 0;

    filter: blur(10px);

    transform: translateY(24px);

    transition:

        opacity 1.4s var(--ease-out),

        transform 1.4s var(--ease-out),

        filter 1.4s var(--ease-out),

        font-size var(--layout-duration) var(--ease-out),

        line-height var(--layout-duration) var(--ease-out);

}


/* ==========================================================
   Emoji
========================================================== */

.scene-emoji {

    display: inline-block;

    margin-left: 6px;

    opacity: 0;

    transition: opacity .6s ease;

}


/* ==========================================================
   Show
========================================================== */

.scene-text.show {

    opacity: 1;

    filter: blur(0);

    transform: translateY(0);

}


/* ==========================================================
   Hide
========================================================== */

.scene-text.hide {

    opacity: 0;

    filter: blur(10px);

    transform: translateY(-18px);

}


/* ==========================================================
   Scene Actions
========================================================== */

.scene-actions {

    display: grid;

    width: 100%;

    max-width: 480px;

    flex-shrink: 0;

    grid-template-rows: 0fr;

    margin-top: 0;

    opacity: 0;

    pointer-events: none;

    transition:

        grid-template-rows var(--layout-duration) var(--ease-out),

        margin-top var(--layout-duration) var(--ease-out),

        opacity .75s var(--ease-out);

}

.scene-actions.show {

    grid-template-rows: 1fr;

    margin-top: clamp(20px, 3vh, 36px);

    opacity: 1;

    pointer-events: auto;

}

.scene-actions.hide {

    grid-template-rows: 0fr;

    margin-top: 0;

    opacity: 0;

    pointer-events: none;

}

.scene-actions-inner {

    overflow: hidden;

    display: flex;

    min-height: 0;

    align-items: center;

    justify-content: center;

    gap: clamp(14px, 2.5vw, 20px);

    padding: 8px 0;

}

.scene-actions.locked {

    pointer-events: none;

}


.scene-actions-pickup .scene-actions-inner {

    flex-direction: column;

    gap: clamp(22px, 3.5vh, 30px);

    padding: 10px 0 6px;

}

.pickup-question {

    color: rgba(255, 255, 255, .66);

    font-size: clamp(.94rem, 1.55vw, 1.06rem);

    font-weight: 400;

    line-height: 1.55;

    letter-spacing: .02em;

    text-align: center;

    opacity: 0;

    transform: translateY(10px);

    transition:

        opacity .75s var(--ease-out),

        transform .75s var(--ease-out);

}

.scene-actions-pickup.show .pickup-question {

    opacity: 1;

    transform: translateY(0);

}

.pickup-buttons {

    display: flex;

    width: 100%;

    justify-content: center;

    gap: clamp(14px, 2.5vw, 20px);

}

@media (max-width: 640px) {

    .pickup-buttons {

        flex-direction: column;

        gap: 12px;

    }

    .pickup-buttons     .choice-button {

        width: 100%;

        min-width: 0;

    }

    .ending-body {

        font-size: clamp(.875rem, 3.8vw, 1rem);

        line-height: 1.68;

        max-width: 100%;

    }

    .ending-coda {

        font-size: clamp(.8125rem, 3.5vw, .9375rem);

        letter-spacing: .1em;

    }

}
.choice-button {

    min-width: clamp(168px, 26vw, 210px);

    border: 1px solid rgba(255, 255, 255, .2);

    border-radius: 999px;

    padding: clamp(15px, 2.2vh, 18px) clamp(26px, 4vw, 34px);

    background: rgba(255, 255, 255, .07);

    color: rgba(255, 255, 255, .94);

    font: inherit;

    font-size: clamp(1.02rem, 1.75vw, 1.14rem);

    font-weight: 400;

    line-height: 1.25;

    letter-spacing: -.01em;

    cursor: pointer;

    opacity: 0;

    filter: blur(6px);

    transform: scale(.94);

    backdrop-filter: blur(18px);

    box-shadow:

        inset 0 1px 0 rgba(255, 255, 255, .14),

        0 12px 40px rgba(0, 0, 0, .18);

    transition:

        opacity .7s var(--ease-out),

        transform .7s var(--ease-out),

        filter .7s var(--ease-out),

        border-color .25s ease,

        background .25s ease;

}

.choice-button.show {

    opacity: 1;

    filter: blur(0);

    transform: scale(1);

}

.choice-button:hover {

    border-color: rgba(255, 255, 255, .38);

    background: rgba(255, 255, 255, .12);

}

.choice-button-primary {

    background: rgba(255, 255, 255, .12);

    border-color: rgba(255, 255, 255, .26);

}

.choice-button.shake {

    animation: buttonShake .36s ease both;

}

.choice-button.dismissed {

    opacity: 0;

    pointer-events: none;

    transform: scale(.94);

    filter: blur(4px);

    transition:

        opacity 1.1s ease,

        transform 1.1s var(--ease-out),

        filter 1.1s ease;

}

.scene-error {

    position: absolute;

    left: 50%;

    bottom: 14%;

    z-index: 20;

    display: flex;

    width: min(312px, calc(100% - 48px));

    flex-direction: column;

    align-items: center;

    gap: 7px;

    padding: 18px 20px;

    border: 1px solid rgba(255, 255, 255, .14);

    border-radius: 18px;

    background:

        linear-gradient(180deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .035)),

        rgba(8, 10, 18, .68);

    color: rgba(255, 255, 255, .88);

    font-size: .92rem;

    line-height: 1.55;

    letter-spacing: 0;

    text-align: center;

    opacity: 0;

    pointer-events: none;

    transform: translate(-50%, 16px) scale(.98);

    backdrop-filter: blur(22px);

    box-shadow:

        inset 0 1px 0 rgba(255, 255, 255, .12),

        0 20px 64px rgba(0, 0, 0, .28),

        0 0 56px rgba(125, 170, 255, .055);

    transition:

        opacity .55s ease,

        transform .55s cubic-bezier(.19, 1, .22, 1);

}

.scene-error-icon {

    font-size: 1.25rem;

    line-height: 1;

}

.scene-error strong {

    color: rgba(255, 255, 255, .96);

    font-size: .98rem;

    font-weight: 500;

}

.scene-error.show {

    opacity: 1;

    transform: translate(-50%, 0) scale(1);

}


/* ==========================================================
   Scene Calendar
========================================================== */

.scene-calendar {

    display: flex;

    width: min(328px, 100%);

    flex-direction: column;

    align-items: stretch;

    flex-shrink: 0;

    gap: 0;

    margin-top: 0;

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    pointer-events: none;

    transform: translateY(20px);

    transition:

        margin-top var(--layout-duration) var(--ease-out),

        max-height var(--layout-duration) var(--ease-out),

        gap var(--layout-duration) var(--ease-out),

        opacity .85s var(--ease-out),

        transform var(--layout-duration) var(--ease-out);

}

.scene-calendar.show {

    margin-top: clamp(16px, 2.5vh, 28px);

    max-height: min(420px, 58vh);

    gap: clamp(14px, 2.5vh, 18px);

    opacity: 1;

    pointer-events: auto;

    transform: translateY(0);

}

.scene-calendar.hide {

    margin-top: 0;

    max-height: 0;

    gap: 0;

    opacity: 0;

    pointer-events: none;

    transform: translateY(16px);

}

.calendar {

    width: 100%;

    padding: 18px 16px 14px;

    border: 1px solid rgba(255, 255, 255, .1);

    border-radius: 20px;

    background: rgba(12, 14, 22, .62);

    backdrop-filter: blur(32px);

    box-shadow:

        inset 0 1px 0 rgba(255, 255, 255, .09),

        0 16px 48px rgba(0, 0, 0, .2);

}

.calendar-header {

    display: grid;

    grid-template-columns: 32px 1fr 32px;

    align-items: center;

    margin-bottom: 18px;

}

.calendar-title {

    color: rgba(255, 255, 255, .92);

    font-size: .92rem;

    font-weight: 500;

    font-variant-numeric: tabular-nums;

    letter-spacing: .04em;

    text-align: center;

}

.calendar-nav {

    display: flex;

    width: 32px;

    height: 32px;

    align-items: center;

    justify-content: center;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, .05);

    color: rgba(255, 255, 255, .72);

    font-size: 1.05rem;

    line-height: 1;

    cursor: pointer;

    transition:

        background .25s ease,

        color .25s ease,

        transform .25s ease;

}

.calendar-nav:hover {

    background: rgba(255, 255, 255, .1);

    color: rgba(255, 255, 255, .96);

}

.calendar-nav:active {

    transform: scale(.92);

}

.calendar-nav:disabled {

    opacity: 0;

    cursor: default;

    pointer-events: none;

}

.calendar-weekdays,
.calendar-grid {

    display: grid;

    grid-template-columns: repeat(7, 1fr);

    column-gap: 0;

    row-gap: 0;

}

.calendar-grid {

    grid-template-rows: repeat(6, minmax(0, 1fr));

    height: 192px;

}

.calendar-weekdays {

    margin-bottom: 10px;

}

.calendar-weekdays span {

    display: flex;

    height: 24px;

    align-items: center;

    justify-content: center;

    color: rgba(255, 255, 255, .36);

    font-size: .62rem;

    font-weight: 500;

    letter-spacing: .08em;

}

.calendar-pad {

    width: 100%;

    height: 100%;

    max-height: 32px;

}

.calendar-day {

    position: relative;

    z-index: 0;

    display: flex;

    width: 100%;

    height: 100%;

    max-height: 32px;

    align-items: center;

    justify-content: center;

    border: none;

    background: transparent;

    color: rgba(255, 255, 255, .88);

    font: inherit;

    font-size: .82rem;

    font-variant-numeric: tabular-nums;

    cursor: pointer;

    transition: color .25s ease;

}

.calendar-day::before {

    content: "";

    position: absolute;

    top: 50%;

    left: 50%;

    z-index: -1;

    width: 78%;

    height: 78%;

    border-radius: 50%;

    background: transparent;

    transform: translate(-50%, -50%) scale(.88);

    transition:

        background .28s var(--ease-out),

        transform .28s var(--ease-out),

        box-shadow .28s var(--ease-out);

}

.calendar-day:hover:not(:disabled):not(.selected)::before {

    background: rgba(255, 255, 255, .07);

    transform: translate(-50%, -50%) scale(1);

}

.calendar-day.selected {

    color: rgba(14, 16, 24, .94);

    font-weight: 500;

}

.calendar-day.selected::before {

    background: rgba(255, 255, 255, .94);

    transform: translate(-50%, -50%) scale(1);

    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);

}

.calendar-day.today:not(.selected) {

    color: rgba(255, 255, 255, .98);

    font-weight: 500;

}

.calendar-day.today:not(.selected)::before {

    background: rgba(255, 255, 255, .06);

    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);

    transform: translate(-50%, -50%) scale(1);

}

.calendar-day.is-past,
.calendar-day.is-outside {

    color: rgba(255, 255, 255, .2);

    cursor: default;

}

.calendar-day.is-busy {

    color: rgba(255, 118, 118, .72);

    cursor: not-allowed;

    text-decoration: line-through;

    text-decoration-color: rgba(255, 92, 92, .88);

    text-decoration-thickness: 1.5px;

}

.calendar-day.is-busy::before {

    background: rgba(255, 96, 96, .06);

    box-shadow: inset 0 0 0 1px rgba(255, 96, 96, .16);

    transform: translate(-50%, -50%) scale(1);

}

.calendar-day.is-busy.today:not(.selected) {

    color: rgba(255, 118, 118, .82);

}

.calendar-confirm {

    width: 100%;

    min-width: 0;

    flex-shrink: 0;

    opacity: 1;

    filter: none;

    transform: none;

}

.calendar-confirm:disabled {

    opacity: .38;

    cursor: default;

    pointer-events: none;

}

.calendar-confirm:not(:disabled):hover {

    border-color: rgba(255, 255, 255, .36);

    background: rgba(255, 255, 255, .16);

}


/* ==========================================================
   Scene Time
========================================================== */

.scene-time {

    display: flex;

    width: min(328px, 100%);

    flex-direction: column;

    align-items: stretch;

    flex-shrink: 0;

    gap: 0;

    margin-top: 0;

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    pointer-events: none;

    transform: translateY(20px);

    transition:

        margin-top var(--layout-duration) var(--ease-out),

        max-height var(--layout-duration) var(--ease-out),

        gap var(--layout-duration) var(--ease-out),

        opacity .85s var(--ease-out),

        transform var(--layout-duration) var(--ease-out);

}

.scene-time.show {

    margin-top: clamp(16px, 2.5vh, 28px);

    max-height: min(360px, 52vh);

    gap: clamp(14px, 2.5vh, 18px);

    opacity: 1;

    pointer-events: auto;

    transform: translateY(0);

}

.scene-time.hide {

    margin-top: 0;

    max-height: 0;

    gap: 0;

    opacity: 0;

    pointer-events: none;

    transform: translateY(16px);

}

.time-picker {

    width: 100%;

    padding: 16px;

    border: 1px solid rgba(255, 255, 255, .1);

    border-radius: 20px;

    background: rgba(12, 14, 22, .62);

    backdrop-filter: blur(32px);

    box-shadow:

        inset 0 1px 0 rgba(255, 255, 255, .09),

        0 16px 48px rgba(0, 0, 0, .2);

}

.time-picker-frame {

    position: relative;

    height: 176px;

    overflow: hidden;

}

.time-picker-frame::before,
.time-picker-frame::after {

    content: "";

    position: absolute;

    left: 0;

    z-index: 2;

    width: 100%;

    height: 56px;

    pointer-events: none;

}

.time-picker-frame::before {

    top: 0;

    background: linear-gradient(to bottom, rgba(12, 14, 22, .92), rgba(12, 14, 22, 0));

}

.time-picker-frame::after {

    bottom: 0;

    background: linear-gradient(to top, rgba(12, 14, 22, .92), rgba(12, 14, 22, 0));

}

.time-picker-highlight {

    position: absolute;

    top: 50%;

    left: 12px;

    right: 12px;

    z-index: 1;

    height: 44px;

    border-radius: 12px;

    background: rgba(255, 255, 255, .07);

    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);

    transform: translateY(-50%);

    pointer-events: none;

}

.time-picker-columns {

    position: relative;

    z-index: 3;

    display: flex;

    height: 100%;

    align-items: stretch;

    justify-content: center;

    gap: 6px;

}

.time-column {

    flex: 1;

    max-width: 88px;

    height: 100%;

    overflow-y: auto;

    overscroll-behavior: contain;

    scroll-snap-type: y mandatory;

    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;

    mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);

}

.time-column::-webkit-scrollbar {

    display: none;

}

.time-column-spacer {

    height: 66px;

    flex-shrink: 0;

    scroll-snap-align: none;

}

.time-option {

    display: flex;

    height: 44px;

    align-items: center;

    justify-content: center;

    color: rgba(255, 255, 255, .32);

    font-size: 1.05rem;

    font-variant-numeric: tabular-nums;

    scroll-snap-align: center;

    cursor: pointer;

    transition: color .25s ease, transform .25s var(--ease-out);

}

.time-option.is-near {

    color: rgba(255, 255, 255, .62);

}

.time-option.is-selected {

    color: rgba(255, 255, 255, .96);

    font-size: 1.18rem;

    font-weight: 500;

}

.time-separator {

    display: flex;

    align-items: center;

    justify-content: center;

    align-self: center;

    color: rgba(255, 255, 255, .72);

    font-size: 1.2rem;

    font-weight: 500;

    font-variant-numeric: tabular-nums;

    pointer-events: none;

}

.time-confirm {

    width: 100%;

    min-width: 0;

    flex-shrink: 0;

    opacity: 1;

    filter: none;

    transform: none;

}


/* ==========================================================
   Scene Food
========================================================== */

.scene-food {

    display: flex;

    width: min(360px, 100%);

    flex-direction: column;

    align-items: stretch;

    flex-shrink: 0;

    gap: 0;

    margin-top: 0;

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    pointer-events: none;

    transform: translateY(20px);

    transition:

        margin-top var(--layout-duration) var(--ease-out),

        max-height var(--layout-duration) var(--ease-out),

        gap var(--layout-duration) var(--ease-out),

        opacity .85s var(--ease-out),

        transform var(--layout-duration) var(--ease-out);

}

.scene-food.show {

    margin-top: clamp(14px, 2.5vh, 26px);

    max-height: min(520px, 68vh);

    gap: clamp(14px, 2.5vh, 18px);

    opacity: 1;

    pointer-events: auto;

    transform: translateY(0);

}

.scene-food.hide {

    margin-top: 0;

    max-height: 0;

    gap: 0;

    opacity: 0;

    pointer-events: none;

    transform: translateY(16px);

}

.food-panel {

    width: 100%;

    padding: 18px 16px 16px;

    border: 1px solid rgba(255, 255, 255, .1);

    border-radius: 20px;

    background: rgba(12, 14, 22, .62);

    backdrop-filter: blur(32px);

    box-shadow:

        inset 0 1px 0 rgba(255, 255, 255, .09),

        0 16px 48px rgba(0, 0, 0, .2);

}

.food-subtitle {

    margin-bottom: 16px;

    color: rgba(255, 255, 255, .48);

    font-size: .86rem;

    font-weight: 400;

    line-height: 1.5;

    letter-spacing: .01em;

    text-align: center;

}

.food-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;

}

.food-option {

    display: flex;

    min-height: 58px;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 4px;

    border: 1px solid rgba(255, 255, 255, .12);

    border-radius: 14px;

    padding: 12px 8px;

    background: rgba(255, 255, 255, .04);

    color: rgba(255, 255, 255, .9);

    font: inherit;

    cursor: pointer;

    transition:

        background .28s var(--ease-out),

        border-color .28s var(--ease-out),

        transform .28s var(--ease-out),

        box-shadow .28s var(--ease-out);

}

.food-option:hover {

    border-color: rgba(255, 255, 255, .22);

    background: rgba(255, 255, 255, .07);

}

.food-option.selected {

    border-color: rgba(255, 255, 255, .34);

    background: rgba(255, 255, 255, .11);

    box-shadow:

        inset 0 1px 0 rgba(255, 255, 255, .14),

        0 8px 24px rgba(0, 0, 0, .12);

}

.food-option:active {

    transform: scale(.97);

}

.food-option-emoji {

    font-size: 1.25rem;

    line-height: 1;

}

.food-option-label {

    font-size: .86rem;

    letter-spacing: .02em;

}

.food-input {

    width: 100%;

    margin-top: 12px;

    border: 1px solid rgba(255, 255, 255, .12);

    border-radius: 14px;

    padding: 14px 16px;

    background: rgba(255, 255, 255, .04);

    color: rgba(255, 255, 255, .92);

    font: inherit;

    font-size: .92rem;

    line-height: 1.4;

    outline: none;

    transition:

        border-color .25s ease,

        background .25s ease;

}

.food-input::placeholder {

    color: rgba(255, 255, 255, .32);

}

.food-input:focus {

    border-color: rgba(255, 255, 255, .28);

    background: rgba(255, 255, 255, .06);

}

.food-confirm {

    width: 100%;

    min-width: 0;

    flex-shrink: 0;

    opacity: 1;

    filter: none;

    transform: none;

}

.food-confirm:disabled {

    opacity: .38;

    cursor: default;

    pointer-events: none;

}


/* ==========================================================
   Scene Summary
========================================================== */

.scene-summary {

    display: flex;

    width: min(380px, 100%);

    flex-direction: column;

    align-items: stretch;

    flex-shrink: 0;

    gap: 0;

    margin-top: 0;

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    pointer-events: none;

    transform: translateY(16px);

    transition:

        margin-top var(--layout-duration) var(--ease-out),

        max-height var(--layout-duration) var(--ease-out),

        gap var(--layout-duration) var(--ease-out),

        opacity .85s var(--ease-out),

        transform var(--layout-duration) var(--ease-out);

}

.scene-summary.show {

    margin-top: clamp(14px, 2.5vh, 26px);

    max-height: min(560px, 72vh);

    gap: clamp(16px, 2.5vh, 22px);

    opacity: 1;

    pointer-events: auto;

    transform: translateY(0);

}

.scene-summary.hide {

    margin-top: 0;

    max-height: 0;

    gap: 0;

    opacity: 0;

    pointer-events: none;

    transform: translateY(12px);

}

.summary-card {

    width: 100%;

    padding: 20px 18px;

    border: 1px solid rgba(255, 255, 255, .1);

    border-radius: 20px;

    background: rgba(12, 14, 22, .62);

    backdrop-filter: blur(32px);

    box-shadow:

        inset 0 1px 0 rgba(255, 255, 255, .09),

        0 16px 48px rgba(0, 0, 0, .2);

}

.summary-row {

    color: rgba(255, 255, 255, .88);

    font-size: .92rem;

    line-height: 1.65;

    letter-spacing: .01em;

    opacity: 0;

    transform: translateY(10px);

    transition:

        opacity .75s var(--ease-out),

        transform .75s var(--ease-out);

}

.summary-row + .summary-row {

    margin-top: 10px;

}

.summary-row.show {

    opacity: 1;

    transform: translateY(0);

}

.summary-hint {

    color: rgba(255, 255, 255, .46);

    font-size: .84rem;

    line-height: 1.55;

    text-align: center;

    opacity: 0;

    transform: translateY(8px);

    transition:

        opacity .75s var(--ease-out),

        transform .75s var(--ease-out);

}

.summary-hint.show {

    opacity: 1;

    transform: translateY(0);

}

.summary-action {

    position: relative;

    width: 100%;

}

.summary-toast {

    position: absolute;

    left: 50%;

    bottom: calc(100% + 14px);

    z-index: 5;

    width: max-content;

    max-width: min(300px, calc(100vw - 48px));

    padding: 10px 14px;

    border: 1px solid rgba(255, 255, 255, .12);

    border-radius: 12px;

    background: rgba(12, 14, 22, .88);

    color: rgba(255, 255, 255, .9);

    font-size: .82rem;

    line-height: 1.5;

    text-align: center;

    opacity: 0;

    pointer-events: none;

    transform: translate(-50%, 8px);

    backdrop-filter: blur(20px);

    box-shadow: 0 12px 36px rgba(0, 0, 0, .24);

    transition:

        opacity .55s ease,

        transform .55s var(--ease-out);

}

.summary-toast.show {

    opacity: 1;

    transform: translate(-50%, 0);

}

.summary-copy {

    width: 100%;

    min-width: 0;

    opacity: 0;

    filter: blur(6px);

    transform: scale(.94);

}

.summary-copy.show {

    opacity: 1;

    filter: blur(0);

    transform: scale(1);

}

.summary-copy.is-copied {

    opacity: 1;

    filter: blur(0);

    transform: scale(1);

    pointer-events: none;

}


/* ==========================================================
   Interaction Motion
========================================================== */

@keyframes buttonShake {

    0% {

        transform: translateX(0);

    }

    25% {

        transform: translateX(-5px);

    }

    50% {

        transform: translateX(5px);

    }

    75% {

        transform: translateX(-3px);

    }

    100% {

        transform: translateX(0);

    }

}

@media (max-width: 640px) {

    .scene {

        padding: 24px 18px;

    }

    .scene-stack.is-compact .scene-text {

        font-size: clamp(1.45rem, 6.5vw, 1.85rem);

    }

    .scene-actions-inner {

        flex-direction: column;

        gap: 12px;

        padding: 10px 0;

    }

    .choice-button {

        width: 100%;

        min-width: 0;

    }

    .ending-body {

        font-size: clamp(.875rem, 3.8vw, 1rem);

        line-height: 1.68;

        max-width: 100%;

    }

    .ending-coda {

        font-size: clamp(.8125rem, 3.5vw, .9375rem);

        letter-spacing: .1em;

    }

    .scene-calendar,
    .scene-time,
    .scene-food,
    .scene-summary {

        width: min(320px, 100%);

    }

    .summary-row {

        font-size: .86rem;

    }

    .food-grid {

        gap: 8px;

    }

    .food-option {

        min-height: 54px;

        padding: 10px 6px;

    }

    .food-option-emoji {

        font-size: 1.15rem;

    }

    .food-option-label {

        font-size: .82rem;

    }

    .calendar {

        padding: 16px 14px 12px;

    }

    .calendar-grid {

        height: 174px;

    }

    .calendar-day,
    .calendar-pad {

        max-height: 29px;

        font-size: .78rem;

    }

}

@media (max-height: 760px) {

    .scene-stack.has-actions .scene-text,
    .scene-stack.is-compact .scene-text {

        font-size: clamp(1.4rem, 2.8vw, 1.9rem);

    }

    .calendar-header {

        margin-bottom: 12px;

    }

    .calendar-grid {

        height: 162px;

    }

    .calendar-day,
    .calendar-pad {

        max-height: 27px;

        font-size: .76rem;

    }

    .choice-button {

        padding: 12px 18px;

    }

}


/* ==========================================================
   Background Motion
========================================================== */

@keyframes ambientMove {

    from {

        transform:

            translate(-40px, -25px) scale(1);

    }

    to {

        transform:

            translate(40px, 25px) scale(1.08);

    }

}


/* ==========================================================
   Ending Scene
========================================================== */

.scene-ending {

    position: fixed;

    inset: 0;

    z-index: 10;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: clamp(88px, 16vh, 148px) clamp(24px, 5vw, 64px);

    pointer-events: none;

}


.scene-ending[hidden] {

    display: none !important;

}


.ending-body {

    display: flex;

    width: 100%;

    max-width: 420px;

    max-height: calc(100dvh - clamp(176px, 32vh, 296px));

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    font-size: clamp(.9375rem, 1.75vw, 1.0625rem);

    font-weight: 300;

    line-height: 1.72;

    letter-spacing: .015em;

    color: rgba(255, 255, 255, .78);

    opacity: 1;

    transition: opacity 1.8s var(--ease-out);

}


.ending-body[hidden] {

    display: none !important;

}


.ending-body.fade-out {

    opacity: 0;

}


.ending-line {

    margin: 0;

    opacity: 0;

    transition: opacity .9s var(--ease-out);

}


.ending-line.show {

    opacity: 1;

}


.ending-coda {

    position: absolute;

    margin: 0;

    font-size: clamp(.875rem, 1.6vw, 1rem);

    font-weight: 300;

    letter-spacing: .12em;

    color: rgba(255, 255, 255, .82);

    opacity: 0;

    transition: opacity 1.5s var(--ease-out);

}


.ending-coda[hidden] {

    display: none !important;

}


.ending-coda.show {

    opacity: .5;

}


@keyframes ending-breathe {

    0%,
    100% {

        opacity: .5;

    }

    50% {

        opacity: .35;

    }

}


.ending-coda.breathe {

    transition: none;

    animation: ending-breathe 4s ease-in-out infinite;

}
