
:root {
    --green: #176b55;
    --light: #e8f4ee;
    --bg: #f7f8f5;
    --text: #20332b;
    --muted: #68776f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-bottom: 1px solid #e1e7e3;
    position: sticky;
    top: 0;
    z-index: 10;
}

main {
    max-width: 650px;
    margin: auto;
    padding: 24px 18px 110px;
}

h1 {
    font-size: 34px;
    margin: 12px 0;
}

h2 {
    font-size: 23px;
}

p {
    line-height: 1.6;
}

small, .muted {
    color: var(--muted);
}

.eyebrow {
    color: var(--green);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.card {
    background: white;
    padding: 22px;
    border-radius: 20px;
    margin: 16px 0;
    border: 1px solid #e0e7e1;
}

.hero {
    background: var(--green);
    color: white;
    padding: 26px;
    border-radius: 24px;
    margin: 24px 0;
}

.hero p {
    color: #e1f1e8;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 600;
}

.primary {
    background: var(--green);
    color: white;
    width: 100%;
    margin-top: 12px;
}

.hero button {
    background: white;
    color: var(--green);
    width: 100%;
}

.secondary {
    background: var(--light);
    color: var(--green);
    margin: 5px 0;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tile {
    background: white;
    border: 1px solid #dfe8e2;
    min-height: 110px;
    text-align: left;
    color: var(--text);
}

.tile span {
    display: block;
    font-size: 26px;
    margin-bottom: 8px;
}

.tile small {
    display: block;
    font-weight: normal;
    margin-top: 5px;
}

nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #dfe8e2;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}

nav button {
    background: transparent;
    color: var(--green);
    font-size: 12px;
}

input, textarea, select {
    width: 100%;
    padding: 16px;
    font: inherit;
    border: 1px solid #ccd8cf;
    border-radius: 12px;
    margin: 10px 0;
    background: white;
}

.progress-track {
    height: 9px;
    background: #dce7df;
    border-radius: 20px;
    overflow: hidden;
    margin: 14px 0;
}

.progress-fill {
    background: var(--green);
    height: 100%;
    transition: width .3s;
}

.correct {
    background: #e1f4e8;
    color: #166534;
    padding: 16px;
    border-radius: 12px;
    margin: 12px 0;
}

.incorrect {
    background: #fce9e6;
    color: #9f2525;
    padding: 16px;
    border-radius: 12px;
    margin: 12px 0;
}

.word-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #e6ebe7;
}

.stat {
    font-size: 34px;
    color: var(--green);
    font-weight: bold;
}

.example {
    background: var(--light);
    padding: 12px;
    border-radius: 10px;
    margin: 10px 0;
}

.choice {
    display: block;
    width: 100%;
    text-align: left;
    background: white;
    border: 1px solid #cbd9ce;
    margin: 8px 0;
}

.choice:disabled {
    opacity: .7;
}
