@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap");

:root {
    color-scheme: only light;
    --bg: #f6f7f9;
    --bar: #d9e9ef;
    --card: #ffffff;
    --card-border: #cfd6dd;
    --button: #e6f1f5;
    --text: #202428;
    --muted: #6c757d;
    --success: #2fb36d;
    --danger: #d94645;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Nunito", "Trebuchet MS", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f9fbfc 0%, #f3f4f6 60%, #f2f2f2 100%);
}

.page {
    min-height: 100vh;
}

.topbar {
    background: var(--bar);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #c7d6dc;
}

.topbar h1 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.hand {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
}

.hand svg {
    width: 100%;
    height: 100%;
    fill: #2f3438;
}

.cards {
    max-width: 360px;
    margin: 20px auto 0;
    display: grid;
    gap: 14px;
    padding: 0 14px 40px;
}

.trainer-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px 12px 10px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.trainer-button {
    background: var(--button);
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    color: #2b2f33;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.trainer-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 12px;
    margin-top: 8px;
}

.progress {
    color: var(--muted);
}

.progress .num {
    color: var(--success);
    font-weight: 700;
}

.reset {
    color: var(--danger);
    text-decoration: none;
    font-weight: 600;
}

.reset:hover {
    text-decoration: underline;
}

@media (min-width: 560px) {
    .topbar h1 {
        font-size: 18px;
    }

    .cards {
        max-width: 420px;
    }
}
