@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;1,300&family=DM+Sans:wght@300;400;500&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --cream: #FAF8F3;
    --ink: #1A1A1A;
    --warm-gray: #8C8680;
    --accent: #C4452A;
    --accent-light: #F5EDE9;
    --border: #E5E0D8;
    --green: #2D6A4F;
    --green-light: #E8F4EE;
    --red: #C4452A;
    --red-light: #F5EDE9;
}

html, body {
    height: 100%;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--cream);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    line-height: 1.6;
}

.container {
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
}

/* Typography */
h1 {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 2.2rem;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 12px;
}

h1 em {
    font-style: italic;
    color: var(--accent);
}

h2 {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 1.6rem;
    color: var(--ink);
    margin: 28px 0 24px;
    line-height: 1.3;
}

h2 .word {
    font-style: italic;
    color: var(--accent);
}

h3 {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-gray);
    margin-bottom: 12px;
}

p {
    color: var(--warm-gray);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

/* Score bar */
.score-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--cream);
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--warm-gray);
}

.score-bar .score-number {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    color: var(--ink);
}

/* Feedback */
.feedback {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
    color: var(--green);
    background: var(--green-light);
}

.feedback.incorrect {
    color: var(--red);
    background: var(--red-light);
}

/* Choices */
.choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    text-align: left;
}

.choice-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.15s ease;
    background: #fff;
    color: var(--ink);
}

.choice-label:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.choice-label input[type="radio"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Buttons */
.start-button,
.submit-button,
.reset-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    border: none;
}

.start-button,
.submit-button {
    background-color: var(--ink);
    color: #fff;
    width: 100%;
}

.start-button:hover,
.submit-button:hover {
    background-color: var(--accent);
}

.reset-button {
    background: transparent;
    color: var(--warm-gray);
    border: 1.5px solid var(--border);
    margin-top: 10px;
    font-size: 0.85rem;
    padding: 10px 24px;
}

.reset-button:hover {
    border-color: var(--warm-gray);
    color: var(--ink);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

/* Review list */
.review-list,
.review-list-inline {
    list-style: none;
    padding: 0;
    margin: 12px 0 20px;
    max-height: 160px;
    overflow-y: auto;
    text-align: left;
}

.review-list li,
.review-list-inline li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--red-light);
    color: var(--red);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.review-list li strong,
.review-list-inline li strong {
    color: var(--ink);
    font-weight: 500;
}

/* Final score */
.final-score {
    font-family: 'Fraunces', serif;
    font-size: 3rem;
    font-weight: 300;
    color: var(--ink);
    margin: 16px 0 4px;
}

.final-score-label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-gray);
    margin-bottom: 28px;
}

/* Divider */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

/* Tag */
.tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-light);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 20px;
}
