@font-face {
    font-family: "LoveSerif";
    src: url("../fonts/noto-serif-sc.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #fff8f7;
    --muted: rgba(255, 241, 239, 0.64);
    --faint: rgba(255, 241, 239, 0.34);
    --line: rgba(255, 234, 231, 0.14);
    --panel: rgba(28, 12, 22, 0.64);
    --accent: #ff647c;
    --secondary: #ffd0a8;
    --background: #0b060d;
    --serif: "LoveSerif", "Songti SC", "STSong", "Noto Serif SC", serif;
    --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background);
}

body {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 74% 40%, color-mix(in srgb, var(--accent) 14%, transparent) 0, transparent 32%),
        radial-gradient(circle at 20% 78%, color-mix(in srgb, var(--secondary) 7%, transparent) 0, transparent 27%),
        var(--background);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -3;
    background: linear-gradient(180deg, rgba(9, 5, 11, 0.08), rgba(9, 5, 11, 0.52));
    content: "";
    pointer-events: none;
}

button,
input {
    font: inherit;
}

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

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    color: #190a12;
    background: var(--secondary);
}

.noise {
    position: fixed;
    inset: 0;
    z-index: 20;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
    pointer-events: none;
}

#heart-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.edge-glow {
    position: fixed;
    inset: 0;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 180px rgba(0, 0, 0, 0.78);
    pointer-events: none;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 86px;
    padding: 0 clamp(22px, 5vw, 76px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: rgba(255, 247, 244, 0.82);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.24em;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.brand-mark span {
    width: 6px;
    height: 6px;
    background: var(--accent);
    box-shadow: 0 0 16px var(--accent);
    transform: rotate(45deg);
}

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

.icon-button,
.admin-entry {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(15, 7, 13, 0.28);
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.icon-button:hover,
.admin-entry:hover {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.icon-button svg,
.admin-entry svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.music-bars {
    display: none;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    width: 18px;
    height: 15px;
}

.music-bars i {
    width: 2px;
    height: 5px;
    border-radius: 2px;
    background: var(--accent);
    animation: music-bar 900ms ease-in-out infinite alternate;
}

.music-bars i:nth-child(2) {
    height: 11px;
    animation-delay: -300ms;
}

.music-bars i:nth-child(3) {
    height: 7px;
    animation-delay: -600ms;
}

.icon-button.is-playing svg {
    display: none;
}

.icon-button.is-playing .music-bars {
    display: flex;
}

@keyframes music-bar {
    to {
        height: 13px;
    }
}

#experience {
    position: relative;
    min-height: 100svh;
}

.scene {
    position: relative;
    z-index: 3;
    display: none;
    min-height: 100vh;
    min-height: 100svh;
    padding: 110px clamp(22px, 5vw, 76px) 70px;
}

.scene.is-active {
    display: flex;
    animation: scene-in 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes scene-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.intro-scene {
    align-items: flex-end;
    justify-content: center;
    padding-bottom: clamp(56px, 9vh, 104px);
}

.intro-scene::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 34%;
    background: linear-gradient(180deg, transparent, rgba(7, 3, 8, 0.58));
    content: "";
    pointer-events: none;
}

.intro-content {
    position: relative;
    z-index: 2;
    width: min(880px, 100%);
    text-align: center;
}

.eyebrow {
    margin: 0 0 24px;
    color: color-mix(in srgb, var(--secondary) 82%, white);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.recipient {
    margin: 0 0 16px;
    color: rgba(255, 246, 242, 0.54);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.28em;
}

.intro-content h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(46px, 7.6vw, 96px);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.08;
    text-shadow: 0 6px 40px rgba(0, 0, 0, 0.44);
}

.intro-copy {
    width: min(610px, 100%);
    margin: 24px auto 0;
    color: var(--muted);
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.9;
}

.intro-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

.heart-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 188px;
    height: 56px;
    padding: 0 26px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--accent) 58%, transparent);
    border-radius: 999px;
    color: #fff9f7;
    background: color-mix(in srgb, var(--accent) 21%, rgba(17, 7, 15, 0.72));
    box-shadow: 0 10px 45px color-mix(in srgb, var(--accent) 20%, transparent), inset 0 1px rgba(255, 255, 255, 0.12);
    cursor: pointer;
    backdrop-filter: blur(16px);
    transition: transform 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.heart-button:hover {
    background: color-mix(in srgb, var(--accent) 30%, rgba(17, 7, 15, 0.72));
    box-shadow: 0 16px 55px color-mix(in srgb, var(--accent) 34%, transparent), inset 0 1px rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.heart-button:active {
    transform: translateY(0) scale(0.98);
}

.heart-button svg {
    width: 18px;
    height: 18px;
    fill: color-mix(in srgb, var(--accent) 46%, transparent);
    stroke: currentColor;
    stroke-width: 1.4;
}

.heart-button-glow {
    position: absolute;
    top: 50%;
    left: -20%;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--accent);
    filter: blur(38px);
    opacity: 0.34;
    transform: translateY(-50%);
    animation: button-glow 4s ease-in-out infinite alternate;
}

