:root {
    --bg: #FBF6EE;
    --bg-2: #F5EEE2;
    --ink: #2B2A28;
    --ink-soft: #514B43;
    --muted: #6F675C;
    --faint: #746B5E;
    --line: rgba(43, 42, 40, 0.09);
    --card: #FFFFFF;
    --coral: #F26B4B;
    --coral-deep: #BE3E1D;
    --sun: #F6B73C;
    --teal: #2F9E93;
    --teal-deep: #237C73;
    --teal-soft: #E4F3F0;
    --shadow: 0 22px 70px rgba(76, 52, 30, 0.14);
    --radius: 34px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
        "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1200px 700px at 15% -10%, #FFE7CE 0%, transparent 55%),
        radial-gradient(900px 600px at 100% 10%, #DFF1EC 0%, transparent 50%),
        var(--bg);
    display: grid;
    place-items: center;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow: hidden;
}

button,
input {
    font: inherit;
    color: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

.app {
    position: relative;
    width: 100%;
    max-width: 680px;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.92), var(--bg) 38%);
    overflow: hidden;
}

/* ---------------- 顶部 ---------------- */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(16px + var(--safe-top)) 20px 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: "Songti SC", "Noto Serif SC", serif;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(145deg, #FFA070, var(--coral) 55%, #D94A2C);
    box-shadow: 0 10px 22px rgba(226, 79, 48, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.45);
}

.brand-text {
    min-width: 0;
}

