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

:root {
    --burgundy: #800020;
    --navy: #1a3a5f;
    --calm-bg: #f2f4f0;
    --card-bg: #ffffff;
    --text-main: #2d3436;
}

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

main { width: 100%; max-width: 480px; }

form, #results, #cellar-history {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.input-group { margin-bottom: 18px; display: flex; flex-direction: column; }
.input-row { display: flex; gap: 12px; }
.input-row .input-group { flex: 1; }

label { font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: #555; text-transform: uppercase; }

input, select {
    width: 100%;
    height: 48px;
    padding: 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    background-color: #fafafa;
    box-sizing: border-box;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #eee;
}

button {
    width: 100%;
    padding: 16px;
    background-color: var(--burgundy);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

.score-container { display: flex; gap: 12px; margin-bottom: 20px; }
.score-card { flex: 1; text-align: center; padding: 18px; border-radius: 14px; }
.colleen-card { background: #fff5f6; color: var(--burgundy); }
.dave-card { background: #f0f7ff; color: var(--navy); }
#c-score-val, #d-score-val { font-size: 2.4rem; font-weight: 700; }

/* LEGEND STYLING */
.score-legend { margin-top: 25px; padding-top: 15px; border-top: 1px dashed #ccc; }
.score-legend h4 { font-size: 0.9rem; color: #888; margin-bottom: 10px; text-align: center; }
.score-legend ul { list-style: none; padding: 0; margin: 0; }
.score-legend li { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.85rem; color: #444; border-bottom: 1px solid #f9f9f9; }
.score-legend span { font-weight: 700; min-width: 75px; padding: 2px 6px; border-radius: 4px; }

.unicorn-tier span { background: #fff8e1; color: #b8860b; border: 1px solid #ffe082; }
.failure-tier span { background: #fdf2f2; color: #c53030; }

.history-card { padding: 12px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; }