@keyframes button-glow {
    to {
        left: 65%;
        opacity: 0.2;
    }
}

.intro-note {
    color: var(--faint);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.reveal-item {
    animation: reveal-up 900ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.reveal-item:nth-child(2) {
    animation-delay: 80ms;
}

.reveal-item:nth-child(3) {
    animation-delay: 160ms;
}

.reveal-item:nth-child(4) {
    animation-delay: 250ms;
}

.reveal-item:nth-child(5) {
    animation-delay: 340ms;
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    z-index: 2;
    display: grid;
    width: 18px;
    height: 32px;
    place-items: start center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    transform: translateX(-50%);
}

.scroll-cue span {
    width: 2px;
    height: 7px;
    margin-top: 7px;
    border-radius: 2px;
    background: var(--secondary);
    animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
    0%,
    100% {
        opacity: 0;
        transform: translateY(0);
    }
    35% {
        opacity: 1;
    }
    75% {
        opacity: 0;
        transform: translateY(10px);
    }
}

.question-scene {
    align-items: center;
    justify-content: center;
}

.question-shell {
    width: min(760px, 100%);
    margin-top: -4vh;
}

.question-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--faint);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.question-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--serif);
    font-style: normal;
}

.question-count b {
    color: var(--secondary);
    font-size: 15px;
    font-weight: 500;
}

.question-count i {
    width: 24px;
    height: 1px;
    background: var(--line);
}

.question-count em {
    font-size: 11px;
    font-style: normal;
}

