/* Light theme */
*{box-sizing:border-box}
html,body{margin:0;background:#fefefe;color:#333;font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
.topbar{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#2196f3;color:#fff;border-bottom:3px solid #64b5f6}
.topbar h1{margin:0;font-size:18px;font-weight:800}
.topbar span{font-weight:700;opacity:.95}
.controls button{margin-left:8px}

button{border:0;border-radius:10px;padding:10px 14px;font-weight:700;cursor:pointer;transition:.15s}
button.primary{background:#64b5f6;color:#fff}
button.primary:hover{background:#42a5f5}
button.ghost{background:#e3f2fd;color:#0d47a1}
button.ghost:hover{filter:brightness(0.98)}
button:disabled{opacity:.5;cursor:not-allowed}

.logo{position:fixed;right:12px;top:64px;width:52px;height:52px;object-fit:cover;border-radius:12px;box-shadow:0 6px 18px rgba(0,0,0,.18);opacity:.95}

main{max-width:980px;margin:24px auto;padding:0 16px}
.card{background:#fff;border-radius:18px;padding:16px;box-shadow:0 10px 28px rgba(33,150,243,.09)}
.wordline{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;margin-bottom:8px}
.wordline .label{opacity:.7;font-weight:700}
.word{font-size:28px;font-weight:900;color:#1976d2}
.hint{opacity:.65}
.legend{font-size:14px;margin:8px 0 12px}

.grid{width:100%;border-collapse:collapse;font-size:15px}
.grid th,.grid td{border-bottom:1px solid #eef1f7;padding:10px 8px;vertical-align:top}
.grid th{background:#fafbfe;text-align:left;color:#4a5568}

.options{display:flex;flex-wrap:wrap;gap:6px}
.opt{padding:8px 10px;border-radius:10px;background:#eef4ff;color:#0d47a1;font-weight:800;cursor:pointer;border:2px solid transparent}
.opt:hover{filter:brightness(1.03)}
.opt.correct{background:#e8f5e9;border-color:#43a047;color:#1b5e20}
.opt.wrong{background:#ffebee;border-color:#e53935;color:#b71c1c}

.result{min-height:22px}
.result.ok{color:#1b5e20;font-weight:700}
.result.bad{color:#b71c1c;font-weight:700}

.scoreline{display:flex;justify-content:space-between;align-items:center;padding:10px 0 6px;color:#4a5568}
.hidden{display:none}

.about,.summary{max-width:980px;margin:14px auto 40px;padding:0 16px;color:#546e7a}
.summary h2{margin-top:0}
footer{padding:18px 16px;text-align:center;color:#78909c;font-size:13px}
@media (max-width:640px){.wordline{grid-template-columns:auto 1fr}.hint{grid-column:1/3}.logo{top:60px}}
