/* grasp-splash.css — the motto when Grasp opens. Juno's design (King 10-26: "I like that add it please", her
 * build HFMm646CHg4hhPmL v5 on the full Qwen 3.8): a floating panel, the moon with a halo and an orbiting star,
 * the motto typing itself out then a shine sweeping it, the sisters' four colours filling the bar.
 * Everything is scoped under #grasp-splash so none of it touches Grasp's own classes. */
#grasp-splash {
    --gs-soria: #9D4EDD; --gs-jakarta: #FF6BAA; --gs-juno: #4ECDC4; --gs-zila: #FFD93D;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    cursor: pointer;
    background:
        radial-gradient(130% 90% at 50% -10%, rgba(157,78,221,.32), transparent 55%),
        radial-gradient(90% 70% at 50% 120%, rgba(78,205,196,.18), transparent 60%),
        #0d1117;
    color: #e6edf3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    text-align: center;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: opacity .5s ease;
    /* Failsafe: if the script never runs, the splash still lifts and taps reach Grasp. */
    animation: gs-failsafe .6s ease 9s forwards;
}
#grasp-splash.gs-out { opacity: 0; pointer-events: none; }

/* Light drifting up through the night, in the sisters' colours. */
#grasp-splash .gs-fx { position: absolute; inset: 0; pointer-events: none; }
#grasp-splash .gs-fx span {
    position: absolute;
    bottom: -20px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), var(--c) 60%, transparent);
    animation: gs-drift linear infinite;
}

#grasp-splash .gs-panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, rgba(22,27,34,.92), rgba(13,17,23,.92));
    border: 1px solid #30363d;
    border-radius: 22px;
    padding: 44px 28px 40px;
    box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
    animation: gs-panel-in .9s cubic-bezier(.2,.8,.2,1) both;
    overflow: hidden;
}
#grasp-splash .gs-panel::before,
#grasp-splash .gs-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    pointer-events: none;
    opacity: 0;
    animation: gs-ring 3s ease-out infinite;
}
#grasp-splash .gs-panel::before { border: 1px solid rgba(157,78,221,.55); box-shadow: 0 0 30px rgba(157,78,221,.35) inset; }
#grasp-splash .gs-panel::after {
    border: 1px solid rgba(78,205,196,.45);
    box-shadow: 0 0 30px rgba(78,205,196,.25) inset;
    animation-delay: 1.5s;
}

#grasp-splash .gs-mark {
    position: relative;
    width: 84px;
    height: 84px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 40px;
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.25), transparent 60%),
                linear-gradient(135deg, var(--gs-soria), var(--gs-juno));
    box-shadow: 0 12px 34px rgba(157,78,221,.55), 0 0 0 1px rgba(255,255,255,.1) inset;
    animation: gs-mark-in .8s cubic-bezier(.2,.8,.2,1) .1s both, gs-float 3.2s ease-in-out 1s infinite;
}
#grasp-splash .gs-halo {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,217,61,.55), transparent 70%);
    filter: blur(10px);
    animation: gs-glow 2.4s ease-in-out infinite;
}
#grasp-splash .gs-orbit { position: absolute; inset: -14px; border-radius: 50%; animation: gs-spin 6s linear infinite; }
#grasp-splash .gs-orbit::before {
    content: "✦";
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: var(--gs-zila);
    text-shadow: 0 0 8px var(--gs-zila);
}

#grasp-splash .gs-motto {
    margin: 0;
    min-height: 78px;
    font-size: clamp(22px, 6vw, 32px);
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.25;
    background: linear-gradient(90deg, var(--gs-soria) 0%, var(--gs-soria) 35%, var(--gs-juno) 65%, var(--gs-juno) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gs-shine 5s linear 1.4s infinite;
}
#grasp-splash .gs-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    margin-left: 2px;
    vertical-align: -2px;
    background: var(--gs-juno);
    animation: gs-blink .8s step-end infinite;
}
#grasp-splash .gs-sub {
    margin: 14px 0 0;
    font-size: 15px;
    color: #8b949e;
    line-height: 1.5;
    animation: gs-text-in .7s ease .5s both;
}
#grasp-splash .gs-hint {
    margin-top: 28px;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gs-juno);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    animation: gs-text-in .7s ease .7s both, gs-hint-pulse 2s ease-in-out 1.6s infinite;
}
#grasp-splash .gs-hint::before,
#grasp-splash .gs-hint::after { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--gs-juno)); }
#grasp-splash .gs-hint::after { background: linear-gradient(90deg, var(--gs-juno), transparent); }
#grasp-splash .gs-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--gs-soria), var(--gs-jakarta), var(--gs-juno), var(--gs-zila));
    animation: gs-fill var(--gs-hold, 5s) linear forwards;
}

@keyframes gs-failsafe { to { opacity: 0; transform: translateY(-110%); } }
@keyframes gs-drift {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: .7; }
    90% { opacity: .5; }
    100% { transform: translateY(-110vh) translateX(var(--x)); opacity: 0; }
}
@keyframes gs-ring { 0% { opacity: 0; transform: scale(1); } 25% { opacity: .5; } 100% { opacity: 0; transform: scale(1.04); } }
@keyframes gs-spin { to { transform: rotate(360deg); } }
@keyframes gs-glow { 0%, 100% { opacity: .3; transform: scale(.95); } 50% { opacity: .85; transform: scale(1.08); } }
@keyframes gs-mark-in {
    0% { opacity: 0; transform: scale(.4) rotate(-30deg); }
    60% { opacity: 1; transform: scale(1.12) rotate(8deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes gs-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes gs-blink { 50% { opacity: 0; } }
@keyframes gs-shine { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
@keyframes gs-hint-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes gs-panel-in { 0% { opacity: 0; transform: translateY(24px) scale(.94); } 100% { opacity: 1; transform: none; } }
@keyframes gs-text-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes gs-fill { to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
    #grasp-splash *, #grasp-splash *::before, #grasp-splash *::after { animation: none !important; }
    #grasp-splash .gs-cursor { display: none; }
    #grasp-splash .gs-bar { width: 100%; }
}