.question-progress {
    height: 1px;
    margin-top: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.question-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    box-shadow: 0 0 12px var(--accent);
    transition: width 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.question-card {
    position: relative;
    margin-top: clamp(28px, 5vh, 54px);
    padding: clamp(30px, 5.8vw, 66px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(22px);
}

.question-card::before {
    position: absolute;
    top: -160px;
    right: -100px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    filter: blur(70px);
    content: "";
    pointer-events: none;
}

.question-index {
    display: block;
    margin-bottom: 26px;
    color: color-mix(in srgb, var(--secondary) 76%, white);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.28em;
}

.question-card h2 {
    max-width: 630px;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(27px, 4vw, 44px);
    font-weight: 500;
    letter-spacing: 0.015em;
    line-height: 1.36;
}

.question-hint {
    min-height: 22px;
    margin: 18px 0 0;
    color: var(--faint);
    font-size: 12px;
    line-height: 1.7;
}

.question-card form {
    margin-top: 36px;
}

.answer-field {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: border-color 180ms ease;
}

.answer-field:focus-within {
    border-color: color-mix(in srgb, var(--secondary) 70%, transparent);
}

.answer-field input {
    width: 100%;
    height: 58px;
    padding: 0 10px 0 0;
    border: 0;
    outline: none;
    color: var(--ink);
    background: transparent;
    font-family: var(--serif);
    font-size: clamp(17px, 2vw, 21px);
}

.answer-field input::placeholder {
    color: rgba(255, 255, 255, 0.24);
}

.answer-submit {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.answer-submit:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.answer-submit:disabled {
    cursor: wait;
    opacity: 0.5;
}

.answer-submit svg,
.back-button svg,
.replay-button svg,
.burst-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.form-message {
    min-height: 22px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.form-message.is-error {
    color: #ff9ba8;
}

.form-message.is-success {
    color: #ffd7bb;
}

.question-card.is-shaking {
    animation: card-shake 380ms ease;
}

@keyframes card-shake {
    20%,
    60% {
        transform: translateX(-7px);
    }
    40%,
    80% {
        transform: translateX(7px);
    }
}

.text-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    color: var(--faint);
    background: transparent;
    font-size: 11px;
    cursor: pointer;
    transition: color 180ms ease;
}

.text-button:hover {
    color: var(--ink);
}

.text-button svg {
    width: 14px;
    height: 14px;
}

.back-button {
    margin-top: 26px;
}

.proposal-scene {
    align-items: center;
    justify-content: center;
}

.proposal-layout {
    display: grid;
    width: min(1100px, 100%);
    align-items: center;
    gap: clamp(30px, 7vw, 100px);
    grid-template-columns: minmax(240px, 0.72fr) minmax(420px, 1.28fr);
}

.mascot-stage {
    position: relative;
    display: flex;
    min-height: 430px;
    align-items: flex-end;
    justify-content: center;
}

.mascot-orbit {
    position: absolute;
    top: 46%;
    left: 50%;
    width: min(34vw, 360px);
    aspect-ratio: 1;
    border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.mascot-orbit::before,
.mascot-orbit::after,
.mascot-orbit i {
    position: absolute;
    inset: 12%;
    border: 1px solid color-mix(in srgb, var(--secondary) 9%, transparent);
    border-radius: 50%;
    content: "";
}

.mascot-orbit::after {
    inset: 25%;
    border-color: color-mix(in srgb, var(--accent) 14%, transparent);
}

.mascot-orbit i:first-child {
    inset: -6%;
    border-style: dashed;
    opacity: 0.55;
    animation: mascot-orbit 32s linear infinite;
}

.mascot-orbit i:last-child {
    inset: 37%;
    border: 0;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%);
}

@keyframes mascot-orbit {
    to {
        transform: rotate(360deg);
    }
}

.boy-mascot {
    position: relative;
    z-index: 2;
    width: min(310px, 100%);
    overflow: visible;
    filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.32));
}

.boy-body {
    transform-origin: 130px 235px;
    animation: boy-bounce 1.7s ease-in-out infinite;
}

.boy-head {
    transform-origin: 132px 145px;
    animation: boy-head-bob 1.7s ease-in-out infinite;
}

.boy-arm-left {
    transform-origin: 101px 197px;
    animation: boy-arm-left 1.7s ease-in-out infinite;
}

.boy-arm-right {
    transform-origin: 158px 197px;
    animation: boy-arm-right 1.7s ease-in-out infinite;
}

.boy-hand-left {
    transform-origin: 48px 237px;
    animation: hand-wave-left 0.85s ease-in-out infinite alternate;
}

.boy-hand-right {
    transform-origin: 213px 228px;
    animation: hand-wave-right 0.85s ease-in-out infinite alternate;
}

.boy-leg-left {
    transform-origin: 108px 238px;
    animation: leg-tap-left 1.7s ease-in-out infinite;
}

.boy-leg-right {
    transform-origin: 152px 238px;
    animation: leg-tap-right 1.7s ease-in-out infinite;
}

.mascot-shadow {
    transform-origin: 130px 286px;
    animation: mascot-shadow 1.7s ease-in-out infinite;
}

.music-note {
    opacity: 0;
    transform-origin: center;
}

.note-one {
    animation: music-note-one 2.6s ease-out infinite;
}

.note-two {
    animation: music-note-two 2.6s 0.8s ease-out infinite;
}

@keyframes boy-bounce {
    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }
    18% {
        transform: translateY(-5px) rotate(1.2deg);
    }
    36% {
        transform: translateY(0) rotate(-1deg);
    }
    54% {
        transform: translateY(-4px) rotate(1deg);
    }
}

