/* NGL clone — pixel-close to ngl.link */

html {
    background: #EC1187 linear-gradient(to bottom right, #EC1187 0%, #FF8D10 100%);
    background-repeat: no-repeat;
    width: 100vw;
    height: 100%;
    min-height: 100dvh;
}

body {
    font: 14px "Avenir Next", Helvetica, Arial, sans-serif;
    margin: 0;
    position: relative;
    min-height: 100dvh;
}

.container {
    width: 85%;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form { width: 100%; }

a { cursor: pointer; }

.bubble {
    display: block;
    margin-top: 44px;
    border-radius: 24px;
}

/* ── header ── */
.header {
    padding: 16px 16px 12px;
    font-size: 16px;
    background-color: white;
    border-radius: 32px 32px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: left;
}

.pfp-container {
    border-radius: 300px;
    width: 48px;
    height: 48px;
    background-color: #F1F1F1;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    display: block;
    font-size: 20px;
    line-height: 48px;
    text-align: center;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}

.user-container { margin-left: 12px; font-size: 14px; }

.fullname {
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.2;
}

.username {
    font-weight: 400;
    color: rgba(0, 0, 0, 0.45);
    font-size: 13px;
    margin-top: 1px;
}

.verified {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.prompt { font-weight: bold; margin-top: 6px; }

/* ── textarea ── */
.textarea-container {
    width: 100%;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 0 0 24px 24px;
    position: relative;
    -webkit-appearance: none;
}

textarea {
    width: 100%;
    padding: 18px 24px;
    height: 140px;
    box-sizing: border-box;
    font-size: 20px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    outline: none;
    background-color: transparent;
    resize: none;
    color: #000;
    display: block;
}

textarea::placeholder { color: rgba(0, 0, 0, 0.25); }

/* animated placeholder overlay (like ngl) */
.textarea-placeholder {
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 20px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.25);
    pointer-events: none;
    opacity: 0;
}

.textarea-placeholder.hidden { display: none; }
.fade-in { animation: fade-in 0.3s ease forwards; }
.fade-out { animation: fade-out 0.3s ease forwards; }
@keyframes fade-in  { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fade-out { 0% { opacity: 1; } 100% { opacity: 0; } }

.dice-button {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.25);
    padding: 8px;
    border-radius: 100px;
    width: 20px;
    height: 20px;
    text-align: center;
    touch-action: manipulation;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

/* ── buttons ── */
.button, .submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: black;
    border-radius: 100px;
    border: none;
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    height: 60px;
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
}

.submit:disabled {
    text-indent: -9999px;
    position: relative;
}

.submit:disabled::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0; left: 0; right: 0; bottom: 0;
    margin: auto;
    border: 4px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: loading-spinner 1s ease infinite;
}

@keyframes loading-spinner {
    from { transform: rotate(0turn); }
    to   { transform: rotate(1turn); }
}

.pulse { animation: animate-shake 2s ease-in-out infinite; }
@keyframes animate-shake {
    0%, 10%, 65%, 100% { transform: rotate(0deg) scale(1.0); }
    30%, 40% { transform: rotate(-1deg) scale(1.05); }
    35%, 45% { transform: rotate(1deg) scale(1.05); }
}

/* ── tooltip / error ── */
.anonymous-tooltip {
    margin-top: 12px;
    font-size: 14px;
    color: white;
    margin-bottom: 12px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.anonymous-tooltip.error { font-weight: 700; }

/* honeypot */
.hp { display: none !important; }

/* ── bottom section ── */
.bottom-container {
    position: absolute;
    bottom: calc(env(safe-area-inset-bottom) + 100px);
    width: 85%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 35px;
    padding-top: 32px;
    text-align: center;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.download-prompt {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.space1 { height: 8px; }
.space2 { height: 16px; }
.space3 { height: 24px; }

.tos-privacy {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.tos, .privacy {
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
}

.tos { margin-right: 10px; }

/* ── sent page ── */
.home-container { text-align: center; padding-top: 24vh; }

.check {
    display: inline-block;
    width: 15vh;
    height: 15vh;
}

.sent {
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    margin: 0;
}

.another {
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 18px;
    margin: 0;
    display: inline-block;
    border-bottom: 2px solid white;
}

/* small screens */
@media (max-width: 480px) {
    .bubble { margin-top: 24px; }
    .bottom-container { bottom: calc(env(safe-area-inset-bottom) + 40px); }
}

/* ══════════════════════════════════════════════════════════
   DESKTOP-ONLY FLAIR — floating blobs + cursor spotlight
   Phones never load/run any of this (display:none by default).
   ══════════════════════════════════════════════════════════ */
.bg-decor, .spotlight { display: none; }

@media (min-width: 768px) {
    body { overflow-x: hidden; }
    .container { position: relative; z-index: 1; }

    .bg-decor {
        display: block;
        position: fixed;
        inset: 0;
        overflow: hidden;
        z-index: 0;
        pointer-events: none;
    }

    .blob {
        position: absolute;
        border-radius: 50%;
        filter: blur(70px);
        opacity: 0.35;
        mix-blend-mode: overlay;
        will-change: transform;
    }
    .blob1 { width: 460px; height: 460px; background: #fff;    top: -140px; left: -120px;  animation: float1 18s ease-in-out infinite; }
    .blob2 { width: 380px; height: 380px; background: #FFD400; top: 55%;    right: -140px; animation: float2 22s ease-in-out infinite; }
    .blob3 { width: 320px; height: 320px; background: #fff;    bottom: -110px; left: 30%;  animation: float3 26s ease-in-out infinite; }

    @keyframes float1 { 0%, 100% { transform: translate(0, 0); }       50% { transform: translate(60px, 80px); } }
    @keyframes float2 { 0%, 100% { transform: translate(0, 0); }       50% { transform: translate(-70px, -50px); } }
    @keyframes float3 { 0%, 100% { transform: translate(0, 0); }       50% { transform: translate(55px, -60px); } }

    /* cursor-follow glow, position set via JS custom properties */
    .spotlight {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        background: radial-gradient(600px circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.16), transparent 42%);
        transition: background 0.05s linear;
    }

    /* gentle hover lift on the whole card + buttons */
    .bubble { transition: transform 0.35s ease, box-shadow 0.35s ease; }
    .form:hover .bubble { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18); }

    .button, .submit { transition: transform 0.2s ease, box-shadow 0.2s ease; }
    .button:hover, .submit:hover:not(:disabled) { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }
}

@media (prefers-reduced-motion: reduce) {
    .blob { animation: none !important; }
    .spotlight { display: none !important; }
}
