
.splash-enter {
    position: relative;
    z-index: 1;
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    animation: sh-blink 1.4s ease-in-out infinite;
}
@keyframes sh-blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.splash-hint {
    --sh-ink: rgba(255,255,255,0.72);
    --sh-accent: var(--accent, #ffffff);
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    max-width: min(92vw, 520px);
    color: var(--sh-ink);
    font-family: var(--font-mono, monospace);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    animation: sh-in 0.7s cubic-bezier(.16,1,.3,1) 0.35s forwards;
}
.splash-hint .sh-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@keyframes sh-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.sh-pill {
    padding: 0.62rem 1.05rem 0.62rem 0.8rem;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
    box-shadow: inset 0 1px rgba(255,255,255,0.12), 0 10px 30px rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    letter-spacing: 0.14em;
}
.sh-pill::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--sh-accent) 40%, transparent);
    animation: sh-breathe 2.4s ease-out 1.1s infinite;
    pointer-events: none;
}
@keyframes sh-breathe { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sh-accent) 38%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.sh-pill .sh-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--sh-accent) 22%, transparent); color: var(--sh-accent); flex: 0 0 auto; }
.sh-pill .sh-icon svg { width: 13px; height: 13px; }

.sh-underline { padding-bottom: 0.5rem; letter-spacing: 0.24em; }
.sh-underline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sh-accent), transparent);
    transform-origin: left;
    animation: sh-draw 2.6s cubic-bezier(.65,0,.35,1) 0.9s infinite;
    transform: scaleX(0);
}
@keyframes sh-draw { 0% { transform: scaleX(0); transform-origin: left; } 45% { transform: scaleX(1); transform-origin: left; } 55% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

.sh-arrow-icon { color: var(--sh-accent); display: inline-grid; place-items: center; animation: sh-nudge 1.6s ease-in-out infinite; }
.sh-arrow-icon svg { width: 15px; height: 15px; }
@keyframes sh-nudge { 0%, 100% { transform: translateX(0); opacity: 0.6; } 50% { transform: translateX(5px); opacity: 1; } }

.sh-shimmer .sh-text {
    background: linear-gradient(100deg, rgba(255,255,255,0.38) 30%, #ffffff 46%, var(--sh-accent) 50%, #ffffff 54%, rgba(255,255,255,0.38) 70%);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: sh-sheen 2.8s linear 0.8s infinite;
    background-position: 100% 0;
}
@keyframes sh-sheen { to { background-position: -160% 0; } }

.sh-ripple { gap: 1.05rem; padding-inline-start: 0.2rem; }
.sh-ripple .sh-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--sh-accent); flex: 0 0 auto; box-shadow: 0 0 12px color-mix(in srgb, var(--sh-accent) 60%, transparent); }
.sh-ripple .sh-dot::before, .sh-ripple .sh-dot::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1px solid var(--sh-accent);
    animation: sh-ring 2s cubic-bezier(.2,.6,.3,1) infinite;
}
.sh-ripple .sh-dot::after { animation-delay: 1s; }
@keyframes sh-ring { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } }

.sh-mouse-icon { position: relative; width: 16px; height: 24px; border: 1.5px solid rgba(255,255,255,0.7); border-radius: 9px; flex: 0 0 auto; }
.sh-mouse-icon::before { content: ""; position: absolute; top: 0; left: 50%; width: 1.5px; height: 8px; background: rgba(255,255,255,0.45); transform: translateX(-50%); }
.sh-mouse-btn { position: absolute; top: 1px; left: 1px; width: calc(50% - 1.5px); height: 7px; border-radius: 7px 0 0 0; background: var(--sh-accent); opacity: 0; animation: sh-click 1.8s ease-in-out infinite; }
@keyframes sh-click { 0%, 35%, 100% { opacity: 0; } 45%, 60% { opacity: 1; } }

