:root {
    --bg: #030304;
    --text: #e8e8e8;
    --text-dim: rgba(255,255,255,0.25);
    --accent: #e94560;
    --accent-glow: rgba(233,69,96,0.3);
    --surface: rgba(10,10,16,0.8);
    --border: rgba(255,255,255,0.07);
    --success: #00d4aa;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    height: 100vh;
}

/* ── Rain canvas ── */
#rain {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* ── Panther background ── */
.panther-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url('img/panther.png') center 25% / cover no-repeat;
    opacity: 0;
    filter: brightness(0.55) contrast(1.1) saturate(0.85);
    transition: opacity 3s cubic-bezier(0.25, 0, 0.3, 1);
}

.panther-bg.visible {
    opacity: 1;
}

.panther-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 50% 35%, transparent 40%, var(--bg) 100%),
        linear-gradient(to bottom, transparent 55%, var(--bg) 92%);
}

/* ── Stage ── */
.stage {
    position: relative;
    z-index: 3;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 clamp(32px, 6vw, 100px) 80px;
}

/* ── Name / typewriter ── */
.identity {
    margin-bottom: 48px;
}

.name {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 300;
    letter-spacing: -2px;
    line-height: 1;
    color: var(--text);
    min-height: 1.2em;
}

.name::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background: var(--accent);
    margin-left: 4px;
    vertical-align: baseline;
    animation: blink 0.9s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ── Gate container ── */
.gate {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.gate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Pulse prompt ── */
.prompt-zone {
    margin-bottom: 24px;
}

.prompt-pulse {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px 10px 20px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.03);
}

.prompt-pulse::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    animation: pulse-dot 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

.prompt-label {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--text-dim);
    text-transform: lowercase;
    transition: color 0.3s;
}

.prompt-pulse:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
}

.prompt-pulse:hover .prompt-label {
    color: var(--text);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ── Passphrase drawer ── */
.passphrase-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease;
    opacity: 0;
    margin-bottom: 0;
}

.passphrase-drawer.open {
    max-height: 80px;
    opacity: 1;
    margin-bottom: 28px;
}

.drawer-inner {
    padding-top: 4px;
}

.passphrase-drawer input {
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 4px;
    padding: 8px 0;
    width: 260px;
    outline: none;
    transition: border-color 0.3s;
}

.passphrase-drawer input:focus {
    border-color: rgba(255,255,255,0.25);
}

.passphrase-drawer input::placeholder {
    color: var(--text-dim);
    letter-spacing: 3px;
    font-weight: 300;
}

.drawer-error {
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 8px;
    height: 1em;
    opacity: 0.8;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .stage { padding-bottom: 50px; }
    .passphrase-drawer input { width: 100%; }
}
