:root {
    --pink: #ff3d7f;
    --orange: #ff8a4c;
    --ink: #1a0b1f;
    --cream: #fff4e8;
    --muted: #f1d9e6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    background: var(--ink);
    color: var(--cream);
    font-family: 'Poppins', system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}
a { color: inherit; }

.app {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: var(--ink);
    overflow: hidden;
}

/* ---------- header ---------- */
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(180deg, #2b0f33, #1a0b1f);
    z-index: 5;
}
.brand { font-family: 'Rubik', sans-serif; font-style: italic; font-weight: 900; font-size: 18px; white-space: nowrap; text-transform: uppercase; color: #fff; text-shadow: 0 0 8px #ff3d7f, 0 0 18px rgba(255, 61, 127, .6); }
.badge18 {
    font-weight: 800; font-size: 12px;
    border: 2px solid var(--pink); color: var(--pink);
    border-radius: 999px; padding: 2px 8px;
}
.price-pill {
    font-size: 12px; font-weight: 600; text-decoration: none;
    background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 6px 12px;
    white-space: nowrap;
}
.price-pill b { color: #ffd08a; }

.headline {
    padding: 6px 16px 10px;
    font-family: 'Rubik', 'Poppins', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 30px;
    line-height: 1.05;
    text-transform: uppercase;
    background: linear-gradient(90deg, #a78bfa, #ff3d7f 60%, #ff8a4c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 61, 127, .45));
}
.headline small {
    display: block;
    margin-top: 4px;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    color: var(--muted);
    -webkit-text-fill-color: var(--muted);
}

/* ---------- scene ---------- */
.stage { position: relative; flex: 1; min-height: 420px; overflow: hidden; overflow: clip; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.scene-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.scene-img #girl { position: absolute; inset: 0; }
.scene-img #eye-closed { transition: opacity .08s; }
.scene [data-layer] {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    transition: transform 1.1s cubic-bezier(.55, 0, .75, .3), opacity 1.1s ease-in;
}
.scene [data-layer].instant { transition: none; }
.scene [data-layer="shirt"].off { transform: translate(-10px, 360px) rotate(8deg); opacity: 0; }
.scene [data-layer="canga"].off { transform: translate(0, 260px); opacity: 0; }
.scene [data-layer="top"].off { transform: translate(90px, -30px) rotate(35deg); opacity: 0; }

#girl { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite; }
#hair-back { transform-box: fill-box; transform-origin: 20% 0; animation: hair 5s ease-in-out infinite; }
.leaves { animation: leaves 11s ease-in-out infinite alternate; }
#sun { transform-box: fill-box; transform-origin: center; animation: pulse 5s ease-in-out infinite; }
.shimmer path { animation: shim 2.6s linear infinite; }
#eye-closed { opacity: 0; }
.scene.wink #eye-open { opacity: 0; }
.scene.wink #eye-closed { opacity: 1; }

@keyframes sway { 0%, 100% { transform: rotate(-.7deg); } 50% { transform: rotate(.7deg); } }
@keyframes hair { 50% { transform: skewX(-2.5deg) rotate(1deg); } }
@keyframes leaves { from { transform: translate(-30px, -8px); } to { transform: translate(30px, 12px); } }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .85; } }
@keyframes shim { to { stroke-dashoffset: -48; } }

/* ---------- bubble ---------- */
.bubble {
    position: absolute;
    z-index: 7;
    max-width: 60%;
    background: #fff;
    color: var(--ink);
    padding: 8px 12px;
    border-radius: 16px 16px 4px 16px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
    opacity: 0;
    transform: translateY(6px) scale(.95);
    transition: opacity .3s, transform .3s;
    pointer-events: none;
}
.bubble.show { opacity: 1; transform: none; }

/* ---------- CTA ---------- */
.cta-wrap {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #2b0f33, #1a0b1f);
    z-index: 5;
}
.cta {
    display: block;
    width: 100%;
    padding: 16px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    color: #fff;
    font: italic 900 20px 'Rubik', 'Poppins', sans-serif;
    letter-spacing: .5px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(255, 61, 127, .45);
    animation: beat 1.8s ease-in-out infinite;
    cursor: pointer;
}
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
.cta-sub { text-align: center; font-size: 14px; font-weight: 600; margin-top: 8px; }
.terms { font-size: 12px; line-height: 1.5; color: var(--muted); margin-top: 8px; text-align: center; }

/* ---------- age gate ---------- */
.gate {
    position: fixed; inset: 0; z-index: 50;
    display: grid; place-items: center; padding: 16px;
    background: rgba(20, 6, 24, .82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}
.card {
    width: 100%; max-width: 380px;
    background: #2b0f33; border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px; padding: 22px 18px; text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.card h2 { font-size: 22px; margin-bottom: 8px; }
.card p { font-size: 14px; line-height: 1.5; color: var(--muted); margin-bottom: 16px; }
.btn-ghost {
    display: block; width: 100%; margin-top: 10px; padding: 12px;
    background: none; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px;
    color: var(--cream); font: 600 14px 'Poppins', sans-serif; cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .scene *, .cta { animation: none !important; }
}
