:root {
    --ink: #07080c;
    --ink-2: #0d0d13;
    --champagne: #f5d99f;
    --champagne-2: #cfa765;
    --rose: #e8b8b4;
    --rose-2: #bd7f86;
    --ivory: #fff9ed;
    --muted: rgba(255, 249, 237, 0.68);
    --faint: rgba(255, 249, 237, 0.46);
    --glass: rgba(255, 255, 255, 0.075);
    --glass-strong: rgba(255, 255, 255, 0.12);
    --line: rgba(245, 217, 159, 0.22);
    --line-strong: rgba(245, 217, 159, 0.42);
    --shadow: 0 32px 90px rgba(0, 0, 0, 0.58);
    --radius-xl: 36px;
    --radius-lg: 28px;
    --radius-md: 18px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--ink);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ivory);
    overflow-x: hidden;
    font-family:
        ui-serif, "Songti SC", "STSong", "Noto Serif CJK SC", "PingFang SC",
        "Microsoft YaHei", serif;
    background:
        radial-gradient(
            circle at 16% 12%,
            rgba(207, 167, 101, 0.26),
            transparent 26%
        ),
        radial-gradient(
            circle at 82% 8%,
            rgba(232, 184, 180, 0.18),
            transparent 28%
        ),
        radial-gradient(
            circle at 74% 78%,
            rgba(245, 217, 159, 0.14),
            transparent 36%
        ),
        linear-gradient(145deg, #06070b 0%, #111016 42%, #17100e 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
        radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.22) 0 1px,
            transparent 1.8px
        );
    background-size:
        92px 92px,
        92px 92px,
        130px 130px;
    opacity: 0.33;
    mask-image: radial-gradient(circle at center, black 0%, transparent 78%);
    animation: none;
}

body::after {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: -2;
    pointer-events: none;
    background: conic-gradient(
        from 210deg at 55% 48%,
        transparent 0deg,
        rgba(245, 217, 159, 0.12) 68deg,
        transparent 125deg,
        rgba(232, 184, 180, 0.08) 200deg,
        transparent 290deg,
        transparent 360deg
    );
    filter: blur(38px);
    opacity: 0.46;
    transform: translate3d(0, 0, 0) scale(1.02);
    animation: none;
}

