/* he/she/it — the 's' must come! (24247) */
:root {
    --primary: #6366f1; --secondary: #8b5cf6; --gold: #fbbf24;
    --bg-dark: #0f172a; --bg-card: rgba(255,255,255,0.05);
    --text-light: #f1f5f9; --text-muted: #94a3b8; --border: rgba(255,255,255,0.12);
    --ok: #10b981; --bad: #f87171;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e1b4b 55%, #312e81 100%);
    color: var(--text-light); min-height: 100vh; line-height: 1.6;
}
.app-container { max-width: 900px; margin: 0 auto; padding: 2.5rem 1.5rem 3rem; }
h1 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 2rem; font-weight: 700; margin-bottom: .4rem; }
.motto { color: var(--text-muted); margin-bottom: 1.8rem; }
h2 { font-size: 1.15rem; margin: 1.6rem 0 .8rem; color: #ffcc80; }
.s-mark {
    color: var(--gold); font-weight: 800;
    background: rgba(251,191,36,.14); padding: 0 .28em; border-radius: .35em;
}
.bare { color: var(--text-muted); }

.conj-table {
    width: 100%; max-width: 480px; border-collapse: collapse; margin: .8rem 0 1.4rem;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.conj-table td { padding: .55rem 1rem; border-bottom: 1px solid var(--border); }
.conj-table tr:last-child td { border-bottom: none; }

.rule-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; margin: .8rem 0 1.4rem; }
.rule-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1rem; }
.rule-card h3 { font-size: .95rem; color: var(--gold); margin-bottom: .35rem; }
.rule-card p { color: var(--text-muted); font-size: .88rem; }

.center-row { display: flex; gap: .8rem; justify-content: center; margin: 1.4rem 0; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: .45rem; padding: .65rem 1.3rem;
    border-radius: 10px; font-size: .92rem; font-weight: 600; cursor: pointer;
    border: none; transition: all .25s; text-decoration: none; color: #fff;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.12); }
.btn-sec { background: transparent; border: 1px solid var(--border); color: var(--text-light); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #f59e0b); color: #1e1b4b; }
.hidden { display: none !important; }

.score-row {
    display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: .4rem 0 .9rem;
    font-size: .92rem; color: var(--text-muted);
}
.score-badge, .streak-badge { color: var(--text-muted); }
#score-val, #streak-val { color: var(--gold); font-weight: 700; }
.round-badge { margin-left: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: .15rem .6rem; }

.progress-bar { height: 7px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 99px; overflow: hidden; margin-bottom: 1.2rem; }
#progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--gold)); width: 0; transition: width .3s; }

.sentence-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.3rem 1.4rem; }
.sentence { font-size: 1.12rem; margin-bottom: .9rem; }
.verb-hint { color: var(--text-muted); font-style: italic; }
#verb-input {
    width: 100%; padding: .7rem .95rem; font-size: 1rem; border-radius: 9px;
    border: 2px solid var(--border); background: rgba(13,17,23,.6); color: var(--text-light); outline: none;
}
#verb-input:focus { border-color: var(--primary); }
#verb-input.ok  { border-color: var(--ok); }
#verb-input.bad { border-color: var(--bad); }

.feedback { margin-top: .8rem; border-radius: 9px; padding: .65rem .9rem; font-size: .95rem; }
.feedback.ok  { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.4); color: #a7f3d0; }
.feedback.bad { background: rgba(248,113,113,.10); border: 1px solid rgba(248,113,113,.4); color: #fecaca; }
.feedback.hidden { display: none; }

#round-result { text-align: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.6rem; margin-top: 1rem; }
#round-title { color: var(--gold); margin-bottom: .4rem; }
#round-detail { color: var(--text-muted); margin-bottom: 1rem; }

@media (max-width: 560px) {
    .app-container { padding: 1.6rem 1rem 2.4rem; }
    h1 { font-size: 1.55rem; }
    .sentence { font-size: 1rem; }
    .score-row { gap: .6rem; font-size: .85rem; }
}