﻿:root {
    --pink-25: #fffafc;
    --pink-50: #fff4f9;
    --pink-100: #ffe8f1;
    --pink-200: #ffd6e7;
    --pink-300: #ffbfd8;
    --pink-400: #ff99be;
    --rose-500: #f45b93;
    --rose-600: #dc3d7c;
    --berry-500: #ff5d87;
    --cream: #fffdf8;
    --white: #ffffff;
    --ink: #70485b;
    --ink-soft: #936d80;
    --shadow-soft: 0 18px 45px rgba(244, 91, 147, 0.18);
    --shadow-card: 0 24px 64px rgba(233, 120, 158, 0.18);
    --border-soft: rgba(255, 255, 255, 0.8);
    --danger: #c74372;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), transparent 24%),
        radial-gradient(circle at top right, rgba(255, 244, 248, 0.95), transparent 30%),
        linear-gradient(180deg, #fffafd 0%, #ffeaf2 38%, #fff4f8 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.75) 0 3px, transparent 4px),
        radial-gradient(circle at 84% 22%, rgba(255, 255, 255, 0.7) 0 3px, transparent 4px),
        radial-gradient(circle at 74% 68%, rgba(255, 255, 255, 0.55) 0 3px, transparent 4px),
        radial-gradient(circle at 24% 74%, rgba(255, 255, 255, 0.55) 0 2px, transparent 3px);
}

img {
    display: block;
    max-width: 100%;
}

code {
    font-family: "Consolas", "SFMono-Regular", monospace;
}

.page-shell {
    position: relative;
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
    padding: 22px 0 34px;
}

.page-shell-auth {
    display: flex;
    min-height: 100vh;
    align-items: center;
}

.is-hidden {
    display: none !important;
}

.sky-clouds {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.cloud-strip {
    position: absolute;
    left: -8vw;
    display: block;
    width: 116vw;
    filter: blur(2px);
}

.cloud-strip-top {
    top: 12px;
    height: 180px;
    background:
        radial-gradient(circle at 6% 72%, rgba(255, 255, 255, 0.96) 0 60px, transparent 61px),
        radial-gradient(circle at 17% 58%, rgba(255, 255, 255, 0.96) 0 78px, transparent 79px),
        radial-gradient(circle at 31% 74%, rgba(255, 255, 255, 0.94) 0 56px, transparent 57px),
        radial-gradient(circle at 46% 62%, rgba(255, 255, 255, 0.92) 0 72px, transparent 73px),
        radial-gradient(circle at 60% 78%, rgba(255, 255, 255, 0.92) 0 56px, transparent 57px),
        radial-gradient(circle at 76% 58%, rgba(255, 255, 255, 0.94) 0 78px, transparent 79px),
        radial-gradient(circle at 92% 72%, rgba(255, 255, 255, 0.96) 0 60px, transparent 61px);
    opacity: 0.92;
}

.cloud-strip-mid {
    top: 250px;
    height: 150px;
    background:
        radial-gradient(circle at 14% 75%, rgba(255, 255, 255, 0.56) 0 54px, transparent 55px),
        radial-gradient(circle at 26% 56%, rgba(255, 255, 255, 0.6) 0 70px, transparent 71px),
        radial-gradient(circle at 50% 72%, rgba(255, 255, 255, 0.52) 0 52px, transparent 53px),
        radial-gradient(circle at 74% 58%, rgba(255, 255, 255, 0.58) 0 72px, transparent 73px),
        radial-gradient(circle at 88% 74%, rgba(255, 255, 255, 0.52) 0 54px, transparent 55px);
    opacity: 0.62;
}

.cloud-strip-bottom {
    bottom: -20px;
    height: 170px;
    background:
        radial-gradient(circle at 12% 58%, rgba(255, 255, 255, 0.78) 0 64px, transparent 65px),
        radial-gradient(circle at 28% 76%, rgba(255, 255, 255, 0.76) 0 54px, transparent 55px),
        radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.72) 0 78px, transparent 79px),
        radial-gradient(circle at 72% 78%, rgba(255, 255, 255, 0.76) 0 54px, transparent 55px),
        radial-gradient(circle at 88% 58%, rgba(255, 255, 255, 0.78) 0 64px, transparent 65px);
    opacity: 0.7;
}