body.preloading .page-shell,
body.preloading .gate {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

body.intro-active,
body.intro-ready {
    overflow: hidden;
}

body.intro-active .page-shell,
body.intro-ready .page-shell {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

body.intro-active .gate {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: scale(0.98);
}

body.intro-ready .gate {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: scale(1);
}

body.intro-ready .gate-card {
    animation: none;
}

body.candle-active {
    overflow: hidden;
}

body.candle-active .page-shell,
body.candle-active .gate {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

body.started .page-shell {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

@keyframes grainDrift {
    to {
        background-position:
            140px 120px,
            -110px 80px,
            80px 160px;
    }
}

@keyframes auroraTurn {
    from {
        transform: translate3d(-2%, -1%, 0) rotate(-4deg) scale(1);
    }
    to {
        transform: translate3d(2%, 2%, 0) rotate(7deg) scale(1.08);
    }
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
}

canvas {
    display: block;
}

#ambientCanvas,
#fireworkCanvas,
#wishShapeCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#ambientCanvas {
    z-index: -1;
    opacity: 0.95;
}

#fireworkCanvas {
    z-index: 1;
    opacity: 0.72;
    mix-blend-mode: screen;
    filter: saturate(1.05) contrast(1.01);
}

#wishShapeCanvas {
    z-index: 12;
    opacity: 0.96;
    mix-blend-mode: screen;
}

.gold-dust-layer {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.78;
}

.gold-dust {
    position: absolute;
    top: -20px;
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: var(--champagne);
    box-shadow: 0 0 16px rgba(245, 217, 159, 0.82);
    opacity: 0.72;
    animation: dustFall linear forwards;
}

@keyframes dustFall {
    0% {
        transform: translate3d(0, -20px, 0) scale(0.8);
        opacity: 0;
    }
    12% {
        opacity: 0.82;
    }
    100% {
        transform: translate3d(var(--drift), calc(100vh + 40px), 0) scale(0.25);
        opacity: 0;
    }
}

.petal-layer {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.72;
}

.petal {
    position: absolute;
    top: -42px;
    width: 10px;
    height: 14px;
    border-radius: 12px 12px 12px 3px;
    background: rgba(255, 125, 184, 0.78);
    box-shadow: 0 0 18px rgba(255, 125, 184, 0.24);
    animation: petalFall linear forwards;
    will-change: transform, opacity;
}

@keyframes petalFall {
    0% {
        transform: translate3d(0, -20px, 0) rotate(var(--rotate-start, 0deg))
            scale(var(--scale, 1));
        opacity: 0;
    }
    12% {
        opacity: var(--alpha, 0.72);
    }
    100% {
        transform: translate3d(var(--drift), calc(100vh + 64px), 0)
            rotate(var(--rotate-end, 560deg)) scale(var(--scale, 1));
        opacity: 0;
    }
}

.gate {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: calc(28px + var(--safe-top)) 20px calc(28px + var(--safe-bottom));
    background:
        radial-gradient(
            circle at 50% 28%,
            rgba(245, 217, 159, 0.18),
            transparent 34%
        ),
        radial-gradient(
            circle at 50% 86%,
            rgba(232, 184, 180, 0.1),
            transparent 34%
        ),
        rgba(4, 5, 9, 0.72);
    backdrop-filter: blur(20px);
    transition:
        opacity 0.9s ease,
        visibility 0.9s ease;
}

body.started .gate {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.gate-card {
    width: min(520px, 100%);
    position: relative;
    padding: 28px;
    border-radius: 38px;
    border: 1px solid rgba(245, 217, 159, 0.26);
    background:
        linear-gradient(
            160deg,
            rgba(255, 255, 255, 0.13),
            rgba(255, 255, 255, 0.048)
        ),
        radial-gradient(
            circle at 20% 0%,
            rgba(245, 217, 159, 0.18),
            transparent 38%
        ),
        rgba(8, 9, 13, 0.78);
    box-shadow:
        var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    overflow: hidden;
    transform: translateY(0);
    animation: none;
}

.gate-card::before,
.gate-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: inherit;
}

.gate-card::before {
    inset: 12px;
    border: 1px solid rgba(245, 217, 159, 0.18);
}

.gate-card::after {
    width: 220px;
    height: 220px;
    right: -95px;
    top: -95px;
    background: radial-gradient(
        circle,
        rgba(245, 217, 159, 0.22),
        transparent 68%
    );
    filter: blur(8px);
}

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

.gate-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--champagne);
    font-size: 12px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
}

.gate-kicker::before,
.gate-kicker::after {
    content: "";
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 217, 159, 0.78));
}

.gate-kicker::after {
    background: linear-gradient(90deg, rgba(245, 217, 159, 0.78), transparent);
}

.gate h1 {
    margin: 24px 0 14px;
    font-size: clamp(38px, 8vw, 68px);
    line-height: 1.02;
    letter-spacing: 0.07em;
    font-weight: 500;
}

.gate h1 span {
    display: block;
    margin-top: 8px;
    font-size: 0.38em;
    color: var(--muted);
    letter-spacing: 0.32em;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
    text-transform: uppercase;
}

.gate p {
    margin: 0;
    color: var(--muted);
    line-height: 1.95;
    font-size: 15px;
}

.open-btn,
.primary-btn,
.ghost-btn,
.circle-btn {
    border: 0;
    cursor: pointer;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
    -webkit-tap-highlight-color: transparent;
}

