/* Mobile-first responsive CSS con estilos del segundo archivo */
:root {
    --bg: #f0f2f5;
    --card: #ffffff;
    --primary: #4CAF50;
    --primary-dark: #3e9c43;
    --primary-active: #144917;
    --border: #ddd;
    --muted: #444;
    --glass: rgba(0,0,0,0.03); /* ligero efecto glass, adaptado */
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    padding: 30px;
    font-family: "Segoe UI", Roboto, sans-serif;
    color: #333;
    background: var(--bg);
    display: flex;
    align-items: stretch;
}

.app {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100vh;
    background: var(--card);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

h1 {
    font-size: 1.4rem;
    margin: 0 0 25px 0;
    text-align: center;
    font-weight: 600;
    color: #333;
}

.subtitle {
    font-size: 0.78rem;
    color: var(--muted);
}

.card {
    background: var(--card);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* form */
.new-participant {
    display: flex;
    gap: 8px;
}

.new-participant input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: inherit;
    font-size: 15px;
}

.btn {
    appearance: none;
    border: 0;
    padding: 12px 20px;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn.ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
}

/* participants list */
.list {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-radius: 8px;
    background: var(--glass);
    border: 1px solid var(--border);
}

.left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #fff;
    font-weight: 700;
    border: 1px solid var(--border);
}

.name {
    font-size: 0.95rem;
}

.points {
    font-weight: 700;
    font-size: 1rem;
}

.controls {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.controls button {
    min-width: 44px;
    padding: 8px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.small {
    padding: 6px 8px;
    font-size: 0.95rem;
}

/* export area */
.export-area {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.note {
    font-size: 0.82rem;
    color: var(--muted);
}

/* responsive */
@media(min-width:720px) {
    h1 {
        font-size: 1.6rem;
    }

    .avatar {
        width: 70px;
        height: 70px;
    }

    .btn {
        padding: 14px 22px;
    }
}

footer {
    margin-top: auto;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: center;
    padding: 8px;
}