.background-blush {
    position: fixed;
    z-index: 0;
    border-radius: 999px;
    filter: blur(16px);
    pointer-events: none;
    opacity: 0.76;
}

.blush-one {
    top: 6%;
    left: -60px;
    width: 220px;
    height: 220px;
    background: rgba(255, 185, 209, 0.58);
}

.blush-two {
    top: 42%;
    right: -54px;
    width: 250px;
    height: 250px;
    background: rgba(255, 225, 236, 0.86);
}

.blush-three {
    bottom: 10%;
    left: 48%;
    width: 300px;
    height: 220px;
    background: rgba(255, 203, 223, 0.56);
    transform: translateX(-50%);
}

.card {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 2px solid var(--border-soft);
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
}

.card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(244, 91, 147, 0.3);
    border-radius: 26px;
    pointer-events: none;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        url("../images/bow.svg"),
        url("../images/bow.svg"),
        url("../images/bow.svg"),
        url("../images/bow.svg");
    background-repeat: no-repeat;
    background-size:
        56px auto,
        56px auto,
        42px auto,
        42px auto;
    background-position:
        8px 10px,
        calc(100% - 8px) 10px,
        10px calc(100% - 10px),
        calc(100% - 10px) calc(100% - 10px);
    opacity: 0.68;
}

.auth-pending .page-shell {
    opacity: 0;
    pointer-events: none;
}

.auth-locked .protected-content {
    display: none;
}

.auth-loading-screen {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 248, 252, 0.72);
    backdrop-filter: blur(8px);
}

.auth-loading-card {
    width: min(480px, 100%);
    padding: 34px 28px;
    text-align: center;
}

.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 22px 30px;
    margin-bottom: 20px;
    animation: fadeUp 0.9s ease-out both;
}

.hero-topbar {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.account-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(244, 91, 147, 0.14);
    box-shadow: var(--shadow-soft);
}

.account-chip-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rose-600);
}

.account-chip strong {
    font-size: 0.96rem;
}

.account-status {
    position: relative;
    z-index: 2;
    min-height: 1.3rem;
    margin: -12px 0 0;
    font-size: 0.92rem;
    color: var(--rose-600);
}

.ghost-button,
.primary-button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 0;
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ghost-button {
    color: var(--rose-600);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 229, 239, 0.92));
    border: 1px solid rgba(244, 91, 147, 0.18);
    box-shadow: var(--shadow-soft);
}

.secondary-button {
    width: fit-content;
}

.primary-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-500), var(--berry-500));
    box-shadow: 0 16px 32px rgba(244, 91, 147, 0.28);
}

.ghost-button:hover,
.primary-button:hover {
    transform: translateY(-1px);
}

.ghost-button:disabled,
.primary-button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.cloudscape {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cloud {
    position: absolute;
    display: block;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 24px rgba(255, 209, 224, 0.3);
}

.cloud::before,
.cloud::after {
    content: "";
    position: absolute;
    bottom: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
}

.cloud::before {
    left: 14px;
    width: 36px;
    height: 36px;
}

.cloud::after {
    right: 18px;
    width: 44px;
    height: 44px;
}

.cloud-a {
    top: 42px;
    left: 26px;
    width: 124px;
}

.cloud-b {
    top: 90px;
    right: 42px;
    width: 148px;
}

.cloud-c {
    bottom: 44px;
    right: 18%;
    width: 112px;
}

.cloud-d {
    bottom: 58px;
    left: 12%;
    width: 96px;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-romantic {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.98), transparent 28%),
        linear-gradient(180deg, rgba(255, 249, 252, 0.98), rgba(255, 228, 238, 0.95));
}

.hero-diary {
    display: grid;
    gap: 14px;
}

.hero-diary::before {
    content: "";
    position: absolute;
    inset: -6px auto auto -4px;
    width: 116px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 228, 238, 0.88));
    opacity: 0.7;
    filter: blur(1px);
}