.open-btn {
    width: 100%;
    margin-top: 28px;
    padding: 16px 22px;
    border-radius: 999px;
    color: #17100b;
    background: linear-gradient(135deg, #fff4ce, #f1c879 48%, #ad7838 100%);
    box-shadow:
        0 18px 44px rgba(198, 144, 68, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
    font-weight: 650;
    letter-spacing: 0.14em;
}

.open-btn:hover,
.primary-btn:hover,
.ghost-btn:hover,
.circle-btn:hover {
    transform: translateY(-2px);
}

.open-note {
    margin-top: 14px;
    color: rgba(255, 249, 237, 0.48);
    font-size: 12px;
    text-align: center;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
}

.page-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: calc(28px + var(--safe-top)) 0 calc(44px + var(--safe-bottom));
    position: relative;
    z-index: 2;
}

.topbar {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 34px;
    opacity: 0;
    transform: translateY(-12px);
    animation: reveal 0.9s ease 0.2s forwards;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
    letter-spacing: 0.16em;
    font-size: 12px;
    text-transform: uppercase;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--champagne);
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid var(--line);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 12px 28px rgba(0, 0, 0, 0.22);
}

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

.mini-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    border: 1px solid rgba(245, 217, 159, 0.18);
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(12px);
    font-size: 12px;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
    gap: 34px;
    align-items: center;
    min-height: calc(100vh - 150px);
}

.hero-copy {
    padding: 22px 0;
    opacity: 0;
    transform: translateY(20px);
    animation: reveal 1s ease 0.34s forwards;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: var(--champagne);
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
}

.eyebrow::before {
    content: "";
    width: 52px;
    height: 1px;
    background: linear-gradient(90deg, var(--champagne), transparent);
}

.hero h2 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(46px, 7.4vw, 92px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 500;
}

.hero h2 .fine {
    display: block;
    margin-top: 10px;
    color: transparent;
    background: linear-gradient(
        95deg,
        var(--ivory),
        var(--champagne) 38%,
        var(--rose) 76%,
        var(--ivory)
    );
    background-clip: text;
    -webkit-background-clip: text;
}

.hero-subtitle {
    width: min(620px, 100%);
    margin: 28px 0 0;
    color: var(--muted);
    font-size: clamp(16px, 1.8vw, 18px);
    line-height: 2.05;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 999px;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
    font-size: 14px;
    letter-spacing: 0.08em;
}