.brand-text h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.brand-text p {
    margin: 2px 0 0;
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.demo-badge {
    font-size: 10.5px;
    color: #8A5A1E;
    background: #FBEBCB;
    padding: 4px 9px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}

.end-btn {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12.5px;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.end-btn:hover {
    background: #fff;
    color: var(--coral-deep);
}

/* ---------------- 人格切换 ---------------- */

.personas {
    display: flex;
    gap: 8px;
    padding: 4px 20px 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.personas::-webkit-scrollbar {
    display: none;
}

.persona {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease,
        border-color 0.18s ease, transform 0.12s ease;
}

.persona:hover {
    background: #fff;
    transform: translateY(-1px);
}

.persona[aria-pressed="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    box-shadow: 0 8px 20px rgba(43, 42, 40, 0.18);
}

.persona .emoji {
    font-size: 14px;
    line-height: 1;
}

/* ---------------- 对话区 ---------------- */

.chat {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}

/* 聊天区是可滚动 flex 容器：消息不能被压扁，否则故事卡会被挤成一条 */
.chat > * {
    flex-shrink: 0;
}

.chat::-webkit-scrollbar {
    width: 4px;
}

.chat::-webkit-scrollbar-thumb {
    background: rgba(43, 42, 40, 0.12);
    border-radius: 4px;
}

.welcome {
    margin: auto;
    max-width: 360px;
    text-align: center;
    padding: 18px 0 42px;
    animation: fadeUp 0.45s ease both;
}

.mascot {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    font-size: 38px;
    background: linear-gradient(160deg, #FFFDF9, #F7EDD9);
    border: 1px solid rgba(190, 150, 90, 0.2);
    box-shadow: 0 16px 36px rgba(120, 90, 40, 0.1);
    animation: float 5s ease-in-out infinite;
}

.welcome h2 {
    margin: 0 0 10px;
    font-size: 25px;
    letter-spacing: 0.5px;
}

.welcome p {
    margin: 0;
    font-size: 14px;
    line-height: 1.85;
    color: var(--muted);
}

.welcome-tips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.welcome-tips span {
    font-size: 11.5px;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 11px;
}

/* ---------------- 消息气泡 ---------------- */

.msg {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    max-width: 100%;
    animation: fadeUp 0.28s ease both;
}

.msg.user {
    flex-direction: row-reverse;
}

.avatar {
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 15px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(70, 50, 30, 0.05);
}

.msg.user .avatar {
    background: var(--teal-soft);
    border-color: transparent;
}

.msg-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 78%;
    min-width: 0;
}

.msg.user .msg-body {
    align-items: flex-end;
}

.bubble {
    padding: 11px 14px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.72;
    word-break: break-word;
    white-space: pre-wrap;
    position: relative;
}

.msg.ai .bubble {
    background: var(--card);
    border: 1px solid var(--line);
    border-bottom-left-radius: 6px;
    box-shadow: 0 3px 12px rgba(70, 50, 30, 0.045);
}

.msg.user .bubble {
    background: linear-gradient(135deg, #C74628, #A93318);
    color: #fff;
    border-bottom-right-radius: 6px;
    box-shadow: 0 8px 20px rgba(169, 51, 24, 0.22);
}

.bubble.streaming::after {
    content: "▍";
    margin-left: 2px;
    opacity: 0.5;
    animation: blink 1s steps(2, start) infinite;
}

.mini {
    border: none;
    background: none;
    color: var(--muted);
    font-size: 11.5px;
    padding: 2px 4px;
    cursor: pointer;
    align-self: flex-start;
    transition: color 0.15s ease;
}

.mini:hover {
    color: var(--coral-deep);
}

.msg.user .mini {
    display: none;
}

.notice {
    align-self: center;
    font-size: 11.5px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    padding: 5px 12px;
    border-radius: 999px;
    animation: fadeUp 0.28s ease both;
}

/* ---------------- 故事卡 ---------------- */

.work-card {
    position: relative;
    align-self: stretch;
    background: linear-gradient(155deg, #FFFDF8, #FAF1E1);
    border: 1px solid rgba(190, 150, 90, 0.26);
    border-radius: 20px;
    padding: 16px 18px 14px 20px;
    box-shadow: 0 12px 34px rgba(120, 90, 40, 0.09);
    overflow: hidden;
    animation: fadeUp 0.4s ease both;
}

.work-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(var(--sun), var(--coral));
}

.work-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
}

.work-badge {
    font-size: 10px;
    color: #8A5A1E;
    background: #FBEBCB;
    padding: 3px 8px;
    border-radius: 999px;
    flex: none;
}

.work-head h3 {
    margin: 0;
    font-family: "Songti SC", "Noto Serif SC", serif;
    font-size: 16px;
    font-weight: 600;
    color: #4A3B2A;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.work-body {
    margin: 0;
    font-family: "Songti SC", "Noto Serif SC", serif;
    font-size: 14.5px;
    line-height: 1.95;
    color: #4A4036;
    white-space: pre-wrap;
    word-break: break-word;
}

.work-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.work-copy {
    font-size: 11.5px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 10px;
    cursor: pointer;
}

.work-copy:hover {
    color: var(--coral-deep);
}

/* ---------------- 识别中的临时文字 ---------------- */

.partial {
    margin: 0 20px 2px;
    min-height: 17px;
    text-align: center;
    font-size: 12.5px;
    color: var(--teal-deep);
    font-style: italic;
    letter-spacing: 0.2px;
}

.partial::before {
    content: "🎤 ";
}

/* ---------------- 底部控制 ---------------- */

.composer {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 0 20px calc(12px + var(--safe-bottom));
    background: linear-gradient(to top, var(--bg) 58%, rgba(251, 246, 238, 0));
}

.status {
    min-height: 18px;
    font-size: 12.5px;
    color: var(--muted);
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}

.app[data-state="listening"] .status,
.app[data-state="hearing"] .status,
.app[data-state="waiting"] .status {
    color: var(--teal-deep);
}

.app[data-state="thinking"] .status {
    color: #B4791B;
}

.app[data-state="speaking"] .status {
    color: var(--coral-deep);
}

.orb-wrap {
    position: relative;
    width: 120px;
    height: 112px;
    display: grid;
    place-items: center;
}

.orb {
    position: relative;
    z-index: 2;
    width: 88px;
    height: 88px;
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 32px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(145deg, #FFA071, var(--coral) 55%, #D84327);
    box-shadow: 0 20px 42px rgba(222, 78, 48, 0.32),
        inset 0 2px 7px rgba(255, 255, 255, 0.4),
        inset 0 -8px 18px rgba(160, 40, 20, 0.18);
    transition: transform 0.15s ease, filter 0.2s ease,
        box-shadow 0.25s ease, background 0.3s ease;
}

.orb::before {
    content: "";
    position: absolute;
    inset: -11px;
    border-radius: 50%;
    border: 1.5px solid rgba(240, 86, 58, 0.28);
    animation: breathe 3.4s ease-in-out infinite;
}

.orb::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.34), transparent 55%);
    pointer-events: none;
}

.orb:hover {
    transform: scale(1.035);
}

.orb:active {
    transform: scale(0.95);
}

.orb-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    line-height: 1;
}