.sh-keycap { gap: 0.7rem; }
.sh-key {
    padding: 0.32rem 0.55rem 0.38rem;
    border: 1px solid rgba(255,255,255,0.22);
    border-bottom-width: 2px;
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
    color: #fff;
    font: inherit;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    animation: sh-press 2.2s ease-in-out 1s infinite;
}
@keyframes sh-press { 0%, 70%, 100% { transform: translateY(0); border-bottom-width: 2px; } 78% { transform: translateY(1px); border-bottom-width: 1px; } }

.sh-terminal { gap: 0.5rem; text-transform: none; letter-spacing: 0.06em; font-size: 0.78rem; }
.sh-terminal .sh-prompt { color: var(--sh-accent); }
.sh-terminal .sh-caret { width: 0.55em; height: 1.05em; background: var(--sh-accent); animation: sh-caret 1s steps(1) infinite; margin-inline-start: -0.15rem; }
@keyframes sh-caret { 50% { opacity: 0; } }

.splash-hint.sh-bare { gap: 0; letter-spacing: 0; }
.sh-pill.sh-bare { padding: 0.55rem; }
.sh-pill.sh-bare .sh-icon { width: 26px; height: 26px; }
.sh-pill.sh-bare .sh-icon svg { width: 15px; height: 15px; }
.sh-underline.sh-bare { width: 132px; height: 1px; padding: 0; }
.sh-ripple.sh-bare { padding: 0.55rem; }
.sh-ripple.sh-bare .sh-dot { width: 10px; height: 10px; }
.sh-mouse.sh-bare .sh-mouse-icon { width: 20px; height: 30px; border-radius: 11px; }
.sh-mouse.sh-bare .sh-mouse-btn { height: 9px; }
.sh-arrow.sh-bare .sh-arrow-icon svg { width: 22px; height: 22px; }
.sh-terminal.sh-bare { gap: 0.45rem; font-size: 0.95rem; }
.sh-shimmer .sh-bar {
    display: block;
    width: 150px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.08) 30%, #ffffff 46%, var(--sh-accent) 50%, #ffffff 54%, rgba(255,255,255,0.08) 70%);
    background-size: 260% 100%;
    background-position: 100% 0;
    animation: sh-sheen 2.8s linear 0.8s infinite;
}

.splash-logo {
    position: relative;
    z-index: 1;
    display: block;
    max-width: min(72vw, 440px);
    max-height: clamp(84px, 24vh, 240px);
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}
.splash-logo-only { max-height: clamp(110px, 34vh, 320px); max-width: min(82vw, 560px); }
.splash-glitch .splash-logo { animation: splash-logo-glitch 2.6s infinite; filter: drop-shadow(2px 0 rgba(255,0,80,0.45)) drop-shadow(-2px 0 rgba(0,200,255,0.45)); }
@keyframes splash-logo-glitch { 0%, 89%, 100% { transform: translate(0,0); } 90% { transform: translate(-2px,1px); } 92% { transform: translate(2px,-1px); } 94% { transform: translate(-1px,0); } 96% { transform: translate(1px,1px); } }
.splash-neon .splash-logo { animation: splash-logo-neon 2s ease-in-out infinite; }
@keyframes splash-logo-neon { 0%, 100% { filter: drop-shadow(0 0 6px var(--accent,#fff)) drop-shadow(0 0 14px var(--accent,#fff)); opacity: 0.8; } 50% { filter: drop-shadow(0 0 10px var(--accent,#fff)) drop-shadow(0 0 28px var(--accent,#fff)); opacity: 1; } }
.splash-fade .splash-logo, .splash-typewriter .splash-logo { opacity: 0; animation: splash-logo-fade 1.1s ease forwards; }
@keyframes splash-logo-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.splash-slide-up .splash-logo { opacity: 0; animation: splash-logo-rise 0.8s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes splash-logo-rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .splash-logo { animation: none !important; opacity: 1 !important; }
    .splash-enter { animation: none; opacity: 0.7; }
    .splash-hint { animation: none; opacity: 1; }
    .splash-hint *, .splash-hint::after, .splash-hint *::before, .splash-hint *::after { animation: none !important; }
    .sh-underline::after { transform: scaleX(1); }
    .sh-mouse-btn { opacity: 1; }
}