.primary-btn {
    color: #17100b;
    background: linear-gradient(135deg, #fff2c9, #e6bd73 48%, #a46d32 100%);
    box-shadow:
        0 18px 40px rgba(186, 132, 56, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.ghost-btn {
    border: 1px solid rgba(245, 217, 159, 0.24);
    color: var(--ivory);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

.wish-line {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 36px;
    max-width: 680px;
}

.wish-chip {
    min-height: 104px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(245, 217, 159, 0.17);
    background:
        linear-gradient(
            160deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.032)
        ),
        rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.wish-chip strong {
    display: block;
    color: var(--champagne);
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
}

.wish-chip span {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
}

.hero-art {
    position: relative;
    min-height: 580px;
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    animation: reveal 1s ease 0.48s forwards;
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.orbital-card {
    position: absolute;
    inset: 28px 10px 54px;
    border-radius: 42px;
    border: 1px solid rgba(245, 217, 159, 0.24);
    background:
        linear-gradient(
            160deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.035)
        ),
        radial-gradient(
            circle at 50% 16%,
            rgba(245, 217, 159, 0.18),
            transparent 34%
        ),
        rgba(10, 10, 14, 0.66);
    box-shadow:
        var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.orbital-card::before {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(245, 217, 159, 0.13);
    border-radius: 32px;
    pointer-events: none;
}

.orbital-card::after {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    border-radius: 999px;
    background: radial-gradient(
        circle,
        rgba(245, 217, 159, 0.15),
        transparent 66%
    );
    filter: blur(24px);
    opacity: 0.82;
}

.album-visual {
    position: absolute;
    width: min(380px, 78vw);
    aspect-ratio: 1;
    left: 50%;
    top: 48%;
    translate: -50% -50%;
    border-radius: 999px;
    z-index: 2;
    display: grid;
    place-items: center;
}

.album-visual::before {
    content: "";
    position: absolute;
    inset: -20px;
    border-radius: inherit;
    border: 1px solid rgba(245, 217, 159, 0.18);
    background: conic-gradient(
        from 90deg,
        transparent,
        rgba(245, 217, 159, 0.22),
        transparent,
        rgba(232, 184, 180, 0.13),
        transparent
    );
    mask: radial-gradient(circle, transparent 61%, black 62%);
    animation: none;
}

.album-visual::after {
    content: "";
    position: absolute;
    inset: 24px;
    border-radius: inherit;
    background:
        radial-gradient(
            circle at 34% 26%,
            rgba(255, 255, 255, 0.18),
            transparent 10%
        ),
        repeating-radial-gradient(
            circle,
            rgba(255, 255, 255, 0.07) 0 1px,
            transparent 1px 11px
        ),
        radial-gradient(circle, #1b1717 0 30%, #0d0d11 31% 100%);
    border: 1px solid rgba(245, 217, 159, 0.18);
    box-shadow:
        inset 0 0 24px rgba(0, 0, 0, 0.78),
        0 30px 80px rgba(0, 0, 0, 0.38);
    animation: rotateSlow 9s linear infinite paused;
}

body.is-playing .album-visual::after {
    animation-play-state: running;
    animation-name: rotateSlow;
    animation-duration: 9s;
}

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

.album-center {
    position: relative;
    z-index: 3;
    width: 30%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(245, 217, 159, 0.45);
    background:
        radial-gradient(
            circle at 30% 18%,
            rgba(255, 255, 255, 0.42),
            transparent 18%
        ),
        linear-gradient(145deg, #fff1c6, #c8964e 58%, #6e3f1c 100%);
    color: #130d09;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 0 42px rgba(245, 217, 159, 0.24);
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
    letter-spacing: 0.12em;
    font-size: 12px;
    text-transform: uppercase;
}

.album-avatar {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
    object-fit: cover;
    animation: rotateSlow 9s linear infinite;
}

.floating-card {
    position: absolute;
    z-index: 4;
    width: 174px;
    min-height: 120px;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(245, 217, 159, 0.2);
    background: rgba(255, 255, 255, 0.075);
    backdrop-filter: blur(16px);
    box-shadow:
        0 20px 44px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    animation: none;
}

.floating-card.one {
    left: -6px;
    top: 86px;
    rotate: -7deg;
}

.floating-card.two {
    right: -4px;
    bottom: 104px;
    rotate: 7deg;
    animation-delay: -2.4s;
}

.floating-card.three {
    left: 42px;
    /*bottom: 18px;
    rotate: 3deg;*/
    bottom: 63px;
    rotate: 24deg;
    animation-delay: -3.8s;
}

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

.floating-card small {
    display: block;
    color: var(--champagne);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
}

.floating-card b {
    display: block;
    margin-top: 14px;
    color: var(--ivory);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.25;
}

.floating-card span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
}

.section {
    margin-top: 28px;
    opacity: 0;
    transform: translateY(18px);
    animation: reveal 0.9s ease 0.65s forwards;
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 482px;
    gap: 18px;
    align-items: stretch;
}

.glass-panel {
    border: 1px solid rgba(245, 217, 159, 0.18);
    background:
        linear-gradient(
            155deg,
            rgba(255, 255, 255, 0.09),
            rgba(255, 255, 255, 0.035)
        ),
        rgba(9, 10, 14, 0.56);
    border-radius: var(--radius-xl);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.player-panel {
    padding: 24px;
    min-height: 390px;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.player-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        120deg,
        transparent 0 30%,
        rgba(255, 255, 255, 0.07) 42%,
        transparent 55%
    );
    transform: translateX(-100%);
    animation: none;
}

@keyframes panelSheen {
    0%,
    45% {
        transform: translateX(-120%);
        opacity: 0;
    }
    54% {
        opacity: 1;
    }
    70%,
    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

.record-wrap {
    width: 208px;
    aspect-ratio: 1;
    position: relative;
    display: grid;
    place-items: center;
    justify-self: center;
    isolation: isolate;
}

.record {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 50%,
            transparent 0 23%,
            rgba(245, 217, 159, 0.13) 24%,
            transparent 25%
        ),
        repeating-radial-gradient(
            circle at 50% 50%,
            rgba(255, 255, 255, 0.08) 0 1px,
            transparent 1px 9px
        ),
        radial-gradient(
            circle at 34% 28%,
            rgba(255, 255, 255, 0.12),
            transparent 18%
        ),
        radial-gradient(circle, #252326 0 32%, #101014 58%, #050507 100%);
    border: 2px solid rgba(245, 217, 159, 0.42);
    box-shadow:
        inset 0 0 0 12px rgba(255, 255, 255, 0.025),
        inset 0 0 0 32px rgba(0, 0, 0, 0.22),
        inset 0 0 24px rgba(0, 0, 0, 0.52),
        0 20px 52px rgba(0, 0, 0, 0.44);
    animation: rotateSlow 8s linear infinite paused;
}

body.is-playing .record {
    animation-play-state: running;
}

.record::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(
            circle at 50% 50%,
            transparent 0 29%,
            rgba(245, 217, 159, 0.09) 29.4%,
            transparent 31%
        ),
        conic-gradient(
            from 78deg,
            transparent,
            rgba(255, 255, 255, 0.18),
            transparent 23%,
            transparent 100%
        );
    mix-blend-mode: screen;
    pointer-events: none;
}

.record::after {
    content: "";
    position: absolute;
    inset: 32%;
    border-radius: 999px;
    border: 1px solid rgba(245, 217, 159, 0.56);
    box-shadow:
        0 0 0 10px rgba(245, 217, 159, 0.05),
        0 0 28px rgba(245, 217, 159, 0.14);
    pointer-events: none;
}

.record-avatar {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 39%;
    height: 39%;
    display: block;
    transform: translate(-50%, -50%) rotate(180deg);
    object-fit: cover;
    border-radius: 999px;
    border: 2px solid rgba(245, 217, 159, 0.72);
    box-shadow:
        0 0 0 6px rgba(16, 12, 12, 0.62),
        0 0 24px rgba(245, 217, 159, 0.22);
}

.tonearm {
    position: absolute;
    z-index: 5;
    right: -10px;
    top: -26px;
    width: 124px;
    height: 185px;
    object-fit: contain;
    object-position: center;
    transform-origin: 96px 29px;
    transform: rotate(-42deg);
    transition:
        transform 0.45s ease;
    pointer-events: none;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.25))
        drop-shadow(0 0 12px rgba(245, 217, 159, 0.08));
}

body.is-playing .tonearm {
    transform: rotate(-10deg);
}

.track-meta {
    position: relative;
    z-index: 6;
    min-width: 0;
}

.track-meta .label {
    color: var(--champagne);
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
}

.track-meta h3 {
    margin: 14px 0 10px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.track-meta p {
    margin: 0;
    color: var(--muted);
    line-height: 1.85;
    font-size: 14px;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.circle-btn {
    position: relative;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--champagne);
    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(255, 255, 255, 0.08),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.02)
        ),
        rgba(20, 15, 13, 0.62);
    border: 1px solid rgba(245, 217, 159, 0.72);
    box-shadow:
        0 0 0 3px rgba(245, 217, 159, 0.08),
        0 14px 34px rgba(186, 132, 56, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.circle-btn::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: inherit;
    border: 1px solid rgba(245, 217, 159, 0.22);
    pointer-events: none;
}

.play-symbol {
    position: relative;
    width: 24px;
    height: 28px;
    display: block;
}

.play-symbol::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 0;
    height: 0;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 19px solid #ffe5a3;
    filter: drop-shadow(0 0 8px rgba(245, 217, 159, 0.55))
        drop-shadow(0 0 18px rgba(208, 142, 56, 0.25));
}

body.is-playing .play-symbol::before,
body.is-playing .play-symbol::after {
    content: "";
    position: absolute;
    top: 1px;
    width: 8px;
    height: 26px;
    border-radius: 3px;
    background: linear-gradient(180deg, #fff1bd, #d69b48);
    filter: drop-shadow(0 0 8px rgba(245, 217, 159, 0.5))
        drop-shadow(0 0 18px rgba(208, 142, 56, 0.22));
}

body.is-playing .play-symbol::before {
    left: 3px;
    border: 0;
}

body.is-playing .play-symbol::after {
    right: 3px;
}

.control-text {
    color: var(--faint);
    font-size: 12px;
    line-height: 1.6;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
}

.progress-wrap {
    margin-top: 22px;
}

.progress-track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    cursor: pointer;
}

.progress-bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #fff4d1, #d9a75d, #f1c7bc);
    box-shadow: 0 0 16px rgba(245, 217, 159, 0.28);
}

.time-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
    color: rgba(255, 249, 237, 0.48);
    font-size: 11px;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
}

.song-status {
    margin-top: 12px;
    color: rgba(245, 217, 159, 0.82);
    font-size: 12px;
    line-height: 1.65;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
}

.lyrics-panel {
    padding: 28px;
    min-height: 390px;
    overflow: hidden;
    position: relative;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.panel-title h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.panel-title span {
    color: var(--champagne);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
}

.lyrics-list {
    height: 304px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(transparent, black 14%, black 84%, transparent);
}

.lyrics-inner {
    transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
    padding: 86px 0;
}

.lyric-line {
    min-height: 38px;
    display: flex;
    align-items: center;
    color: rgba(255, 249, 237, 0.43);
    font-size: clamp(15px, 2.2vw, 18px);
    line-height: 1.8;
    letter-spacing: 0.02em;
    transform: scale(0.98);
    transition:
        color 0.35s ease,
        transform 0.35s ease,
        opacity 0.35s ease;
    opacity: 0.72;
}

.lyric-line.active {
    color: var(--ivory);
    opacity: 1;
    transform: scale(1);
    text-shadow: 0 0 18px rgba(245, 217, 159, 0.2);
}

.lyric-line.section-line {
    min-height: 32px;
    margin-top: 8px;
    color: rgba(245, 217, 159, 0.82);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
}

.lyric-line.section-line.active {
    color: var(--champagne);
    text-shadow: 0 0 18px rgba(245, 217, 159, 0.32);
}

.lyric-line.active::before {
    content: "";
    width: 28px;
    height: 1px;
    margin-right: 12px;
    background: linear-gradient(90deg, var(--champagne), transparent);
    flex: 0 0 auto;
}

.memory-section {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}

.memory-card {
    min-height: 230px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(245, 217, 159, 0.16);
    position: relative;
    overflow: hidden;
    background: var(--photo-bg);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.memory-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0 46%, rgba(5, 6, 10, 0.82) 100%),
        radial-gradient(
            circle at 20% 10%,
            rgba(255, 255, 255, 0.2),
            transparent 24%
        );
    pointer-events: none;
}

.memory-card::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    pointer-events: none;
}