.eyebrow,
.section-kicker {
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rose-600);
}

.hero-title,
.auth-title {
    margin: 0;
    line-height: 0.98;
    color: #cf4b81;
    text-shadow: 0 8px 24px rgba(255, 255, 255, 0.68);
    font-family: "Segoe Print", "Trebuchet MS", "Comic Sans MS", cursive;
}

.hero-title {
    font-size: clamp(2.1rem, 5.5vw, 4.2rem);
    white-space: nowrap;
}

.auth-title {
    font-size: clamp(2rem, 6vw, 3.6rem);
}

.hero-text,
.section-text,
.note-line,
.timer-caption,
.auth-help p {
    font-size: 1rem;
    line-height: 1.78;
    color: var(--ink-soft);
}

.hero-text {
    max-width: 35rem;
    margin: 14px 0 0;
    font-size: 1.02rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 233, 242, 0.92));
    border: 1px solid rgba(244, 91, 147, 0.18);
    box-shadow: var(--shadow-soft);
    color: var(--rose-600);
    font-size: 0.92rem;
    font-weight: 800;
}

.kitty-stage {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 310px;
}

.kitty-collage {
    align-items: stretch;
}

.kitty-note-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 10px;
    width: min(84vw, 340px);
    padding: 26px 22px 20px;
    border-radius: 38px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.98), transparent 58%),
        linear-gradient(180deg, rgba(255, 247, 251, 0.98), rgba(255, 226, 237, 0.96));
    box-shadow:
        0 22px 52px rgba(244, 91, 147, 0.18),
        inset 0 0 0 2px rgba(255, 255, 255, 0.92);
}

.kitty-note-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 28px;
    border: 1px dashed rgba(244, 91, 147, 0.24);
    pointer-events: none;
}

.kitty-note-kicker,
.kitty-note-text {
    position: relative;
    z-index: 1;
    margin: 0;
}

.kitty-note-kicker {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rose-600);
}

.kitty-note-text {
    max-width: 12rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

.spark {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.92);
    transform: rotate(45deg);
    animation: twinkle 2.4s ease-in-out infinite;
}

.spark-one {
    top: 34px;
    right: 18%;
}

.spark-two {
    top: 120px;
    left: 16%;
    width: 9px;
    height: 9px;
    animation-delay: -0.9s;
}

.spark-three {
    right: 24%;
    bottom: 36px;
    width: 10px;
    height: 10px;
    animation-delay: -1.6s;
}

.kitty-sticker-frame {
    position: relative;
    width: 100%;
    margin-top: 8px;
    padding: 24px 18px 18px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.96), transparent 58%),
        linear-gradient(180deg, rgba(255, 247, 251, 0.96), rgba(255, 230, 239, 0.96));
    box-shadow:
        0 22px 50px rgba(244, 91, 147, 0.18),
        inset 0 0 0 2px rgba(255, 255, 255, 0.92);
    animation: kittyFloat 5.4s ease-in-out infinite;
}

.kitty-sticker-frame::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 2px dashed rgba(244, 91, 147, 0.24);
    border-radius: 26px;
}

.sticker-shadow {
    position: absolute;
    left: 50%;
    bottom: 14px;
    width: 66%;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 187, 212, 0.34);
    filter: blur(10px);
    transform: translateX(-50%);
}

.kitty-sticker {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 22px rgba(244, 91, 147, 0.16));
}

.content-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.timer-card,
.note-card,
.auth-setup-card {
    padding: 26px 20px;
    animation: fadeUp 1.05s ease-out both;
}

.timer-card {
    animation-delay: 0.08s;
}

.note-card {
    animation-delay: 0.16s;
}

.auth-setup-card {
    margin-top: 20px;
}

.section-heading h2,
.note-card h2,
.auth-setup-card h2,
.auth-side h2 {
    margin: 0;
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    line-height: 1.15;
    color: #c84377;
}

.timer-card .section-heading {
    text-align: center;
}

