:root {
    --pink-0: #fff4f8;
    --pink-1: #ffd6e8;
    --pink-2: #ff9ec8;
    --pink-3: #ff6aa8;
    --pink-4: #e8458b;
    --ink: #7a3a58;
    --ink-soft: #a05a78;
    --card: rgba(255, 255, 255, 0.86);
    --line: #ff8fb8;
    --shadow: #f48ab4;
    --radius: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--pink-1);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--pink-1) url("assets/bg-desktop.png") center / cover no-repeat;
    animation: bgDrift 12s ease-in-out infinite alternate;
}

@media (max-width: 780px),
(orientation: portrait) {
    .bg {
        background-image: url("assets/bg-mobile.png");
    }
}

.veil {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 28%, rgba(255, 255, 255, 0.18), transparent 46%);
}

#petals {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -24px;
    width: 12px;
    height: 9px;
    background: radial-gradient(circle at 30% 30%, #ffe4f0, #ff8cbc);
    border-radius: 80% 0 80% 0;
    opacity: 0.72;
    animation: fall linear infinite;
    filter: drop-shadow(0 2px 2px rgba(255, 120, 170, 0.25));
}

@keyframes fall {
    0% {
        transform: translate3d(0, -10vh, 0) rotate(0deg);
    }

    100% {
        transform: translate3d(var(--drift), 110vh, 0) rotate(360deg);
    }
}

@keyframes bgDrift {
    from {
        transform: scale(1.04) translate3d(0, 0, 0);
    }

    to {
        transform: scale(1.1) translate3d(-1.4%, -1%, 0);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.92);
    }

    70% {
        transform: translateY(-3px) scale(1.03);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes jelly {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.08, 0.92);
    }

    60% {
        transform: scale(0.96, 1.06);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-8deg);
    }

    75% {
        transform: rotate(8deg);
    }
}

@keyframes shine {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.18);
    }
}

@keyframes pulseDot {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 3px rgba(125, 255, 179, 0.28);
    }

    50% {
        transform: scale(1.25);
        box-shadow: 0 0 0 6px rgba(125, 255, 179, 0.08);
    }
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.18);
    }

    40% {
        transform: scale(1);
    }

    55% {
        transform: scale(1.14);
    }
}

.wrap {
    position: relative;
    z-index: 3;
    width: min(440px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 48px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 14px 16px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.avatar-btn,
h1,
.tag,
.chip,
.link,
footer {
    opacity: 0;
}

.avatar-btn {
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
}

.avatar {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    display: block;
    box-shadow:
        0 0 0 6px #fff,
        0 0 0 10px var(--pink-2),
        0 16px 30px rgba(232, 69, 139, 0.28);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.avatar-btn:hover .avatar,
.avatar-btn:focus-visible .avatar {
    transform: rotate(-4deg) scale(1.04);
}

body.ready .avatar-btn {
    animation: popIn 0.38s ease both;
}

h1 {
    margin-top: 16px;
    font-size: clamp(2.1rem, 8vw, 2.7rem);
    line-height: 1;
    color: #ff7eb4;
    letter-spacing: 0.01em;
    text-shadow:
        0 1px 0 #fff,
        0 2px 0 #ff4f98,
        0 10px 18px rgba(255, 80, 150, 0.28);
}

body.ready h1 {
    animation: popIn 0.4s ease both, shine 2.4s ease-in-out 0.4s infinite;
}

.tag {
    margin-top: 8px;
    min-height: 1.5em;
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 0.95rem;
    overflow: hidden;
}

.tag.in {
    animation: tagIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tag.out {
    animation: tagOut 0.22s ease forwards;
}

@keyframes tagIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.94);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes tagOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }

    to {
        opacity: 0;
        transform: translateY(-12px) scale(0.94);
        filter: blur(4px);
    }
}

body.ready .tag:not(.in):not(.out) {
    animation: popIn 0.36s ease 0.05s both;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 7px 14px;
    cursor: pointer;
    border-radius: 999px;
    background: #fff;
    border: 2px solid var(--line);
    box-shadow: 0 4px 0 var(--shadow);
    font-weight: 800;
    font-size: 0.86rem;
    color: var(--pink-4);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.chip:hover {
    transform: translateY(-2px) scale(1.03);
}

.chip:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--shadow);
}

