:root{font-family:system-ui,-apple-system,"Hiragino Kaku Gothic ProN",sans-serif;color:#183e42;background:#edf7f5;font-size:16px}*{box-sizing:border-box}body{margin:0}header{max-width:1080px;margin:auto;padding:18px 24px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #b7d5d1}a{color:#14635f;text-underline-offset:4px}header a{font-weight:800}header span{font-size:.8rem}main{max-width:800px;padding:20px 24px;margin:auto}h1{font-size:clamp(1.3rem,4vw,2rem);line-height:1.4;letter-spacing:-.04em;margin:0 0 8px}h2{font-size:1.3rem;line-height:1.45;margin:10px 0}p{line-height:1.6}.lead{font-size:.85rem;margin:0 0 16px}nav{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-bottom:12px}button,input,select{font:inherit;min-height:44px;max-width:100%}button{background:#176c5e;color:white;border:2px solid #176c5e;border-radius:11px;padding:8px 14px;font-weight:750;cursor:pointer;overflow-wrap:anywhere}button.secondary,nav button{background:white;color:#176c5e}nav button{padding:8px 2px;font-size:.9rem}nav button[aria-selected=true]{background:#176c5e;color:white}button:disabled{cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,[role=tab]:focus-visible{outline:3px solid #925600;outline-offset:3px}.panel{background:white;border:1px solid #c2dbd7;border-radius:22px;padding:22px;margin-bottom:20px;box-shadow:0 8px 30px #194d4210}.controls{display:flex;gap:10px;margin-bottom:12px}.controls label{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px;font-size:.8rem;font-weight:650}select,input{width:100%;color:#183e42;background:white;border:1px solid #789995;border-radius:8px;padding:6px;font-size:.9rem}.progress-label{font-size:.8rem;font-weight:650;margin:8px 0}progress{width:100%;height:8px;accent-color:#197d6c;margin:0 0 10px}#flashcard{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;min-height:180px;background:#edf7f5;color:#183e42;border-color:#b7d5d1;padding:18px;font-weight:400}#flashcard strong{font-size:2rem;overflow-wrap:anywhere}#flashcard .meaning{font-size:1.3rem;font-weight:750}#flashcard .example{font-size:.95rem}#flashcard .translation{font-size:.85rem}#flashcard .turn{font-size:.75rem;color:#425f61}#speak{margin-top:10px}.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.actions button{flex:1}.hint{font-size:.72rem;color:#425f61;margin:12px 0 0}#choices{display:grid;gap:7px}#choices button{text-align:left;background:white;color:#183e42;border-color:#789995;font-weight:600;min-height:44px}#choices button.correct{background:#d8ede5;border-color:#176c5e}#choices button.wrong{background:#fae4dc;border-color:#914022}#feedback{background:#edf7f5;border-radius:10px;padding:8px 10px;margin:10px 0;font-size:.85rem;line-height:1.4}#feedback p{margin:3px 0;line-height:1.4}#next{width:100%}table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.8rem}th,td{text-align:left;border-bottom:1px solid #c2dbd7;padding:7px 3px;overflow-wrap:anywhere}th:first-child{width:10%}th:nth-child(2){width:23%}th:nth-child(3){width:15%}th:nth-child(5){width:16%}td button{border:0;border-radius:4px;background:transparent;color:#14635f;text-decoration:underline;padding:2px;font-size:inherit;min-height:44px;width:100%;text-align:left}tr[data-word]{cursor:pointer}.example-row td{background:#edf7f5;line-height:1.6;padding:10px}#stats p{margin:12px 0}#mistakes{padding-left:22px}footer{font-size:.75rem;color:#425f61;margin:24px 0;line-height:1.7}#storage-warning{color:#873a1f;font-weight:700}[hidden]{display:none!important}@media(max-width:480px){header{padding:12px 14px;gap:6px;font-size:.85rem}header span{font-size:.7rem}main{padding:14px 12px}.panel{padding:14px;border-radius:18px}.lead{font-size:.78rem;margin-bottom:12px}.controls{margin-bottom:8px}#flashcard{min-height:164px}#question{font-size:1.2rem}#feedback{font-size:.8rem}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:480px){#choices{grid-template-columns:repeat(2,minmax(0,1fr))}#choices button{font-size:.88rem;line-height:1.4}#quiz-count{margin:6px 0}#question{margin:6px 0 10px}#feedback{padding:6px 8px;margin:8px 0}.panel .hint{margin-top:8px}header{padding-top:10px;padding-bottom:10px}main{padding-top:10px}h1{margin-bottom:4px}}
@media (pointer: coarse){.hint{display:none}}
@media(max-width:480px){nav{grid-template-columns:repeat(4,minmax(0,1fr))}nav button{white-space:nowrap;font-size:.8rem;padding:8px 0;line-height:1.4}.hint{display:none}}