.orb-icon svg {
    display: none;
    width: 34px;
    height: 34px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.app[data-state="speaking"] .orb-icon .icon-speaker {
    display: block;
}

.app[data-state="muted"] .orb-icon .icon-muted {
    display: block;
}

.app:not([data-state="speaking"]):not([data-state="muted"]) .orb-icon .icon-mic {
    display: block;
}

.app[data-state="listening"] .orb,
.app[data-state="hearing"] .orb,
.app[data-state="waiting"] .orb {
    background: linear-gradient(145deg, #65C7BB, var(--teal) 58%, #1F726A);
    box-shadow: 0 20px 42px rgba(36, 124, 115, 0.3),
        inset 0 2px 7px rgba(255, 255, 255, 0.4),
        inset 0 -8px 18px rgba(10, 80, 72, 0.2);
}

.app[data-state="listening"] .orb::before,
.app[data-state="hearing"] .orb::before,
.app[data-state="waiting"] .orb::before {
    border-color: rgba(47, 158, 147, 0.32);
}

.app[data-state="hearing"] .orb {
    transform: scale(1.05);
}

.app[data-state="thinking"] .orb {
    background: linear-gradient(145deg, #FFD57A, var(--sun) 55%, #E2941F);
    box-shadow: 0 20px 42px rgba(214, 150, 28, 0.3),
        inset 0 2px 7px rgba(255, 255, 255, 0.5);
}

.app[data-state="thinking"] .orb::before {
    border: 2px dashed rgba(196, 128, 16, 0.45);
    animation: spin 6s linear infinite;
}

.app[data-state="speaking"] .orb {
    background: linear-gradient(145deg, #FFA071, var(--coral) 55%, #D84327);
}

.app[data-state="muted"] .orb {
    background: linear-gradient(145deg, #C8C2B8, #9A9388);
    box-shadow: 0 14px 30px rgba(80, 70, 60, 0.2);
}

.app[data-state="muted"] .orb::before {
    border-color: rgba(120, 112, 100, 0.25);
    animation: none;
}

.app[data-state="ended"] .orb,
.app[data-state="idle"] .orb {
    animation: none;
}

/* 声波条 */
.wave {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 24px;
    display: flex;
    align-items: flex-end;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
}

.wave i {
    width: 3px;
    height: 6px;
    border-radius: 3px;
    background: var(--coral);
    transition: height 0.2s ease, background 0.2s ease;
}

.app[data-state="listening"] .wave,
.app[data-state="hearing"] .wave,
.app[data-state="waiting"] .wave,
.app[data-state="speaking"] .wave {
    opacity: 1;
}

.app[data-state="listening"] .wave i,
.app[data-state="hearing"] .wave i,
.app[data-state="waiting"] .wave i {
    background: var(--teal);
}

.app[data-state="listening"] .wave i,
.app[data-state="hearing"] .wave i,
.app[data-state="waiting"] .wave i,
.app[data-state="speaking"] .wave i {
    animation: wave 0.9s ease-in-out infinite;
}

.wave i:nth-child(2) {
    animation-delay: 0.12s;
}

.wave i:nth-child(3) {
    animation-delay: 0.24s;
}

.wave i:nth-child(4) {
    animation-delay: 0.36s;
}

.wave i:nth-child(5) {
    animation-delay: 0.48s;
}

/* 工具栏 */
.tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.66);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12.5px;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.tool:hover {
    background: #fff;
    color: var(--ink-soft);
}

.text-form {
    width: 100%;
    max-width: 460px;
    display: flex;
    gap: 8px;
    animation: fadeUp 0.22s ease both;
}

.text-form[hidden] {
    display: none !important;
}

.text-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 11px 16px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.text-form input:focus {
    border-color: rgba(242, 107, 75, 0.55);
    box-shadow: 0 0 0 4px rgba(242, 107, 75, 0.1);
}

.text-form button {
    flex: none;
    border: none;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    padding: 0 20px;
    font-size: 14px;
    cursor: pointer;
}

.text-form button:hover {
    background: var(--coral-deep);
}

.footnote {
    margin: 0;
    font-size: 10.5px;
    color: var(--faint);
    letter-spacing: 0.2px;
    text-align: center;
}

/* ---------------- 声纹登记弹窗 ---------------- */

.vp-modal {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(35, 31, 26, 0.42);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.vp-sheet {
    position: relative;
    width: min(440px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: var(--card);
    border-radius: 28px;
    padding: 26px 22px calc(20px + var(--safe-bottom));
    box-shadow: var(--shadow);
    animation: fadeUp 0.22s ease both;
}

.vp-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--bg-2);
    color: var(--muted);
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.vp-head {
    text-align: center;
    padding: 0 18px;
}

.vp-badge {
    width: 54px;
    height: 54px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--teal-soft);
    font-size: 24px;
}

.vp-head h2 {
    margin: 0;
    font-size: 19px;
    letter-spacing: 0.3px;
}

.vp-head p,
.vp-prompt {
    margin: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--muted);
}

.vp-step {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vp-step label {
    font-size: 12.5px;
    color: var(--ink-soft);
    font-weight: 600;
}

#vpCode {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    padding: 13px 12px;
    text-align: center;
    font-size: 28px;
    font-weight: 650;
    letter-spacing: 8px;
    font-variant-numeric: tabular-nums;
    outline: none;
}

#vpCode:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(47, 158, 147, 0.14);
}

.vp-primary {
    width: 100%;
    border: none;
    border-radius: 14px;
    background: var(--coral-deep);
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, opacity 0.18s ease;
}

.vp-primary:hover {
    background: #A93318;
}

.vp-primary:disabled {
    opacity: 0.55;
    cursor: default;
}

.access-sheet {
    width: min(380px, 100%);
}

.access-form {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.access-form label {
    font-size: 12.5px;
    color: var(--ink-soft);
    font-weight: 600;
}

.access-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    padding: 13px 12px;
    text-align: center;
    font-size: 26px;
    font-weight: 650;
    letter-spacing: 7px;
    font-variant-numeric: tabular-nums;
    outline: none;
}

.access-form input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(47, 158, 147, 0.14);
}

.access-error {
    min-height: 18px;
    margin: 0;
    text-align: center;
    font-size: 12px;
    color: var(--coral-deep);
}

.vp-rec-status {
    min-height: 20px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55;
    text-align: center;
}

.vp-rec-timer {
    text-align: center;
    font-size: 26px;
    font-weight: 650;
    color: var(--coral-deep);
    font-variant-numeric: tabular-nums;
}

.vp-done {
    width: 58px;
    height: 58px;
    margin: 2px auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--teal-soft);
    color: var(--teal-deep);
    font-size: 30px;
    font-weight: 700;
}