body.ready .chip {
    animation: popIn 0.36s ease 0.08s both;
}

.chip .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7dffb3;
    box-shadow: 0 0 0 3px rgba(125, 255, 179, 0.28);
    animation: pulseDot 1.1s ease-in-out infinite;
}

nav {
    width: 100%;
    margin-top: 22px;
    display: grid;
    gap: 12px;
}

.link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px 14px 8px 8px;
    border-radius: var(--radius);
    background: var(--card);
    border: 3px solid var(--line);
    box-shadow: 0 7px 0 var(--shadow), 0 14px 24px rgba(255, 120, 170, 0.18);
    backdrop-filter: blur(8px);
    text-align: left;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.link.inactive {
    filter: grayscale(100%);
}

body.ready .link {
    animation: popIn 0.38s ease both;
}

body.ready .link:nth-child(1) {
    animation-delay: 0.1s;
}

body.ready .link:nth-child(2) {
    animation-delay: 0.16s;
}

body.ready .link:nth-child(3) {
    animation-delay: 0.22s;
}

body.ready .link:nth-child(4) {
    animation-delay: 0.28s;
}

body.ready .link:nth-child(5) {
    animation-delay: 0.34s;
}

.link:hover {
    transform: translateY(-3px) scale(1.02);
}

.link:active {
    transform: translateY(5px) scale(0.98);
    box-shadow: 0 2px 0 var(--shadow);
}

.link img {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    flex: 0 0 58px;
}

.link:hover img {
    animation: wiggle 0.32s ease;
}

.link strong {
    display: block;
    font-size: 1.02rem;
}

.link small {
    display: block;
    margin-top: 2px;
    color: var(--ink-soft);
    font-size: 0.8rem;
}

footer {
    margin-top: 22px;
    font-size: 0.78rem;
    color: var(--ink-soft);
    font-weight: 700;
}

body.ready footer {
    animation: popIn 0.36s ease 0.4s both;
}

.love {
    display: inline-block;
    color: var(--pink-3);
    animation: heartbeat 1s ease-in-out infinite;
}

#loader {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background:
        radial-gradient(circle at 50% 40%, #fff, transparent 42%),
        #ffd3e6;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

#loader.done {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 118px;
    height: 118px;
    border-radius: 28px;
    box-shadow: 0 10px 24px rgba(232, 69, 139, 0.2);
    animation: blink-2 1s linear infinite both;
}

@keyframes blink-2 {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        opacity: 1;
    }
}

.loader-title {
    font-weight: 800;
    color: var(--pink-4);
    letter-spacing: 0.04em;
}

.loader-bar {
    width: min(220px, 60vw);
    height: 10px;
    border-radius: 999px;
    background: #fff;
    border: 2px solid var(--line);
    overflow: hidden;
}

.loader-bar>i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ffb3d4, #ff6aa8);
    transition: width 0.25s ease;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 8;
    transform: translate(-50%, 18px) scale(0.92);
    background: #fff;
    border: 3px solid var(--line);
    color: var(--pink-4);
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 6px 0 var(--shadow), 0 14px 24px rgba(232, 69, 139, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.heart {
    position: fixed;
    z-index: 9;
    pointer-events: none;
    color: #ff6aa8;
    font-size: 16px;
    animation: pop 700ms ease-out forwards;
}

@keyframes pop {
    0% {
        transform: translate(-50%, -50%) scale(0.4);
        opacity: 1;
    }

    100% {
        transform: translate(calc(-50% + var(--hx)), calc(-50% + var(--hy))) scale(1.2);
        opacity: 0;
    }
}

.seo-vault {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}