@media (max-width: 920px) {
    :root {
        --player-space: 74px;
    }

    .soundtrack-player {
        padding: 8px 10px;
        padding-top: calc(env(safe-area-inset-top, 0) + 8px);
        grid-template-columns: 42px minmax(0, 112px) minmax(0, 1fr) 38px;
        gap: 9px;
    }

    .soundtrack-cover {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .soundtrack-title {
        font-size: 0.84rem;
    }

    .soundtrack-artist {
        margin-top: 3px;
        font-size: 0.72rem;
    }

    .soundtrack-toggle {
        width: 38px;
        height: 38px;
    }

    .hero {
        width: min(100%, calc(100% - 20px));
        min-height: calc(100svh - var(--player-space));
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        justify-items: center;
        align-items: start;
        text-align: center;
        gap: 12px;
        padding: 42px 0 112px;
    }

    .copy-block {
        width: min(100%, 34rem);
        max-width: 100%;
    }

    .heart-icon {
        display: none;
    }

    .headline {
        font-size: clamp(2.7rem, 9.8vw, 4.1rem);
        line-height: 0.92;
        max-width: 100%;
        margin-inline: auto;
        text-wrap: pretty;
    }

    .name-row {
        justify-content: center;
        gap: 10px;
        margin-top: 4px;
    }

    .name {
        font-size: clamp(3.8rem, 14vw, 5rem);
    }

    .rays-icon {
        width: 38px;
        margin-bottom: 8px;
    }

    .divider {
        margin: 18px auto 16px;
        gap: 12px;
        width: min(100%, 340px);
    }

    .divider img {
        width: 21px;
    }

    .message {
        justify-content: center;
        gap: 10px;
        margin: 0 auto 6px;
        width: fit-content;
        font-size: 1.02rem;
        line-height: 1.25;
        flex-wrap: wrap;
    }

    .message-heart {
        width: 13px;
    }

    .signature-pill {
        margin: 10px auto 6px;
        padding: 9px 18px 10px;
        font-size: 0.92rem;
        font-weight: 600;
    }

    .signature-pill img {
        width: 15px;
    }

    .photo-card {
        justify-self: center;
        align-self: stretch;
        margin-top: 2px;
        width: auto;
        max-width: min(100%, 340px);
        height: 100%;
        min-height: 240px;
        max-height: 360px;
        aspect-ratio: 1.52;
        padding: 5px;
        border-radius: 24px;
    }

    .main-photo {
        border-radius: 19px;
        object-position: center 22%;
    }

    .sticker-top {
        width: 72px;
        top: -14px;
        right: -7px;
    }

    .sticker-bottom {
        left: -12px;
        bottom: -12px;
        width: 108px;
    }

    .sparkle-a {
        left: auto;
        right: 12%;
        top: 174px;
        width: 12px;
    }

    .sparkle-b {
        right: 7%;
        top: 406px;
        width: 12px;
    }

    .sparkle-c {
        left: 7%;
        bottom: 108px;
        width: 12px;
    }

    .sparkle-d {
        right: 15%;
        bottom: 64px;
        width: 12px;
    }

    .sparkle-e {
        left: 14%;
        top: 72px;
        width: 16px;
    }

    .sparkle-f {
        right: 11%;
        top: 112px;
        width: 12px;
    }

    .sparkle-g {
        left: 18%;
        bottom: 158px;
        width: 12px;
    }

    .sparkle-h {
        right: 10%;
        bottom: 122px;
        width: 12px;
    }

    .date-mark {
        left: 50%;
        bottom: 20px;
        transform: translateX(-50%);
        gap: 8px;
        font-size: 0.78rem;
    }

    .date-mark img {
        width: 17px;
    }

    .wave-canvas {
        height: 90px;
    }
}

@media (max-width: 600px) {
    :root {
        --player-space: 70px;
    }

    .soundtrack-player {
        grid-template-columns: 40px minmax(0, 96px) minmax(0, 1fr) 36px;
        gap: 8px;
        padding: 8px 9px;
        padding-top: calc(env(safe-area-inset-top, 0) + 8px);
    }

    .soundtrack-cover {
        width: 40px;
        height: 40px;
    }

    .soundtrack-title {
        font-size: 0.78rem;
    }

    .soundtrack-artist {
        font-size: 0.68rem;
    }

    .soundtrack-toggle {
        width: 36px;
        height: 36px;
    }

    .soundtrack-toggle-icon {
        font-size: 0.82rem;
    }

    .hero {
        width: calc(100% - 16px);
        gap: 10px;
        padding-top: 34px;
        padding-bottom: 96px;
    }

    .copy-block {
        width: 100%;
    }

    .headline {
        font-size: clamp(2.45rem, 10.6vw, 3.5rem);
        max-width: 100%;
    }

    .name {
        font-size: clamp(3.4rem, 13.5vw, 4.5rem);
    }

    .photo-card {
        margin-top: 0;
        min-height: 220px;
        max-height: 320px;
        aspect-ratio: 1.62;
    }

    .main-photo {
        object-position: center 20%;
    }

    .date-mark {
        bottom: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .confetti-piece {
        animation: none;
        opacity: 0.45;
    }

    .page-glow {
        filter: blur(20px);
    }
}