@keyframes boy-head-bob {
    0%,
    100% {
        transform: rotate(-2deg);
    }
    25% {
        transform: rotate(3deg);
    }
    50% {
        transform: rotate(-1deg);
    }
    75% {
        transform: rotate(2deg);
    }
}

@keyframes boy-arm-left {
    0%,
    100% {
        transform: rotate(-8deg);
    }
    25% {
        transform: rotate(-42deg);
    }
    50% {
        transform: rotate(-16deg);
    }
    75% {
        transform: rotate(-36deg);
    }
}

@keyframes boy-arm-right {
    0%,
    100% {
        transform: rotate(7deg);
    }
    25% {
        transform: rotate(38deg);
    }
    50% {
        transform: rotate(13deg);
    }
    75% {
        transform: rotate(44deg);
    }
}

@keyframes hand-wave-left {
    to {
        transform: rotate(15deg) translateY(-2px);
    }
}

@keyframes hand-wave-right {
    to {
        transform: rotate(-17deg) translateY(-3px);
    }
}

@keyframes leg-tap-left {
    0%,
    100% {
        transform: rotate(0);
    }
    30% {
        transform: rotate(5deg);
    }
}

@keyframes leg-tap-right {
    0%,
    100% {
        transform: rotate(0);
    }
    35% {
        transform: rotate(-5deg);
    }
}

@keyframes mascot-shadow {
    50% {
        opacity: 0.34;
        transform: scaleX(0.86);
    }
}

@keyframes music-note-one {
    0% {
        opacity: 0;
        transform: translate(0, 12px) rotate(-8deg) scale(0.7);
    }
    20% {
        opacity: 0.7;
    }
    100% {
        opacity: 0;
        transform: translate(-16px, -30px) rotate(10deg) scale(1);
    }
}

@keyframes music-note-two {
    0% {
        opacity: 0;
        transform: translate(0, 8px) rotate(7deg) scale(0.7);
    }
    20% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translate(17px, -28px) rotate(-12deg) scale(1);
    }
}

.mascot-caption {
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    color: var(--faint);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.mascot-caption span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: caption-pulse 1.7s ease-in-out infinite;
}

@keyframes caption-pulse {
    50% {
        opacity: 0.25;
        transform: scale(0.7);
    }
}

.proposal-card {
    position: relative;
    padding: clamp(30px, 4.5vw, 56px);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022));
    box-shadow: 0 40px 110px rgba(0, 0, 0, 0.36), inset 0 1px rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(24px);
}

.proposal-card .eyebrow {
    margin-bottom: 20px;
}

.proposal-card h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(28px, 3.7vw, 46px);
    font-weight: 500;
    line-height: 1.38;
}

