:root {
    --bg1: #ffd1e6;
    --bg2: #ffe9f4;
    --card: rgba(255, 255, 255, .72);
    --card2: rgba(255, 255, 255, .62);
    --text: #3a2130;
    --muted: #6b3b54;
    --accent: #ff4f99;
    --accent2: #ff7ab6;
    --border: rgba(58, 33, 48, .12);
    --shadow: 0 18px 50px rgba(255, 79, 153, .22);
    --radius: 22px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(900px 420px at 10% 0%, rgba(255, 79, 153, .22), transparent 60%),
        radial-gradient(900px 420px at 90% 10%, rgba(255, 122, 182, .18), transparent 60%),
        linear-gradient(135deg, var(--bg1), var(--bg2));
    overflow-x: hidden;
}

.wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 18px 14px 28px
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    backdrop-filter: blur(8px);
}

.card.soft {
    background: var(--card2)
}

.stack {
    display: grid;
    gap: 12px
}

.title {
    font-size: 26px;
    margin: 0 0 6px;
    letter-spacing: .2px;
}

.subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.btnrow {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

button,
.btn {
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(255, 79, 153, .24), rgba(255, 122, 182, .16));
    color: var(--text);
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(255, 79, 153, .16);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

button:active,
.btn:active {
    transform: translateY(1px)
}

button:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none !important;
}

.btn.secondary {
    background: rgba(255, 255, 255, .55);
}

.btn.ghost {
    background: transparent;
    box-shadow: none;
}

.pill {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .45);
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--muted);
    width: fit-content;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent)
}

.screen {
    display: none;
    animation: fadeSlideIn .45s ease both;
}

.screen.active {
    display: block
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.center {
    text-align: center
}

.big {
    font-size: 34px;
    margin: 10px 0 6px;
    line-height: 1.08;
}

.glow {
    text-shadow: 0 0 18px rgba(255, 79, 153, .45);
    color: #3a2130;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

.field {
    display: grid;
    gap: 8px
}

input {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .6);
    padding: 12px 12px;
    border-radius: 14px;
    outline: none;
    font-size: 15px;
    color: var(--text);
}

input:focus {
    border-color: rgba(255, 79, 153, .45)
}

input:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.tiny {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
    line-height: 1.45;
}

.err {
    color: #9f234f;
    font-weight: 700;
    margin: 0;
    font-size: 13px;
    display: none
}

.err.show {
    display: block
}

.three {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px
}

.panel {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .52);
    border-radius: 18px;
    padding: 14px;
}

.panel h3 {
    margin: 0 0 6px;
    font-size: 18px
}

.panel p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55
}

.gallery {
    display: grid;
    gap: 10px;
    align-items: center;
    justify-items: center;
    margin-top: 8px;
}

.frame {
    width: min(340px, 92vw);
    aspect-ratio: 3/4;
    border-radius: 22px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: rgba(255, 255, 255, .5);
    box-shadow: 0 16px 38px rgba(255, 79, 153, .18);
    position: relative;
}

.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
}

.cap {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: rgba(255, 255, 255, .70);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
    color: var(--text);
}

.cap b {
    display: block;
    font-size: 13px;
    margin-bottom: 2px
}

.cap span {
    display: block;
    font-size: 12px;
    color: var(--muted)
}

.hearts {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.heart {
    position: absolute;
    top: 110%;
    color: rgba(255, 79, 153, .75);
    animation: floatUp linear forwards;
    filter: drop-shadow(0 6px 14px rgba(255, 79, 153, .22));
}

@keyframes floatUp {
    from {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 1;
    }

    to {
        transform: translateY(-130vh) translateX(var(--drift)) scale(1.5);
        opacity: 0;
    }
}

.toplayer {
    position: relative;
    z-index: 1
}

.navmini {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, .80);
    border: 1px solid var(--border);
    padding: 10px 12px;
    border-radius: 999px;
    box-shadow: 0 16px 40px rgba(255, 79, 153, .18);
    font-size: 13px;
    color: var(--muted);
    z-index: 10;
    display: none;
    max-width: 92vw;
}

.toast.show {
    display: block;
    animation: fadeSlideIn .25s ease both;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .55);
    font-size: 12px;
    color: var(--muted);
    width: fit-content;
}

.row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.stat {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .55);
    border-radius: 18px;
    padding: 12px;
}

.stat b {
    display: block;
    font-size: 16px
}

.stat span {
    display: block;
    color: var(--muted);
    font-size: 12px
}

.safePad {
    padding-bottom: 12px
}