.memory-info {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 1;
}

.memory-info small {
    color: var(--champagne);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
}

.memory-info strong {
    display: block;
    margin-top: 8px;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.35;
}

.note-section {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
}

.letter-preview {
    padding: 30px;
}

.letter-preview h3,
.closing-card h3 {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 500;
}

.letter-preview p,
.closing-card p {
    margin: 0;
    color: var(--muted);
    line-height: 2;
    font-size: 15px;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
}

.letter-preview .hero-actions {
    margin-top: 22px;
}

.closing-card {
    padding: 30px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(
            circle at 82% 20%,
            rgba(245, 217, 159, 0.16),
            transparent 32%
        ),
        linear-gradient(
            155deg,
            rgba(255, 255, 255, 0.09),
            rgba(255, 255, 255, 0.032)
        ),
        rgba(10, 10, 14, 0.56);
}

.signature {
    color: var(--champagne);
    font-size: 20px;
    letter-spacing: 0.08em;
    text-align: right;
}

.cake-section {
    margin-top: 18px;
}

.cake-panel {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    align-items: center;
    gap: 28px;
    padding: clamp(26px, 4vw, 46px);
    overflow: hidden;
    background:
        radial-gradient(
            circle at 76% 24%,
            rgba(255, 125, 184, 0.16),
            transparent 34%
        ),
        radial-gradient(
            circle at 52% 72%,
            rgba(143, 211, 255, 0.14),
            transparent 36%
        ),
        linear-gradient(
            155deg,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.035)
        ),
        rgba(9, 10, 16, 0.6);
}

