:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:#18181b;background-color:#f8fafc;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Hiragino Kaku Gothic ProN,Noto Sans JP,sans-serif;line-height:1.5}*{box-sizing:border-box}body{min-height:100vh;margin:0}button{font:inherit}.page{flex-direction:column;gap:20px;max-width:720px;margin:0 auto;padding:24px 16px 40px;display:flex}.topbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.brand{align-items:center;gap:10px;font-size:1.15rem;font-weight:700;display:flex}.brand-mark{color:#fff;background:#1d4ed8;border-radius:8px;justify-content:center;align-items:center;width:30px;height:30px;font-size:1rem;display:inline-flex}.badge{color:#1e40af;background:#dbeafe;border-radius:999px;padding:2px 8px;font-size:.75rem;font-weight:600}.stats{color:#475569;gap:16px;font-size:.9rem;display:flex}.card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:28px 24px;box-shadow:0 4px 20px #0f172a0d}.card-meta{justify-content:space-between;align-items:center;margin-bottom:18px;display:flex}.pill{letter-spacing:.03em;color:#334155;background:#f1f5f9;border-radius:999px;padding:4px 10px;font-size:.78rem;font-weight:700}.meaning{color:#475569;font-size:.95rem;font-weight:500}.sentence{text-align:center;margin:12px 0 20px;font-size:clamp(1.5rem,4vw,2.1rem);font-weight:500;line-height:1.6}.target-word{color:#0f172a;background:#fef08a;border-radius:6px;padding:2px 6px;font-weight:700}.target-particle{color:#2563eb;margin-left:2px;font-weight:600}.instruction{text-align:center;color:#64748b;margin:0 0 20px;font-size:.92rem}.tile-row{flex-wrap:wrap;justify-content:center;align-items:stretch;gap:10px;display:flex}.mora-tile,.particle-tile{border-radius:12px;flex-direction:column;align-items:center;gap:4px;min-width:68px;padding:12px 10px 8px;display:flex}.mora-tile{color:#0f172a;cursor:pointer;background:#fff;border:2px solid #cbd5e1;transition:transform 80ms,border-color .12s,background .12s}.mora-tile:hover:not(:disabled){background:#eff6ff;border-color:#2563eb;transform:translateY(-1px)}.mora-tile:disabled{cursor:default}.particle-tile{color:#64748b;background:#f8fafc;border:2px dashed #cbd5e1}.mora-kana{font-size:1.45rem;font-weight:600}.mora-key{color:#64748b;font-size:.72rem}.flat-row{justify-content:center;margin-top:12px;display:flex}.flat-btn{color:#0f172a;cursor:pointer;background:#fff;border:2px solid #cbd5e1;border-radius:10px;padding:10px 20px;font-weight:600;transition:border-color .12s,background .12s}.flat-btn:hover:not(:disabled){background:#eff6ff;border-color:#2563eb}.flat-btn:disabled{cursor:default}.tile-correct{color:#14532d!important;background:#dcfce7!important;border-color:#16a34a!important}.tile-wrong{color:#7f1d1d!important;background:#fee2e2!important;border-color:#dc2626!important}.feedback{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;margin-top:24px;padding:18px}.feedback-ok{background:#f0fdf4;border-color:#bbf7d0}.feedback-err{background:#fef2f2;border-color:#fecaca}.feedback-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}.accent-label{color:#1e293b;font-size:.9rem;font-weight:600}.alt-note{color:#475569;margin:0 0 8px;font-size:.85rem}.pitch-diagram{justify-content:center;margin:8px 0 14px;display:flex;overflow-x:auto}.actions{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.primary-btn,.secondary-btn{cursor:pointer;border:1px solid #0000;border-radius:10px;padding:10px 18px;font-weight:600}.primary-btn{color:#fff;background:#1d4ed8}.primary-btn:hover{background:#1e40af}.secondary-btn{color:#1e293b;background:#fff;border-color:#cbd5e1}.secondary-btn:hover{background:#f1f5f9}.footer{text-align:center;color:#64748b;font-size:.82rem}.footer code{color:#0f172a;background:#e2e8f0;border-radius:4px;padding:1px 5px}
