/* Reset / Basis */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    height: 100vh;
    background: #fafafa;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    display: grid;
    place-items: center;
    color: #111827;
}

/* Bühne */
.stage {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    text-align: center;
}

.logo {
    display: block;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1.7;
    object-fit: cover;
    margin: 0 auto 1rem;
}

/* Code Input */
#code-input {
    width: 100%;
    font-size: 1.4rem;
    padding: 0.75rem 0;
    border: none;
    border-bottom: 2px solid #e5e7eb;
    background: transparent;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.12em;
    text-align: center;
}

#code-input::placeholder {
    color: #9ca3af;
    letter-spacing: normal;
}

#code-input:focus {
    outline: none;
    border-color: #6366f1;
}

/* Ergebnis */
.result {
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.result.show {
    opacity: 1;
    transform: translateY(0);
}

.greeting {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.prefix {
    display: block;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.4rem;
}

.name {
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Fehler */
.error {
    margin-top: 2rem;
    color: #dc2626;
    font-size: 0.9rem;
}

/* Utility */
.hidden {
    display: none;
}

/* Mobile Feinschliff */
@media (max-width: 480px) {
    .stage {
        padding: 1.5rem;
    }

    .name {
        font-size: 2rem;
    }
}
