@media (max-width: 920px) {
    :root {
        --player-space: 74px;
        --hero-content-width: min(100%, 340px);
        --hero-padding-top: clamp(26px, 4svh, 40px);
        --hero-padding-bottom: clamp(64px, 8svh, 92px);
        --hero-gap: clamp(8px, 1.4svh, 12px);
    }

    .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));
        height: calc(100svh - var(--player-space));
        min-height: 0;
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        justify-items: center;
        align-content: stretch;
        align-items: stretch;
        text-align: center;
        gap: var(--hero-gap);
        padding: var(--hero-padding-top) 0 var(--hero-padding-bottom);
    }

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

    .heart-icon {
        display: none;
    }

    .headline {
        font-size: clamp(3.05rem, 11.1vw, 4.52rem);
        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(4.26rem, 15.2vw, 5.44rem);
    }

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

    .divider {
        margin: 18px auto 16px;
        gap: 12px;
        width: var(--hero-content-width);
    }

    .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: var(--hero-content-width);
        height: 100%;
        min-height: 0;
        max-height: none;
        aspect-ratio: auto;
        padding: 5px;
        border-radius: 24px;
    }

    .photo-card::before {
        border-width: 5px;
    }

    .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;
        --hero-content-width: min(100%, 340px);
        --hero-padding-top: clamp(24px, 3.6svh, 34px);
        --hero-padding-bottom: clamp(58px, 7.4svh, 78px);
        --hero-gap: clamp(7px, 1.1svh, 10px);
    }

    .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);
    }

    .copy-block {
        width: 100%;
    }

    .headline {
        font-size: clamp(2.66rem, 11.55vw, 3.86rem);
        max-width: 100%;
    }

    .name {
        font-size: clamp(3.62rem, 14.35vw, 4.9rem);
    }

    .photo-card {
        margin-top: 0;
    }

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

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

@media (max-width: 600px) and (max-height: 860px) {
    :root {
        --hero-padding-top: 24px;
        --hero-padding-bottom: 58px;
        --hero-gap: 7px;
    }

    .headline {
        font-size: clamp(2.48rem, 10.85vw, 3.38rem);
        line-height: 0.9;
    }

    .name-row {
        margin-top: 2px;
    }

    .name {
        font-size: clamp(3.36rem, 13.85vw, 4.35rem);
    }

    .rays-icon {
        width: 32px;
        margin-bottom: 7px;
    }

    .divider {
        margin: 14px auto 12px;
    }

    .message {
        font-size: 0.96rem;
    }

    .signature-pill {
        margin-top: 8px;
        margin-bottom: 4px;
    }
}

@media (max-width: 920px) and (orientation: landscape) {
    :root {
        --hero-content-width: min(100%, 330px);
        --hero-padding-top: 12px;
        --hero-padding-bottom: 30px;
        --hero-gap: clamp(18px, 4vw, 34px);
    }

    .hero {
        width: min(100%, calc(100% - 40px));
        grid-template-columns: minmax(260px, 0.9fr) minmax(260px, 1fr);
        grid-template-rows: minmax(0, 1fr);
        align-items: center;
        text-align: left;
    }

    .copy-block {
        width: 100%;
        max-width: 380px;
    }

    .headline {
        font-size: clamp(2.6rem, 6vw, 3.7rem);
        line-height: 0.9;
        margin-inline: 0;
    }

    .name-row {
        justify-content: flex-start;
        margin-top: 2px;
    }

    .name {
        font-size: clamp(3.2rem, 7.4vw, 4.4rem);
    }

    .rays-icon {
        width: 34px;
    }

    .divider {
        margin: 12px 0 10px;
    }

    .message {
        justify-content: flex-start;
        margin-left: 0;
        font-size: 0.94rem;
    }

    .signature-pill {
        margin-left: 0;
        margin-bottom: 0;
    }

    .photo-card {
        align-self: center;
        justify-self: center;
        width: min(100%, 340px);
        height: 100%;
    }
}

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

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