.vp-done-text {
    margin: 0;
    text-align: center;
    font-size: 14px;
    color: var(--ink-soft);
}

.vp-error {
    min-height: 18px;
    margin: 12px 2px 0;
    color: #A3261B;
    font-size: 12.5px;
    line-height: 1.5;
    text-align: center;
}

.vp-privacy {
    margin: 10px 0 0;
    font-size: 11px;
    line-height: 1.55;
    color: var(--faint);
    text-align: center;
}

/* ---------------- Toast ---------------- */

.toast {
    position: fixed;
    left: 50%;
    top: calc(96px + var(--safe-top));
    bottom: auto;
    transform: translateX(-50%) translateY(-8px);
    max-width: 82vw;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(43, 42, 40, 0.92);
    color: #fff;
    font-size: 12.5px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 50;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------------- 动画 ---------------- */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes breathe {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.07);
        opacity: 0.35;
    }
}

@keyframes wave {
    0%,
    100% {
        height: 6px;
    }
    50% {
        height: 22px;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

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

/* ---------------- 桌面 ---------------- */

@media (min-width: 760px) and (min-height: 700px) {
    body {
        padding: 24px;
    }

    .app {
        height: min(940px, calc(100dvh - 48px));
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        border: 1px solid rgba(255, 255, 255, 0.7);
    }
}

@media (max-height: 700px) {
    .welcome {
        padding: 6px 0 18px;
    }

    .welcome .mascot {
        width: 64px;
        height: 64px;
        font-size: 30px;
        margin-bottom: 12px;
    }

    .welcome h2 {
        font-size: 21px;
    }

    .orb-wrap {
        height: 98px;
    }

    .orb {
        width: 78px;
        height: 78px;
        font-size: 28px;
    }

    .toast {
        bottom: calc(170px + var(--safe-bottom));
    }
}

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