.cake-panel::after {
    content: "";
    position: absolute;
    right: -12%;
    top: -18%;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(245, 217, 159, 0.16),
        transparent 64%
    );
    filter: blur(24px);
    pointer-events: none;
}

.cake-copy {
    position: relative;
    z-index: 2;
}

.cake-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(245, 217, 159, 0.22);
    background: rgba(255, 255, 255, 0.05);
    color: var(--champagne);
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
}

.cake-copy h3 {
    margin: 0;
    color: var(--text);
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -0.05em;
}

.cake-copy p {
    max-width: 480px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 2;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
}

.birthday-cake {
    position: relative;
    z-index: 2;
    width: min(680px, 92vw);
    aspect-ratio: 4 / 3;
    height: auto;
    margin: 0 auto;
    border-radius: 26px;
    overflow: hidden;
    filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.34));
    box-shadow:
        inset 0 0 0 1px rgba(245, 217, 159, 0.18),
        0 0 80px rgba(245, 217, 159, 0.12);
}

.cake-wish-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.cake-glow {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 330px;
    height: 330px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.18),
        rgba(245, 217, 159, 0.08) 34%,
        transparent 70%
    );
    filter: blur(22px);
    opacity: 0.72;
}

.cake-layer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

.cake-layer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 45%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.42),
        rgba(255, 255, 255, 0)
    );
}