.timer-card .section-heading h2 {
    font-weight: 900;
}

.section-text {
    margin: 10px 0 0;
}

.timer-card .section-text {
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.timer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.time-unit {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 18px 14px;
    text-align: center;
    border-radius: 26px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.92), transparent 62%),
        linear-gradient(180deg, rgba(255, 246, 249, 0.98), rgba(255, 228, 237, 0.95));
    border: 1px solid rgba(255, 163, 191, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 14px 28px rgba(244, 91, 147, 0.08);
}

.time-unit::after {
    content: "";
    position: absolute;
    inset: auto 12px 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 180, 205, 0.2);
    filter: blur(8px);
}

.time-value {
    display: block;
    font-size: clamp(2rem, 7vw, 3.7rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #d1477f;
    font-variant-numeric: tabular-nums;
}

.time-label {
    display: block;
    margin-top: 10px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ink-soft);
}

.time-unit.is-updating:not(.time-unit-heart) {
    animation: popGlow 0.42s ease-out;
}

.time-unit-heart {
    grid-column: 1 / -1;
    min-height: 190px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.time-unit-heart::after {
    display: none;
}

.heart-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(210px, 100%);
    min-height: 180px;
    margin: 0 auto;
}

.time-unit-heart .heart-shell {
    will-change: transform;
}

.heart-shape {
    position: absolute;
    top: 18px;
    left: 50%;
    width: 142px;
    height: 128px;
    transform: translateX(-50%);
    filter: drop-shadow(0 16px 24px rgba(255, 93, 135, 0.24));
}

.time-unit-heart .time-value,
.time-unit-heart .time-label {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.time-unit-heart .time-value {
    margin-top: 2px;
    text-shadow: 0 6px 14px rgba(180, 34, 86, 0.28);
}

.time-unit-heart .time-label {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.92);
}

.time-unit-heart.is-updating .heart-shell {
    animation: heartBeat 0.72s ease-in-out;
}

.timer-caption {
    margin: 14px 0 0;
    font-weight: 600;
}

.timer-card .timer-caption {
    max-width: 30rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.note-card {
    min-height: 240px;
}

.message-board-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.message-board-heading {
    display: grid;
    gap: 8px;
}

.message-board-intro {
    margin: 0;
    max-width: 28rem;
}

.message-board-feedback,
.message-board-empty,
.message-composer-hint {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ink-soft);
}

.message-board-feedback {
    min-height: 1.4rem;
    margin-top: 14px;
}

.message-board-feedback[data-tone="warning"] {
    color: #a36622;
}

.message-board-feedback[data-tone="error"] {
    color: var(--danger);
}

.message-board-feedback[data-tone="success"] {
    color: #3d8b63;
}

.message-board-empty {
    margin-top: 10px;
    padding: 16px 18px;
    border-radius: 24px;
    background: rgba(255, 247, 251, 0.88);
    border: 1px dashed rgba(244, 91, 147, 0.26);
}

.message-board-section {
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

.message-board-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.message-item {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.message-item-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.message-author {
    color: var(--rose-600);
    font-size: 1rem;
}

.message-time {
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.message-bubble {
    position: relative;
    isolation: isolate;
    overflow: visible;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 250, 252, 0.98), rgba(255, 238, 244, 0.94));
    border: 1px solid rgba(255, 170, 198, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 24px rgba(244, 91, 147, 0.08);
}

.message-burst-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: visible;
    pointer-events: none;
}

.message-burst-particle {
    position: absolute;
    left: var(--burst-origin-x);
    top: var(--burst-origin-y);
    width: var(--burst-size);
    height: var(--burst-size);
    opacity: 0;
    will-change: transform, opacity;
    animation: messageBurstFloat var(--burst-duration) cubic-bezier(0.2, 0.74, 0.18, 1) var(--burst-delay) forwards;
}

.message-burst-glyph {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--burst-color);
    font-size: var(--burst-size);
    line-height: 1;
    text-shadow: 0 6px 16px rgba(244, 91, 147, 0.24);
    animation: messageBurstSway calc(var(--burst-duration) * 0.55) ease-in-out var(--burst-delay) infinite alternate;
}