.proposal-copy {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.proposal-options {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 30px;
}

.proposal-option {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    gap: 14px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    color: rgba(255, 247, 244, 0.78);
    background: rgba(255, 255, 255, 0.025);
    text-align: left;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.proposal-option:hover {
    border-color: color-mix(in srgb, var(--accent) 52%, transparent);
    color: #fff;
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    transform: translateX(3px);
}

.proposal-option.is-selected {
    border-color: color-mix(in srgb, var(--accent) 72%, transparent);
    color: #fff;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.proposal-option:disabled {
    cursor: wait;
    opacity: 0.5;
}

.proposal-option .option-index {
    color: color-mix(in srgb, var(--secondary) 70%, white);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.proposal-option .option-label {
    flex: 1;
    font-family: var(--serif);
    font-size: 15px;
}

.proposal-option svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
    opacity: 0.5;
}

.proposal-message {
    min-height: 18px;
    margin: 12px 0 0;
    color: #ff9ba8;
    font-size: 11px;
    line-height: 1.6;
}

.proposal-result {
    margin-top: 4px;
    text-align: center;
    animation: result-in 500ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

@keyframes result-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}

.result-mark {
    display: grid;
    width: 46px;
    height: 46px;
    margin: 0 auto 18px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    border-radius: 50%;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.result-mark svg {
    width: 19px;
    height: 19px;
    fill: color-mix(in srgb, var(--accent) 25%, transparent);
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
}

.proposal-result h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 500;
}

.proposal-result p {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.proposal-continue {
    min-width: 166px;
    height: 48px;
    margin-top: 26px;
    font-size: 12px;
}

.proposal-continue svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.final-scene {
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 90px;
}

.final-content {
    position: relative;
    z-index: 3;
    width: min(780px, 100%);
    text-align: center;
}

.final-content h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(42px, 7vw, 86px);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.14;
    text-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.final-copy {
    width: min(620px, 100%);
    margin: 28px auto 0;
    color: rgba(255, 244, 241, 0.74);
    font-family: var(--serif);
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 2;
    white-space: pre-line;
}

.love-clock {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 30px;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--faint);
    background: rgba(255, 255, 255, 0.025);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.love-clock strong {
    color: var(--secondary);
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 500;
}

.signature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 38px;
    color: rgba(255, 244, 241, 0.56);
    font-family: var(--serif);
    font-size: 13px;
}

.signature span {
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent));
}

.signature p {
    margin: 0;
    white-space: pre-line;
}

.burst-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 46px;
    margin-top: 36px;
    padding: 0 19px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    font-size: 11px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.burst-button:hover {
    border-color: color-mix(in srgb, var(--accent) 60%, transparent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    transform: translateY(-2px);
}

.burst-button svg {
    width: 15px;
    height: 15px;
    fill: color-mix(in srgb, var(--accent) 32%, transparent);
}

.replay-button {
    position: absolute;
    right: clamp(22px, 5vw, 76px);
    bottom: 34px;
    z-index: 4;
}

.final-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(82vw, 900px);
    aspect-ratio: 1;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.final-orbit::before,
.final-orbit::after,
.final-orbit i {
    position: absolute;
    inset: 0;
    border: 1px solid color-mix(in srgb, var(--accent) 13%, transparent);
    border-radius: 50%;
    content: "";
}

.final-orbit::before {
    animation: orbit-pulse 4.8s ease-in-out infinite;
}

.final-orbit::after {
    inset: 13%;
    border-color: color-mix(in srgb, var(--secondary) 8%, transparent);
}

.final-orbit i:nth-child(1) {
    inset: 24%;
    border-color: color-mix(in srgb, var(--accent) 18%, transparent);
}

.final-orbit i:nth-child(2) {
    inset: 35%;
    border-color: transparent;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 8%, transparent), transparent 68%);
}

.final-orbit i:nth-child(3) {
    inset: -5%;
    border-style: dashed;
    opacity: 0.34;
    animation: orbit-rotate 50s linear infinite;
}

@keyframes orbit-pulse {
    50% {
        opacity: 0.5;
        transform: scale(1.04);
    }
}

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

.heart-burst-layer {
    position: fixed;
    inset: 0;
    z-index: 25;
    overflow: hidden;
    pointer-events: none;
}

.burst-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--size);
    height: var(--size);
    color: var(--accent);
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 55%, transparent));
    opacity: 0;
    animation: burst-heart var(--duration) cubic-bezier(0.16, 0.74, 0.28, 1) forwards;
}

.burst-heart svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

@keyframes burst-heart {
    8% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(var(--x), var(--y)) rotate(var(--rotate)) scale(0.2);
    }
}

.setup-scene {
    align-items: center;
    justify-content: center;
}

