/* Standalone demo components copied and simplified from the exercise UI.
   These styles intentionally do not depend on production page stylesheets. */
:root { font-family: Inter, system-ui, sans-serif; } .ms { font-family: Inter, system-ui, sans-serif; } .ms .mw-brand { font-weight: 800; } .ms .mw-header > span:last-child { text-align: right; } .ms .mw-stage { height: 455px; background: #eeeae0; background-image: radial-gradient(#c6bfa944 .8px, transparent .8px); background-size: 17px 17px; } .ms [data-scene] { padding: 24px 30px; } .ms-icon { width: 22px; height: 22px; display: block; flex: none; } .ms-paper { width: 100%; max-width: 570px; border: 1.5px solid #34372e; border-radius: 14px; background: #fffaf0; box-shadow: 4px 5px #c7c0b0; } .ms-cloze { padding: 35px 30px 24px; } .ms-sentence { margin: 0 0 32px; font-size: 32px; font-weight: 500; letter-spacing: -.9px; line-height: 1.5; } .ms-blank { color: #175ec1; border-bottom: 2px solid #175ec1; } .ms-complete { color: #3e623f; display: none; } .ms-word { border-bottom: 2px dotted #557997; border-radius: 2px; } .ms-word.is-hovered { background: #dfebf3; } .ms-answer-row { display: flex; gap: 12px; } .ms-answer { min-width: 0; width: 100%; flex: 1; height: 54px; background: #fffef9; border: 2px solid #30342b; border-radius: 10px; box-shadow: 3px 3px #d9cfbc; padding: 12px 14px; font: 500 17px Inter, sans-serif; color: #25251f; } .ms-answer.is-correct { background: #f0f4e6; border-color: #7b8955; box-shadow: 3px 3px #dbe0c4; } .ms-check { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 54px; padding: 12px 22px; background: #0b57d0; color: white; border: 0; border-radius: 7px; box-shadow: 3px 3px #b9cae5; font: 800 14px Inter, sans-serif; text-transform: uppercase; letter-spacing: .2px; white-space: nowrap; } .ms-check .ms-icon { width: 17px; height: 17px; opacity: .75; } .ms-check.is-pressed { transform: translate(2px,2px); box-shadow: 1px 1px #b9cae5; } .ms-correct { display: flex; align-items: center; gap: 7px; margin: 19px 0 0; font-size: 13px; color: #4a6b3e; } .ms-correct .ms-icon { width: 17px; height: 17px; }
.ms-gloss { position: absolute; width: 254px; padding: 18px; background: #fffefb; color: #263329; border: 1px solid #cbd2c5; border-radius: 13px; box-shadow: 0 8px 28px #26332926; z-index: 3; } .ms-gloss header { display: flex; align-items: center; justify-content: space-between; gap: 20px; } .ms-gloss strong { font-size: 18px; font-weight: 700; } .ms-gloss header .ms-icon { width: 18px; height: 18px; color: #7e887a; } .ms-gloss > p { margin: 7px 0 17px; font-size: 13px; color: #727968; } .ms-link-out { display: flex; align-items: center; gap: 11px; background: #edf3fc; border: 1px solid #d3dfef; padding: 13px 12px; border-radius: 7px; color: #155ac1; font-weight: 650; font-size: 14px; white-space: nowrap; } .ms-link-out > span { text-decoration: underline; text-underline-offset: 3px; } .ms-link-out .ms-outbound { width: 16px; height: 16px; margin-left: auto; } .ms-link-out.is-following { background: #dbe9fa; border-color: #8caacb; } .ms-pointer { position: absolute; width: 25px; height: 31px; z-index: 4; filter: drop-shadow(1px 2px 2px #3333); pointer-events: none; } .ms-pointer svg { width: 100%; height: 100%; } .ms[data-playing="true"] .ms-pointer { transition: left .20s ease-out, top .20s ease-out, transform .12s ease; }
.ms-vocab { display: none; max-width: 420px; overflow: hidden; } .ms-vocab > img { display: block; width: 100%; height: 242px; object-fit: contain; padding: 12px 0 0; } .ms-vocab-body { padding: 9px 22px 19px; text-align: center; } .ms-vocab-title { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 0; font: 400 38px/1.05 'Bebas Neue', sans-serif; text-transform: uppercase; } .ms-vocab-title .ms-icon { width: 21px; height: 21px; color: #6e8055; } .ms-vocab-meaning { color: #7d806c; font-size: 12px; margin: 3px 0 9px; } .ms-vocab-example { font-size: 13px; margin: 0; } .ms-ratings { display: flex; gap: 7px; width: 85%; margin: 16px auto 0; } .ms-ratings > span { flex: 1; min-width: 0; border: 1.5px solid #25251f; box-shadow: 2px 2px #c8c0b0; padding: 7px 5px; border-radius: 5px; font-size: 9px; font-weight: 800; text-transform: uppercase; } .ms-ratings > span:nth-child(1) { background: #ff3578; color: white; } .ms-ratings > span:nth-child(2) { background: #ffad38; } .ms-ratings > span:nth-child(3) { background: #57d45e; } .ms-ratings > span:nth-child(4) { background: #53d4d1; }
/* Oversized CEFR levels, with a continuous hue progression across the tense cards. */
.ms [data-scene="depth"] { padding-left: 0; padding-right: 0; } .ms-tenses { width: 100%; min-width: 0; } .ms-tenses h2 { margin: 0 0 32px; text-align: center; color: #2d332c; font: 800 30px/1.2 Inter, sans-serif; letter-spacing: -1px; } .ms-tense-viewport { width: 100%; overflow: hidden; padding: 12px 0 20px; } .ms-tense-track { position: relative; display: flex; gap: 17px; width: 100%; transform: translateX(var(--shift,0px)); will-change: transform; } .ms-tense { position: relative; display: flex; flex: 0 0 188px; flex-direction: column; justify-content: space-between; min-width: 0; height: 210px; padding: 23px 20px; border: 1.5px solid hsl(var(--hue) 35% 35%); background: linear-gradient(145deg, hsl(var(--hue) 65% 89%),hsl(var(--hue) 65% 78%)); color: hsl(var(--hue) 40% 22%); border-radius: 13px; box-shadow: 4px 5px hsl(var(--hue) 25% 66%); transform: rotate(-1.5deg) scale(.97); transform-origin: center; } .ms-tense:nth-child(even) { transform: rotate(1.5deg) scale(.97); } .ms-tense.is-active { transform: rotate(0) scale(1.025); } .ms-tense > span { font-size: 55px; font-weight: 800; line-height: 1; letter-spacing: -3px; } .ms-tense > strong { font-size: 15px; font-weight: 650; line-height: 1.4; padding-right: 3px; } .ms-tense > i { display: none; position: absolute; right: 15px; top: 15px; background: none; width: 22px; height: 22px; margin: 0; } .ms-tense.is-active > i { display: block; }
/* The correction story starts with just the writing field and Check. */
.ms-writing { width: 100%; max-width: 570px; } .ms-writing-draft textarea { display: block; width: 100%; height: 155px; min-height: 155px; resize: none; padding: 22px; background: #fffefb; color: #2d332a; border: 1.5px solid #797e6d; border-radius: 12px; box-shadow: 4px 5px #d0c9b9; font: 500 23px/1.65 Inter, sans-serif; letter-spacing: -.6px; } .ms-writing-actions { display: flex; justify-content: flex-end; margin-top: 20px; } .ms-writing-actions .ms-check { background: #f5d294; color: #52371b; border: 1.5px solid #52371b; box-shadow: 3px 4px #d7c095; } .ms-writing-result { display: none; } .ms-original, .ms-revised { margin: 0; color: #3f4439; font-size: 26px; line-height: 1.7; letter-spacing: -.8px; } .ms-original { color: #818274; } .ms-revised { font-weight: 600; } .ms-result-arrow { margin: 12px 0 16px; color: #a5ab93; } .ms-result-arrow .ms-icon { width: 20px; height: 20px; } .ms-change { position: relative; display: inline-block; padding: 0 4px; isolation: isolate; } .ms-change::before { content: ''; position: absolute; inset: 5px -2px 3px; z-index: -1; border-radius: 6px; transform: scaleX(var(--mark,0)); transform-origin: left; background: #f6d3ab; } .ms-to::before { background: #d6e9b3; } .ms-from { color: #976137; } .ms-to { color: #3c5d28; } .ms-coaching { display: flex; align-items: center; justify-content: center; gap: 13px; position: relative; max-width: 410px; margin: 32px auto 0; padding: 21px 20px; background: #fffef9; border: 1px solid #a4b28f; border-radius: 12px; box-shadow: 3px 4px #d3d8c6; } .ms-coaching::before { content: ''; position: absolute; top: -7px; left: calc(50% - 7px); width: 12px; height: 12px; transform: rotate(45deg); border-left: 1px solid #a4b28f; border-top: 1px solid #a4b28f; background: #fffef9; } .ms-coaching p { margin: 0; font-size: 23px; font-weight: 650; letter-spacing: -.7px; line-height: 1.35; color: #4c6240; }
@media (max-width: 540px) { .ms .mw-stage { height: 465px; } .ms [data-scene] { padding: 22px 17px; } .ms-cloze { padding: 27px 20px 20px; } .ms-sentence { font-size: 25px; letter-spacing: -.8px; margin-bottom: 26px; } .ms-answer-row { gap: 9px; } .ms-answer { font-size: 16px; height: 49px; padding: 11px; } .ms-check { min-height: 49px; padding: 11px 13px; font-size: 11px; gap: 8px; } .ms-check .ms-icon { width: 14px; height: 14px; } .ms-gloss { width: 238px; padding: 16px; } .ms-gloss strong { font-size: 17px; } .ms-link-out { font-size: 14px; } .ms-vocab-body { padding: 8px 18px 17px; } .ms-vocab-title { font-size: 34px; } .ms-vocab > img { height: 232px; } .ms-ratings { gap: 6px; } .ms-ratings > span { font-size: 9px; padding: 7px 3px; } .ms-tenses h2 { font-size: 27px; margin-bottom: 30px; } .ms-tense { flex-basis: 161px; height: 199px; padding: 22px 17px; } .ms-tense > span { font-size: 51px; } .ms-tense > strong { font-size: 14px; } .ms-writing-draft textarea { height: 163px; min-height: 163px; font-size: 21px; padding: 18px; } .ms-original, .ms-revised { font-size: 22px; line-height: 1.6; letter-spacing: -.7px; } .ms-result-arrow { margin: 12px 0; } .ms-coaching { margin-top: 30px; padding: 20px 16px; gap: 10px; } .ms-coaching p { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .ms * { transition: none !important; } }
.ms[data-playing="true"] .ms-coaching { transition: opacity .25s ease, transform .25s ease; } .ms[data-playing="true"] .ms-tense { transition: transform .15s ease; }

/* A restrained color sweep follows the demo timeline, so Pause and scrubbing
   also freeze the treatment. Reduced motion keeps the gradient still. */
.ms-coaching { max-width: 470px; border: 3px solid #8a6da4; box-shadow: 4px 5px #c5b6d1; }
.ms-coaching::before { top: -9px; border-left: 3px solid #8a6da4; border-top: 3px solid #8a6da4; }
.ms-coaching p {
  text-align: center;
  color: #665b83;
  background: linear-gradient(105deg, #405e92 0%, #716094 24%, #a36783 43%, #ae8462 54%, #687998 71%, #405e92 100%);
  background-size: 220% 100%;
  background-position: var(--shimmer, 0%) 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 360px) { .ms-coaching { padding: 17px 13px; gap: 8px; } .ms-coaching p { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .ms-coaching p { background-position: 50% 50%; } }

.ms-value-title { margin: 0 0 18px; color: #2d332c; font: 750 clamp(23px, 3.8vw, 30px)/1.25 Inter, sans-serif; letter-spacing: -.8px; }