.message-burst-heart .message-burst-glyph {
    font-size: calc(var(--burst-size) * 1.04);
}

.message-burst-star .message-burst-glyph {
    font-size: calc(var(--burst-size) * 0.94);
}

.message-burst-flower .message-burst-glyph {
    font-size: calc(var(--burst-size) * 0.9);
}


.message-body {
    margin: 0;
    font-size: 1rem;
    line-height: 1.78;
    color: var(--ink);
    white-space: pre-wrap;
    word-break: break-word;
}

.message-form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed rgba(244, 91, 147, 0.24);
}

.message-field {
    gap: 10px;
}

.auth-input.message-input {
    min-height: 104px;
    padding: 20px 16px 22px;
    resize: vertical;
    line-height: 1.75;
}

.message-form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.floating-stickers {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.sticker {
    position: absolute;
    filter: drop-shadow(0 14px 18px rgba(244, 91, 147, 0.14));
    opacity: 0.94;
    animation: floatSticker 7.2s ease-in-out infinite;
}

.sticker-a {
    top: 6%;
    left: -8px;
    width: 74px;
}

.sticker-b {
    top: 17%;
    right: 6%;
    width: 62px;
    animation-delay: -1.4s;
}

.sticker-c {
    top: 62%;
    left: -12px;
    width: 70px;
    animation-delay: -2.2s;
}

.sticker-d {
    top: 74%;
    right: 8%;
    width: 78px;
    animation-delay: -1s;
}

.sticker-e {
    top: 86%;
    left: 50%;
    width: 48px;
    animation-delay: -3.1s;
}

.sticker-f {
    top: 28%;
    left: 60%;
    width: 74px;
    animation-delay: -1.7s;
}

.auth-layout {
    position: relative;
    z-index: 1;
    display: grid;
    width: 100%;
    gap: 24px;
    grid-template-columns: 1fr;
}

.auth-layout-single {
    max-width: 560px;
    margin: 0 auto;
}

.auth-panel,
.auth-side {
    padding: 34px 24px;
}

.auth-panel-solo {
    width: min(100%, 560px);
    margin: 0 auto;
}

.auth-panel {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.98), transparent 26%),
        linear-gradient(180deg, rgba(255, 250, 252, 0.98), rgba(255, 240, 246, 0.96));
}

.auth-text {
    max-width: 32rem;
}

.auth-form {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink);
}

.auth-input {
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid rgba(244, 91, 147, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.auth-input:focus {
    outline: 2px solid rgba(244, 91, 147, 0.22);
    outline-offset: 2px;
}

.auth-feedback {
    min-height: 1.4rem;
    margin: 0;
    font-size: 0.94rem;
    color: var(--ink-soft);
}

.auth-feedback[data-tone="warning"] {
    color: #a36622;
}

.auth-feedback[data-tone="error"] {
    color: var(--danger);
}

.auth-help {
    margin-top: 18px;
}

.auth-help p {
    margin: 0;
}

.text-link {
    color: var(--rose-600);
    font-weight: 700;
}

.auth-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.auth-dream-panel {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.96), transparent 28%),
        radial-gradient(circle at 24% 16%, rgba(255, 255, 255, 0.76), transparent 18%),
        linear-gradient(180deg, rgba(255, 248, 252, 0.98), rgba(255, 227, 238, 0.96));
}

.auth-dream-panel::after {
    opacity: 0.78;
}

