body {
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: #fad2e7;
    margin: 0;
    padding: 30px;
    text-align: center;
}

h1 {
    color: #b91371;
    font-weight: bold;;
}

.searchUser {
    margin-bottom: 25px;
}

input {
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #e7c2d3;
    background: rgb(255, 243, 248);
    margin: 10px;
    margin-bottom: 20px;
    color:#9a075a
}
button:hover {
    background-color:  rgb(188, 14, 86);
    transform: scale(1.05);
}

button {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: #9e054f;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.grid > .card:nth-child(1), .grid > .card:nth-child(2) {
    grid-column: span 2;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.05);
    color: #9a075a;
}

.profile img {
    border-radius: 50%;
}

canvas {
    max-width: 100%;
    height: 250px;
}

.card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card.archetype{
    grid-column: 1/-1;
}
.archetype-loading {
    display:flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    color: #ec066a;
}
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #d3036e;
    border-top-color: #b91371;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.archetype-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 10px;
    animation: fadeIn 0.6s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.archetype-emoji {
    font-size: 13px;
    line-height: 1;
}

.archetype-title {
    font-size: 16px;
    font-weight: bold;
    color: #b91371;
}

.archetype-badge {
    background: #fad2e7;
    color: #9e054f;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 14px;
}

.archetype-description {
    max-width: 600px;
    line-height: 1.6;
    color: #7a3a5c;
    font-size: 14px;
}

@media (max-width: 700px) {
    .grid {
        grid-template-columns: 1fr;
    }
    .card.wide,
    .card.archetype-card {
        grid-column: span 1;
    }
}