/* Subtle, bounded motion. All controls work without animations. */
.word-run-track { height: 5px; border-radius: 5px; background: #2a1b3e; margin: -12px 0 26px; overflow: hidden; }.word-run-track>span { display: block; height: 100%; background: var(--fleng-accent); border-radius: inherit; transition: width .4s ease; }
.flashcard-turn { display: block; width: 100%; border: 0; padding: 0; margin: 15px 0 20px; background: transparent; color: var(--fleng-lilac); cursor: pointer; font: inherit; perspective: 1100px; border-radius: 13px; }
.flashcard-inner { display: grid; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.2,.7,.25,1); position: relative; min-height: 245px; }
.flashcard-turn.is-flipped .flashcard-inner { transform: rotateY(180deg); }
.flashcard-face { grid-area: 1/1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 17px; width: 100%; min-height: 245px; padding: 28px; border: 1px solid #7c4396; border-radius: 13px; background: radial-gradient(ellipse at 80% 0%,#71309148,transparent 70%),linear-gradient(145deg,#2a1541,#170e2a); backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow-wrap: anywhere; }
.flashcard-back { transform: rotateY(180deg); background: radial-gradient(ellipse at 20% 100%,#4928c257,transparent 70%),linear-gradient(145deg,#291040,#1a1130); }
.flashcard-kicker { color: #d09aec; font-size: 10px; letter-spacing: .16em; }.flashcard-word { font-size: clamp(26px,3vw,40px); font-weight: 600; line-height: 1.4; width: 100%; }.flashcard-hint { font-size: 11px; color: #ae94c0; }.flashcard-example { font-size: 12px; color: #c6aed9; line-height: 1.9; width: 100%; }
.practice-summary { position: relative; max-width: 730px; margin: 0 auto; padding: 30px; border: 1px solid #61377c; border-radius: 18px; background: radial-gradient(ellipse at 50% 0%,#6a258b4a,transparent 65%),#130d22; text-align: center; overflow: hidden; }
.practice-summary>.lesson-chip { display: block; width: fit-content; margin: 17px auto 12px; }.summary-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto; border-radius: 16px; background: var(--fleng-accent); color: white; font-size: 30px; box-shadow: 0 0 45px #a730e637; }.practice-summary h2 { font-size: clamp(25px,3vw,35px); line-height: 1.3; letter-spacing: -.04em; margin: 14px 0 12px; }.practice-summary>p { font-size: 12px; line-height: 1.9; }.summary-score-ring { width: 137px; height: 137px; padding: 6px; border-radius: 50%; margin: 25px auto; }.summary-score-center { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: inherit; background: #170e28; }.summary-score-center strong { font-size: 32px; font-weight: 600; }.summary-score-center span { font-size: 9px; color: #bd9fd0; margin-top: 4px; }.summary-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin: 20px 0 29px; }.summary-metric { display: grid; gap: 5px; padding: 15px 7px; border: 1px solid var(--fleng-border); border-radius: 10px; background: #20122e; }.summary-metric strong { color: #e1b6fd; font-size: 22px; font-weight: 600; }.summary-metric span { color: var(--fleng-muted); font-size: 10px; }.practice-summary h3 { font-size: 14px; text-align: left; margin: 0 0 13px; }.summary-word-list { max-height: 330px; overflow: auto; margin: 0; padding: 0; list-style: none; }.summary-word { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid #d9a4ff12; text-align: left; }.summary-word>span:first-child { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }.summary-word strong { font-size: 12px; }.summary-word small { font-size: 11px; color: var(--fleng-muted); }.summary-word .word-status { color: #a1dbc4; border-color: #336d55; }.summary-word.is-mistake .word-status { color: #f1b9d4; border-color: #8f4968; }.summary-celebration { position: absolute; inset: 0; pointer-events: none; }.summary-celebration i { position: absolute; top: 42px; left: 50%; height: 5px; width: 5px; border-radius: 1px; background: #d594fc; opacity: 0; }.summary-celebration i:nth-child(3n) { background: #f3d9ff; }.summary-celebration i:nth-child(2n) { background: #8b59e8; }.summary-celebration i:nth-child(1) { --x: -180px; --y: 100px; }.summary-celebration i:nth-child(2) { --x: -140px; --y: 150px; }.summary-celebration i:nth-child(3) { --x: -100px; --y: 75px; }.summary-celebration i:nth-child(4) { --x: -60px; --y: 160px; }.summary-celebration i:nth-child(5) { --x: -210px; --y: 50px; }.summary-celebration i:nth-child(6) { --x: -120px; --y: 20px; }.summary-celebration i:nth-child(7) { --x: 180px; --y: 100px; }.summary-celebration i:nth-child(8) { --x: 140px; --y: 150px; }.summary-celebration i:nth-child(9) { --x: 100px; --y: 75px; }.summary-celebration i:nth-child(10) { --x: 60px; --y: 160px; }.summary-celebration i:nth-child(11) { --x: 210px; --y: 50px; }.summary-celebration i:nth-child(12) { --x: 120px; --y: 20px; }
.lesson-completed .lesson-finish-metrics { display: flex; flex-wrap: wrap; gap: 12px; margin: 15px 0; }.lesson-finish-metrics>span { border: 1px solid #cfa4eb25; border-radius: 8px; padding: 8px 12px; background: #241239; color: var(--fleng-lilac); font-size: 12px; }
@media(prefers-reduced-motion:no-preference) {
  .practice-summary,.word-practice-card,.word-row,.auth-wrap { animation: fleng-appear .45s ease backwards; }
  .word-row,.catalog-card,.quick-card { transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
  .word-practice-card.answer-success { animation: fleng-correct .5s ease; }.word-practice-card.answer-mistake { animation: fleng-retry .35s ease; }
  .summary-celebration i { animation: fleng-confetti 1.1s ease-out .1s both; }
  .lesson-completed { animation: fleng-appear .45s ease; }
  .lesson-tile { transition: background .15s,border-color .15s,transform .15s; }.lesson-tile[aria-pressed=true] { transform: translateY(-4px); }
}
@keyframes fleng-appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fleng-correct { 0% { box-shadow: 0 0 0 1px #74d4ab88; } 50% { box-shadow: 0 0 30px #74d4ab25; } 100% { box-shadow: 0 0 0 1px transparent; } }
@keyframes fleng-retry { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@keyframes fleng-confetti { 0% { opacity: 0; transform: translate(0,0) rotate(0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--x),var(--y)) rotate(160deg); } }
@media(max-width:600px) { .flashcard-face,.flashcard-inner { min-height: 260px; }.flashcard-face { padding: 22px 15px; }.practice-summary { padding: 23px 15px; }.summary-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }.summary-word { flex-wrap: wrap; gap: 8px; }.summary-word .word-status { font-size: 9px; }.summary-word-list { max-height: 300px; } }
@media(prefers-reduced-motion:reduce) {
  .flashcard-inner { transition: none; transform-style: flat; }
  .flashcard-turn.is-flipped .flashcard-inner,.flashcard-back { transform: none; }
  .flashcard-front[aria-hidden=true],.flashcard-back[aria-hidden=true] { visibility: hidden; }
  .summary-celebration { display: none; }
}