.cake-layer::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 14px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    filter: blur(2px);
}

.cake-base {
    bottom: 0;
    width: 92%;
    height: 106px;
    border-radius: 24px 24px 44px 44px;
    background: linear-gradient(180deg, #f8d2e5 0%, #ec8fc1 100%);
    box-shadow: 0 24px 56px rgba(236, 143, 193, 0.2);
}

.cake-middle {
    bottom: 88px;
    width: 74%;
    height: 96px;
    border-radius: 22px 22px 34px 34px;
    background: linear-gradient(180deg, #fff1ca 0%, #efd08d 100%);
}

.cake-top {
    bottom: 164px;
    width: 58%;
    height: 86px;
    border-radius: 22px 22px 30px 30px;
    background: linear-gradient(180deg, #d9f0ff 0%, #91cdf0 100%);
}

.candle {
    position: absolute;
    bottom: 242px;
    left: calc(50% + var(--offset));
    width: 14px;
    height: 52px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: repeating-linear-gradient(45deg, #fff 0 7px, #ef8ebf 7px 14px);
    box-shadow: 0 8px 18px rgba(239, 142, 191, 0.18);
}

.candle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -6px;
    width: 4px;
    height: 10px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #ffb15a;
    opacity: 0.78;
}

.flame {
    position: absolute;
    left: 50%;
    top: -30px;
    width: 22px;
    height: 32px;
    border-radius: 50% 50% 42% 42%;
    transform: translateX(-50%);
    background: radial-gradient(
        circle at 50% 64%,
        #fff 0 22%,
        #ffe49c 23% 58%,
        #ff9638 59% 100%
    );
    filter: drop-shadow(0 0 18px rgba(255, 214, 140, 0.92));
    animation: flameFlicker 0.9s ease-in-out infinite alternate;
}

@keyframes flameFlicker {
    from {
        transform: translateX(-50%) scale(0.92) rotate(-3deg);
    }
    to {
        transform: translateX(-50%) scale(1.08) rotate(4deg);
    }
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(2, 3, 7, 0.64);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.28s ease,
        visibility 0.28s ease;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    width: min(640px, 100%);
    max-height: min(78vh, 680px);
    overflow: auto;
    position: relative;
    padding: 32px;
    border-radius: 34px;
    border: 1px solid rgba(245, 217, 159, 0.25);
    background:
        linear-gradient(
            150deg,
            rgba(255, 255, 255, 0.13),
            rgba(255, 255, 255, 0.045)
        ),
        rgba(9, 10, 14, 0.86);
    box-shadow:
        var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.28s ease;
}

.modal.open .modal-card {
    transform: translateY(0) scale(1);
}

.modal-card h3 {
    margin: 0 0 18px;
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.18;
    font-weight: 500;
}

.modal-card p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 2.05;
    font-size: 16px;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
}

.close-btn {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(245, 217, 159, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ivory);
    cursor: pointer;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(20px + var(--safe-bottom));
    z-index: 90;
    translate: -50% 16px;
    max-width: min(520px, calc(100% - 32px));
    padding: 12px 16px;
    border: 1px solid rgba(245, 217, 159, 0.24);
    border-radius: 999px;
    color: var(--ivory);
    background: rgba(10, 10, 14, 0.72);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.28s ease,
        translate 0.28s ease;
    font-size: 13px;
    line-height: 1.6;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
    text-align: center;
}

.toast.show {
    opacity: 1;
    translate: -50% 0;
}

footer {
    margin: 34px 0 0;
    padding: 24px 0 4px;
    color: rgba(255, 249, 237, 0.38);
    text-align: center;
    font-size: 12px;
    line-height: 1.8;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        sans-serif;
}

@media (max-width: 980px) {
    .hero,
    .section-grid,
    .note-section {
        grid-template-columns: 1fr;
    }

    .cake-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cake-copy p {
        margin-left: auto;
        margin-right: auto;
    }

    .birthday-cake {
        width: min(640px, 92vw);
        height: auto;
    }

    .candle {
        bottom: 226px;
    }

    .hero {
        min-height: auto;
    }

    .hero-art {
        min-height: 520px;
        order: -1;
    }

    .wish-line,
    .memory-section {
        grid-template-columns: 1fr;
    }

    .memory-card {
        min-height: 250px;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 24px, 1180px);
        padding-top: calc(18px + var(--safe-top));
    }

    .topbar {
        align-items: flex-start;
        margin-bottom: 10px;
    }

    .mini-chip:not(:first-child) {
        display: none;
    }

    .hero-copy {
        padding-top: 0;
    }

    .hero h2 {
        font-size: clamp(42px, 16vw, 64px);
    }

    .hero-subtitle {
        margin-top: 20px;
    }

    .hero-art {
        min-height: 430px;
    }

    .orbital-card {
        inset: 20px 0 36px;
        border-radius: 34px;
    }

    .album-visual {
        width: min(310px, 82vw);
    }

    .floating-card {
        width: 138px;
        min-height: 104px;
        padding: 13px;
        border-radius: 20px;
    }

    .floating-card b {
        font-size: 17px;
    }

    .floating-card span {
        font-size: 11px;
    }

    .floating-card.one {
        left: 4px;
        top: 58px;
    }

    .floating-card.two {
        right: 4px;
        bottom: 72px;
    }

    .floating-card.three {
        left: 26px;
        bottom: 0;
    }

    .player-panel {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px 20px;
    }

    .record-wrap {
        margin: 0 auto;
        width: 164px;
    }

    .tonearm {
        right: -8px;
        top: -22px;
        width: 96px;
        height: 144px;
        transform-origin: 74px 23px;
    }

    .player-controls {
        justify-content: center;
    }

    .lyrics-panel,
    .letter-preview,
    .closing-card,
    .modal-card {
        padding: 24px 20px;
        border-radius: 28px;
    }

    .gate-card {
        padding: 24px 20px;
        border-radius: 32px;
    }

    .gate h1 {
        letter-spacing: 0.04em;
    }
}

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