.setup-panel {
    width: min(560px, 100%);
    padding: 52px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    text-align: center;
    backdrop-filter: blur(20px);
}

.section-kicker {
    color: var(--secondary);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3em;
}

.setup-panel h1 {
    margin: 22px 0 14px;
    font-family: var(--serif);
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 500;
}

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

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    margin-top: 28px;
    padding: 0 22px;
    border-radius: 999px;
    color: #1d0912;
    background: var(--secondary);
    font-size: 13px;
    font-weight: 600;
}

.primary-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 760px) {
    .site-header {
        height: 72px;
        padding: 0 20px;
    }

    .brand {
        font-size: 9px;
    }

    .icon-button,
    .admin-entry {
        width: 38px;
        height: 38px;
    }

    .scene {
        padding: 96px 20px 44px;
    }

    .intro-scene {
        align-items: center;
        padding-bottom: 72px;
    }

    .intro-content h1 {
        font-size: clamp(38px, 11.5vw, 58px);
        line-height: 1.2;
    }

    .intro-copy {
        margin-top: 20px;
        line-height: 1.8;
    }

    .intro-actions {
        margin-top: 28px;
    }

    .heart-button {
        height: 52px;
    }

    .scroll-cue {
        display: none;
    }

    .question-shell {
        margin-top: -2vh;
    }

    .question-card {
        margin-top: 24px;
        padding: 28px 22px 26px;
    }

    .question-index {
        margin-bottom: 20px;
    }

    .question-card h2 {
        font-size: clamp(25px, 7.8vw, 34px);
        line-height: 1.45;
    }

    .question-card form {
        margin-top: 28px;
    }

    .answer-field input {
        height: 52px;
        font-size: 17px;
    }

    .final-scene {
        align-items: center;
        padding: 96px 20px 86px;
    }

    .final-content h2 {
        font-size: clamp(38px, 12vw, 58px);
        line-height: 1.2;
    }

    .final-copy {
        margin-top: 24px;
        font-size: 14px;
        line-height: 1.95;
    }

    .signature {
        margin-top: 28px;
    }

    .burst-button {
        margin-top: 26px;
    }

    .replay-button {
        right: 20px;
        bottom: 24px;
    }

    .final-orbit {
        width: 140vw;
    }

    .proposal-layout {
        gap: 20px;
        grid-template-columns: 1fr;
    }

    .mascot-stage {
        min-height: 270px;
        align-items: center;
    }

    .boy-mascot {
        width: min(205px, 56vw);
        margin-bottom: 18px;
    }

    .mascot-orbit {
        width: min(68vw, 300px);
    }

    .mascot-caption {
        bottom: 0;
    }

    .proposal-card {
        padding: 28px 22px;
    }

    .proposal-options {
        margin-top: 24px;
    }

    .proposal-option {
        min-height: 50px;
        padding: 0 14px;
    }

    .setup-panel {
        padding: 38px 24px;
    }
}

@media (max-height: 760px) and (min-width: 761px) {
    .proposal-scene {
        padding-top: 90px;
        padding-bottom: 40px;
    }

    .mascot-stage {
        min-height: 360px;
    }

    .boy-mascot {
        width: min(260px, 100%);
    }

    .proposal-card {
        padding-top: 32px;
        padding-bottom: 30px;
    }

    .proposal-options {
        margin-top: 22px;
    }
}

@media (max-height: 720px) and (min-width: 761px) {
    .intro-scene {
        align-items: center;
        padding-top: 100px;
        padding-bottom: 64px;
    }

    .intro-copy {
        margin-top: 18px;
    }

    .intro-actions {
        margin-top: 24px;
    }

    .question-card {
        padding-top: 42px;
        padding-bottom: 38px;
    }

    .final-content h2 {
        font-size: clamp(44px, 5.5vw, 70px);
    }

    .final-copy {
        margin-top: 20px;
    }

    .signature,
    .burst-button {
        margin-top: 24px;
    }
}

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