.dream-clouds {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.dream-cloud {
    position: absolute;
    display: block;
    height: 32px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    filter: blur(1px);
    box-shadow: 0 10px 26px rgba(255, 255, 255, 0.38);
}

.dream-cloud::before,
.dream-cloud::after {
    content: "";
    position: absolute;
    bottom: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
}

.dream-cloud::before {
    left: 14px;
    width: 34px;
    height: 34px;
}

.dream-cloud::after {
    right: 18px;
    width: 42px;
    height: 42px;
}

.dream-cloud-a {
    top: 30px;
    right: 28px;
    width: 120px;
}

.dream-cloud-b {
    top: 86px;
    left: 28px;
    width: 98px;
}

.dream-cloud-c {
    bottom: 42px;
    right: 18%;
    width: 110px;
}

.auth-side-copy {
    position: relative;
    z-index: 1;
}

.auth-dream-panel .auth-side-copy {
    padding-top: 42px;
}

.auth-dream-panel .auth-side h2,
.auth-dream-panel h2 {
    max-width: 16rem;
}

.auth-dream-panel .kitty-stage {
    min-height: 280px;
}

.auth-dream-panel .spark {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.98);
}

.noscript-banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 30;
    max-width: 320px;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(199, 67, 114, 0.92);
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes kittyFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatSticker {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(0, -14px, 0) rotate(4deg);
    }
}

@keyframes messageBurstFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translate3d(0, 10px, 0) scale(0.45);
    }

    12% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translate3d(var(--burst-drift-x), calc(var(--burst-rise) * -1), 0) scale(var(--burst-scale));
    }
}

@keyframes messageBurstSway {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    100% {
        transform: translate3d(var(--burst-sway), -3px, 0) rotate(var(--burst-rotate));
    }
}

@keyframes popGlow {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(255, 214, 228, 0.55);
    }

    100% {
        transform: scale(1);
        box-shadow: none;
    }
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.08);
    }

    42% {
        transform: scale(0.96);
    }

    62% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 0.55;
        transform: rotate(45deg) scale(0.9);
    }

    50% {
        opacity: 1;
        transform: rotate(45deg) scale(1.1);
    }
}

@media (min-width: 768px) {
    .page-shell {
        width: min(1120px, calc(100% - 48px));
        padding-top: 28px;
        padding-bottom: 44px;
    }

    .hero {
        grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
        align-items: center;
        padding: 36px 30px 34px;
    }

    .hero-romantic {
        padding-top: 40px;
    }

    .hero-topbar,
    .account-status {
        grid-column: 1 / -1;
    }

    .content-grid {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .timer-card,
    .note-card,
    .auth-setup-card {
        padding: 30px 26px;
    }

    .timer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: stretch;
    }

    .time-unit-heart {
        grid-column: auto;
        min-height: auto;
    }

    .heart-shell {
        width: 100%;
        min-height: 172px;
    }

    .auth-layout:not(.auth-layout-single) {
        grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
        align-items: stretch;
    }

    .auth-panel,
    .auth-side {
        padding: 34px 28px;
    }
}

@media (max-width: 767px) {
    .sticker-b,
    .sticker-d,
    .sticker-f,
    .cloud-strip-mid {
        display: none;
    }

    .card::after {
        background-size:
            50px auto,
            50px auto,
            34px auto,
            34px auto;
    }

    .cloud-b,
    .cloud-c {
        display: none;
    }

    .hero-title {
        line-height: 1.02;
        white-space: nowrap;
    }

    .kitty-note-card {
        width: min(100%, 320px);
    }

    .auth-dream-panel .auth-side-copy {
        padding-top: 18px;
    }
}

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

    .message-burst-particle {
        animation-duration: 0.35s !important;
    }

    .message-burst-glyph {
        animation: none !important;
    }
}


.message-meta {
    display: grid;
    gap: 4px;
}

.message-item {
    width: min(100%, 760px);
}

.message-item-can-delete {
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
}

.message-item-can-delete .message-bubble {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.message-item.is-holding .message-bubble {
    transform: scale(0.992);
    border-color: rgba(244, 91, 147, 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 30px rgba(244, 91, 147, 0.14);
}

.message-item-owned .message-bubble {
    background: linear-gradient(180deg, rgba(255, 241, 247, 0.99), rgba(255, 222, 234, 0.96));
    border-color: rgba(233, 110, 152, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 28px rgba(233, 110, 152, 0.11);
}

@media (min-width: 768px) {
    .message-board-section {
        margin-top: 30px;
    }

    .message-board-heading {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
        align-items: end;
    }
}



