:root {
    --primary: #e94560;
    --bg: #1a1a2e;
    --card-bg: #16213e;
    --text: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

h1 {
    font-weight: 300;
    letter-spacing: 1px;
}

.search-area {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

input {
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #0f3460;
    background: #0f3460;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}

input:focus {
    border-color: var(--primary);
}

button {
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

button:hover {
    background: #ff2e63;
    transform: translateY(-2px);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Tarjeta de Información */
.info-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 600px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    animation: fadeIn 0.5s ease-out;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #0f3460;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.id-tag {
    background: #0f3460;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
}

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

.info-item label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
}

.info-item span {
    font-size: 1.1rem;
    font-weight: 500;
}

.error-text {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ff4d4d;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Alineación de avatar y nombre */
.user-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-face {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    background: #0f3460;
    /* Para que el pixel-art no se vea borroso */
    image-rendering: pixelated; 
    border: 4px solid var(--primary);
}