.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px 16px;background:radial-gradient(ellipse at top,rgba(83,82,237,.12),transparent 55%),#f5f6fa}.login-card{width:min(100%,400px);padding:36px 28px;background:#fff;border-radius:16px;box-shadow:0 8px 32px #00000014;display:flex;flex-direction:column}.login-title{margin:0;font-size:1.75rem;text-align:center;color:#2f3542}.login-sub{margin:8px 0 24px;text-align:center;color:#888;font-size:.95rem}.login-label{font-size:.85rem;font-weight:600;color:#57606f;margin-bottom:6px}.login-input{margin-bottom:16px;padding:12px 14px;border:1px solid #dfe4ea;border-radius:10px;font-size:1rem;outline:none;transition:border-color .15s ease,box-shadow .15s ease}.login-input:focus{border-color:#5352ed;box-shadow:0 0 0 3px #5352ed26}.login-submit{margin-top:8px;padding:14px;border:none;border-radius:10px;background:#5352ed;color:#fff;font-size:1rem;font-weight:600;cursor:pointer;transition:background .15s ease,opacity .15s ease}.login-submit:hover:not(:disabled){background:#3f3ed9}.login-submit:disabled{opacity:.7;cursor:not-allowed}.login-error{margin:0 0 16px;padding:10px 12px;border-radius:8px;background:#ffe8ea;color:#c0392b;font-size:.9rem}.pitch-word{display:inline-flex;flex-direction:column;align-items:center;text-align:center}.pitch-kanji{font-size:.85rem;color:#888;margin-bottom:2px;font-weight:500}.pitch-mora-row{display:flex;justify-content:center;align-items:baseline}.mora{box-sizing:border-box;font-size:1.6rem;line-height:1.35;padding:4px 1px;border-top:2px solid transparent;border-bottom:2px solid transparent;font-family:Hiragino Sans,Noto Sans JP,sans-serif;font-weight:500;color:#2f3542}.mora-high{border-top-color:#ff4757}.mora-low{border-bottom-color:#ff4757}.pitch-fallback{font-size:1.6rem;color:#2f3542;font-weight:600}.pitch-size-lg .pitch-kanji{font-size:2.4rem;font-weight:700;color:#2f3542;margin-bottom:10px;letter-spacing:.02em;line-height:1.2}.pitch-size-lg .mora{font-size:2.1rem;font-weight:700;padding:6px 2px;border-top-width:3px;border-bottom-width:3px;color:#1e272e}.pitch-size-lg.pitch-fallback,.pitch-fallback.pitch-size-lg{font-size:2.4rem;font-weight:700}.play-audio{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border:1px solid #dfe4ea;background:#fff;color:#5352ed;border-radius:50%;cursor:pointer;line-height:1;transition:background .15s ease,color .15s ease,border-color .15s ease}.play-audio:hover,.play-audio.is-playing{background:#5352ed;color:#fff;border-color:#5352ed}.play-audio.is-missing{color:#a4b0be;border-color:#dfe4ea}.play-audio.is-missing:hover{background:#f1f2f6;color:#a4b0be;border-color:#dfe4ea}.play-audio-sm{width:32px;height:32px;font-size:.7rem}.play-audio-md{width:40px;height:40px;font-size:.85rem}.play-audio-lg{width:48px;height:48px;font-size:1rem}.play-audio-xl{width:56px;height:56px;font-size:1.15rem}.study-page{min-height:100vh;display:flex;flex-direction:column;max-width:720px;margin:0 auto;padding:24px 16px;box-sizing:border-box}.study-page-header{flex-shrink:0}.study-page-header h1{margin:12px 0 0}.study-stage{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;width:100%;padding:16px 0 32px;min-height:0;transform:translateY(-6vh)}.flip-card{display:block;width:min(100%,560px);padding:0;border:none;background:transparent;cursor:pointer;outline:none}.flip-card:focus-visible .flip-face{box-shadow:0 0 0 3px #5352ed59,0 4px 20px #0000001f}.flip-face{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:48px 72px;min-height:380px;width:100%;box-sizing:border-box;background:#fff;border-radius:20px;box-shadow:0 4px 24px #0000001a;animation:flip-in .35s ease}@keyframes flip-in{0%{opacity:0;transform:rotateY(70deg) scale(.96)}to{opacity:1;transform:rotateY(0) scale(1)}}.flip-audio{position:absolute;left:18px;top:50%;transform:translateY(-50%);z-index:2}.flip-word-block{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;max-width:100%;padding:0 8px}.flip-hint{position:absolute;bottom:18px;left:0;right:0;text-align:center;font-size:.85rem;color:#a4b0be;font-weight:500}.flip-back-kanji{font-size:2.6rem;font-weight:800;color:#1e272e;line-height:1.2;letter-spacing:.02em}.flip-back-furigana{font-size:1.35rem;font-weight:700;color:#5352ed;margin-top:4px;line-height:1.4}.flip-back-meaning{font-size:1.35rem;font-weight:700;color:#2f3542;margin-top:12px;line-height:1.5;text-align:center}.study-stage .rating-buttons{margin-top:0;width:min(100%,560px)}.lesson-done{margin-top:32px;text-align:center}.lesson-done-sub{color:#888}.study-quote{margin:28px auto;max-width:480px;padding:28px 24px;background:#fff;border-radius:16px;box-shadow:0 2px 12px #00000014;border-left:4px solid #5352ed;text-align:left}.study-quote-jp{font-size:1.25rem;margin:0 0 12px;line-height:1.6}.study-quote-vi{margin:0;color:#555;font-size:1.05rem;line-height:1.5}.study-quote footer{margin-top:16px;color:#a4b0be;font-size:.9rem}.lesson-done-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:8px}.lesson-done-actions .reveal-btn{margin-top:0}@media (max-width: 480px){.flip-face{min-height:320px;padding:40px 56px 48px}.flip-audio{left:10px}.flip-back-kanji{font-size:2.1rem}.pitch-size-lg .pitch-kanji{font-size:2rem}.pitch-size-lg .mora{font-size:1.75rem}}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,Segoe UI,Noto Sans JP,sans-serif;background:#f5f6fa;color:#2f3542}.container{max-width:720px;margin:0 auto;padding:24px 16px}.home-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.home-header h1{margin:0}.home-user{display:flex;align-items:center;gap:10px}.home-username{font-size:.9rem;color:#888;font-weight:500}.logout-btn{padding:8px 14px;border-radius:999px;border:1px solid #dfe4ea;background:#fff;color:#57606f;font-size:.85rem;font-weight:500;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}.logout-btn:hover{background:#ff4757;border-color:#ff4757;color:#fff}.back-link{display:inline-flex;align-items:center;gap:6px;margin-bottom:8px;padding:8px 14px 8px 10px;border-radius:999px;border:1px solid #dfe4ea;background:#fff;color:#5352ed;font-size:.9rem;font-weight:500;text-decoration:none;box-shadow:0 1px 3px #0000000a;transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease}.back-link:hover{background:#5352ed;border-color:#5352ed;color:#fff;box-shadow:0 2px 8px #5352ed40}.back-link:active{transform:translateY(1px)}.lesson-card{background:#fff;border-radius:12px;padding:16px;text-align:center;box-shadow:0 1px 4px #00000014;text-decoration:none;color:#2f3542;cursor:pointer;border:none;font-size:1rem}.lesson-card:hover{box-shadow:0 2px 10px #0000001f}.flashcard{background:#fff;border-radius:16px;padding:40px 24px;text-align:center;box-shadow:0 2px 12px #0000001a;margin-top:24px;min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.meaning{font-size:1.1rem;color:#555;margin-top:8px}.rating-buttons{display:flex;gap:12px;margin-top:24px;width:100%;justify-content:center}.rating-btn{flex:1;max-width:140px;padding:14px 0;border-radius:10px;border:none;font-size:1rem;font-weight:600;cursor:pointer;color:#fff}.rating-forgot{background:#ff4757}.rating-hard{background:#ffa502}.rating-easy{background:#2ed573}.progress-bar{height:6px;background:#dfe4ea;border-radius:3px;overflow:hidden;margin-top:16px}.progress-bar-fill{height:100%;background:#5352ed;transition:width .3s ease}.reveal-btn{margin-top:12px;padding:10px 20px;border-radius:8px;border:1px solid #ccc;background:#fff;cursor:pointer}.home-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.lesson-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;margin-top:16px}.lesson-card:last-child:nth-child(odd){grid-column:1 / -1;max-width:120px;justify-self:center}.home-username{font-size:.95rem;color:#2f3542;font-weight:700}.back-link{display:inline-flex;align-items:center;gap:6px;margin-bottom:8px;padding:8px 14px;border-radius:999px;border:1px solid #dfe4ea;background:#fff;color:#57606f;font-size:.85rem;font-weight:500;text-decoration:none;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}.back-link:hover{background:#5352ed;border-color:#5352ed;color:#fff}
