/* Practice games (slg-), ported from the Spanish site. Green stays for "right" marks. */
.slg { margin: 18px 0 28px; }
.slg-loading, .slg-empty { color: #5A6372; font-size: 15px; }
.slg-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.slg-top .slg-levels { margin: 0; }
.slg-levels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.slg-levels__lab, .slg-setup__t { font-size: 13px; font-weight: 700; color: #1A2130; margin-right: 4px; }
.slg-setup__t { margin: 14px 0 8px; }
.slg-setup__t:first-child { margin-top: 0; }
.slg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.slg-chip { padding: 5px 13px; border: 1.5px solid #CFD6E0; border-radius: 999px; background: #fff; color: #1A2130; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.slg-chip:hover { border-color: #1F5C99; }
.slg-chip[aria-checked="true"], .slg-chip[aria-pressed="true"] { background: #1F5C99; border-color: #1F5C99; color: #fff; }
.slg-card { padding: 18px 20px; border: 1px solid #D9DFE7; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(26,33,48,.04); }
.slg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.slg-row--between { justify-content: space-between; margin-top: 0; }
.slg-row--center { justify-content: center; }
.slg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 18px; border: 1.5px solid #1F5C99; border-radius: 999px; background: #1F5C99; color: #fff; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.slg-btn:hover { background: #174A7C; }
.slg-btn[disabled] { opacity: .5; cursor: default; }
.slg-btn--ghost { background: #fff; color: #1F5C99; }
.slg-btn--ghost:hover { background: #E4ECF5; }
.slg-btn--big { padding: 12px 26px; font-size: 16px; margin-top: 16px; }
.slg-play::before { content: ''; width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.slg-accent { font-size: 13px; color: #5A6372; }
.slg-prog { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 160px; }
.slg-prog__t { font-size: 13px; font-weight: 700; color: #5A6372; white-space: nowrap; font-variant-numeric: tabular-nums; }
.slg-prog__bar { flex: 1; height: 6px; border-radius: 6px; background: #E8EDF3; overflow: hidden; max-width: 260px; }
.slg-prog__bar > span { display: block; height: 100%; background: #1F5C99; border-radius: 6px; transition: width .3s; }
.slg-label { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; color: #1A2130; }
.slg-label > span { display: block; margin-bottom: 6px; }
.slg-input { width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1.5px solid #CFD6E0; border-radius: 10px; font: inherit; font-size: 17px; line-height: 1.5; background: #fbfcfb; resize: vertical; }
.slg-input:focus { outline: none; border-color: #1F5C99; background: #fff; }
.slg-input[readonly] { background: #F4F6F9; }
.slg-input--race { font-size: 22px; text-align: center; margin-top: 4px; }
.slg-keys { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.slg-key { min-width: 36px; padding: 5px 0; border: 1px solid #CFD6E0; border-radius: 8px; background: #fff; font: inherit; font-size: 16px; cursor: pointer; }
.slg-key:hover { background: #E4ECF5; border-color: #1F5C99; }
.slg-result:empty { display: none; }
.slg-result { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #D9DFE7; }
.slg-diff { margin: 0 0 8px; font-size: 18px; line-height: 1.9; }
.slg-w { display: inline-block; padding: 0 5px; border-radius: 5px; line-height: 1.6; }
.slg-w--ok { background: #E3F3EB; color: #174A7C; }
.slg-w--acc { background: #FBF0D9; color: #7A5300; }
.slg-w--miss { background: #F9E1DE; color: #9B2C1F; text-decoration: underline wavy #C0392B; }
.slg-w--extra { color: #8A92A0; text-decoration: line-through; }
.slg-w--punct { padding: 0; }
.slg-key, .slg-keys { user-select: none; }
.slg-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; font-size: 12px; }
.slg-legend .slg-w { line-height: 1.5; }
.slg-score { margin: 6px 0; font-size: 16px; font-weight: 700; color: #1A2130; }
.slg-en, .slg-src { margin: 6px 0; font-size: 15px; color: #1A2130; }
.slg-src { font-size: 13px; color: #5A6372; }
.slg-en__k { display: block; font-size: 12.5px; font-weight: 700; color: #5A6372; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.slg-es { margin: 8px 0 10px; font-size: 19px; font-weight: 600; color: #174A7C; }
.slg-result .slg-btn { margin: 6px 8px 0 0; }
.slg-points, .slg-time { margin: 0; font-weight: 700; font-size: 15px; color: #1A2130; font-variant-numeric: tabular-nums; }
.slg-time { font-size: 22px; }
.slg-clock { height: 8px; border-radius: 8px; background: #E8EDF3; overflow: hidden; margin: 10px 0 4px; }
.slg-clock > span { display: block; height: 100%; width: 100%; background: #1F5C99; border-radius: 8px; }
.slg-clock.is-low > span { background: #D9822B; }
.slg-q { margin: 14px 0 8px; font-size: 17px; font-weight: 700; }
.slg-opts { display: grid; gap: 8px; }
.slg-opt { text-align: left; padding: 12px 14px; border: 1.5px solid #CFD6E0; border-radius: 12px; background: #fff; font: inherit; font-size: 15.5px; color: #1A2130; cursor: pointer; line-height: 1.4; }
.slg-opt:hover:not([disabled]) { border-color: #1F5C99; background: #F3F7FB; }
.slg-opt[disabled] { cursor: default; opacity: .65; }
.slg-opt.is-right { border-color: #2f9e6a; background: #E3F3EB; opacity: 1; }
.slg-opt.is-wrong { border-color: #C0392B; background: #F9E1DE; opacity: 1; }
.slg-prompt { margin: 14px 0 12px; }
.slg-prompt__t { display: block; font-size: 18px; font-weight: 600; color: #1A2130; }
.slg-answer { display: flex; flex-wrap: wrap; gap: 6px; min-height: 52px; padding: 8px; border: 2px dashed #CFD6E0; border-radius: 12px; background: #fbfcfb; align-items: center; }
.slg-answer.is-right { border-style: solid; border-color: #2f9e6a; background: #E3F3EB; }
.slg-answer.is-given { border-style: solid; border-color: #D9822B; background: #FBF0D9; }
.slg-answer__ph { color: #8A92A0; font-size: 14px; padding: 0 6px; }
.slg-bank { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; min-height: 40px; }
.slg-tile { padding: 7px 12px; border: 1.5px solid #CFD6E0; border-bottom-width: 3px; border-radius: 10px; background: #fff; font: inherit; font-size: 16px; color: #1A2130; cursor: pointer; }
.slg-tile:hover:not([disabled]) { border-color: #1F5C99; }
.slg-tile.is-used { visibility: hidden; }
.slg-tile.is-placed { border-color: #1F5C99; }
.slg-tile.is-bad { border-color: #C0392B; background: #F9E1DE; }
.slg-hint { margin: 0; font-size: 14.5px; color: #7A5300; }
.slg-verb { text-align: center; margin: 14px 0 10px; }
.slg-verb__inf { margin: 0; font-size: 30px; font-weight: 800; color: #174A7C; }
.slg-verb__en { margin: 0 0 8px; font-size: 14px; color: #5A6372; }
.slg-verb__who { margin: 0; font-size: 18px; color: #1A2130; }
.slg-verb__p { font-weight: 800; }
.slg-verb__t { color: #5A6372; }
.slg-race .slg-keys { justify-content: center; }
.slg-fb { min-height: 1.5em; margin: 10px 0 0; text-align: center; font-size: 15px; font-weight: 600; }
.slg-fb.is-ok { color: #174A7C; }
.slg-fb.is-acc { color: #7A5300; }
.slg-fb.is-bad { color: #9B2C1F; }
.slg-race .slg-row { justify-content: center; }
.slg-race .slg-row--between { justify-content: space-between; }
.slg-best { margin: 16px 0 0; font-size: 14px; color: #5A6372; }
.slg-done { text-align: center; }
.slg-done__t { margin: 0; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #5A6372; }
.slg-done__big { margin: 4px 0; font-size: 52px; font-weight: 800; color: #1F5C99; line-height: 1.1; }
.slg-done__note { margin: 4px 0 16px; color: #1A2130; }
.slg-miss { list-style: none; margin: 0 auto 16px; padding: 0; max-width: 460px; text-align: left; }
.slg-miss li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid #E8EDF3; font-size: 14.5px; }
.slg-miss__t { color: #5A6372; font-size: 13px; }
.slg-miss__a { margin-left: auto; color: #174A7C; }
@media (max-width: 560px) {
  .slg-card { padding: 14px; }
  .slg-diff { font-size: 16px; }
  .slg-verb__inf { font-size: 26px; }
  .slg-done__big { font-size: 42px; }
}

/* Sentence tower */
.slg-tower .slg-row--between { align-items: baseline; }
.slg-tw-prompt { margin: 8px 0 10px; padding: 10px 14px; border: 1px solid #DDE3EB; border-radius: 10px; background: #F8FAFC; transition: border-color .2s, background .2s; }
.slg-tw-prompt.is-bump { animation: slg-twbump .5s ease-out; }
@keyframes slg-twbump { 0% { border-color: #C0392B; background: #FCEBEB; } 100% { border-color: #DDE3EB; background: #F8FAFC; } }
.slg-tw-prompt__k { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5A6372; }
.slg-tw-prompt__en { margin: 2px 0 2px; font-size: 17px; font-weight: 700; color: #1A2130; min-height: 1.4em; }
.slg-tw-prompt__es { margin: 0; font-size: 16px; color: #174A7C; min-height: 1.4em; }
.slg-tw-stage { line-height: 0; margin: 0 -4px; }
.slg-tw-stage svg { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.slg-tw-blk { cursor: grab; }
.slg-tw-stage svg:active .slg-tw-blk { cursor: grabbing; }
.slg-tw-hint { margin: 8px 0 0; font-size: 13px; color: #5A6372; text-align: center; }
.slg-tw-blk:focus { outline: none; }
.slg-tw-blk:focus-visible rect { stroke: #174A7C; stroke-width: 2.5; }
.slg-tw-left li { align-items: center; }
.slg-tw-left--long { max-height: 420px; overflow-y: auto; }
.slg-tw-left__t { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.slg-tw-left__es { font-weight: 700; color: #1A2130; }
.slg-tw-left__en { font-size: 13px; color: #5A6372; }
@media (prefers-reduced-motion: reduce) { .slg-tw-prompt.is-bump { animation: none; } }
.slg-time { position: relative; }
/* Race time bonus */
.slg-plus { position: absolute; right: 0; top: -14px; font-size: 14px; font-weight: 700; color: #2E7D4F; opacity: 0; pointer-events: none; }
.slg-plus.is-on { animation: slg-plus 0.9s ease-out; }
@keyframes slg-plus { 0% { opacity: 1; transform: translateY(6px); } 100% { opacity: 0; transform: translateY(-10px); } }
.slg-setup__note { margin: 4px 0 12px; font-size: 15px; color: #4A5551; }
@media (prefers-reduced-motion: reduce) { .slg-plus.is-on { animation-duration: 0.01s; } }
/* Race voice answers */
.slg-mic { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; font-size: 14px; font-weight: 700; color: #4A5551; }
.slg-mic[hidden], .slg-heard[hidden] { display: none; }
.slg-mic__dot { width: 10px; height: 10px; border-radius: 50%; background: #B8C2BE; }
.slg-mic.is-on .slg-mic__dot { background: #C0392B; animation: slg-pulse 1.2s ease-in-out infinite; }
@keyframes slg-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
.slg-heard { min-height: 1.4em; margin: 6px 0 0; text-align: center; font-size: 17px; color: #1A2130; font-style: italic; }
@media (prefers-reduced-motion: reduce) { .slg-mic.is-on .slg-mic__dot { animation: none; } }
/* Race review: play the right form */
.slg-miss__play { flex: none; margin-left: 10px; align-self: center; }
.slg-miss__play.is-loading { opacity: .5; cursor: progress; }
.slg-miss__play.is-error { opacity: .35; }
.slg-chip.is-off, .slg-chip:disabled { opacity: .45; cursor: not-allowed; }
/* Race: chancla chase strip (replaces the progress bar) */
.slg-chase { margin: 6px 0 2px; line-height: 0; }
.slg-chase svg { display: block; width: 100%; height: auto; }
/* Race: forms still to go, and the win screen */
.slg-togo { margin: 0; font-size: 14px; color: #4A5551; font-variant-numeric: tabular-nums; }
.slg-togo .slg-n { font-weight: 700; color: #1A2130; }
.slg-done__win { margin: 0 0 4px; font-size: 24px; font-weight: 800; color: #174A7C; }
.slg-plus--minus { color: #C0392B; }
/* Race: My playlist (shared with the Conjugation practice page) */
.slg-pl { margin: 4px 0 12px; border: 1px solid #DDE3EB; border-radius: 10px; background: #F8FAFC; }
.slg-pl[hidden], .slg-pl__empty[hidden] { display: none; }
.slg-pl > summary { cursor: pointer; padding: 10px 14px; font-weight: 700; font-size: 14px; color: #174A7C; }
.slg-pl > :not(summary) { margin-left: 14px; margin-right: 14px; }
.slg-pl__help { margin-top: 0; font-size: 13.5px; color: #4A5551; }
.slg-pl__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 10px; font-size: 14px; }
.slg-pl__count { font-weight: 700; }
.slg-link { background: none; border: 0; padding: 0; font: inherit; color: #174A7C; cursor: pointer; }
.slg-link:hover, .slg-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.slg-pl__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; max-height: 300px; overflow: auto; padding: 2px 2px 12px; }
.slg-pl__item { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.slg-btn--big:disabled { opacity: .5; cursor: not-allowed; }
/* What did they say? (calm her down) */
.slg-mean-stage { line-height: 0; margin: 4px -4px 10px; }
.slg-mean-stage svg { display: block; width: 100%; height: auto; border-radius: 12px; user-select: none; -webkit-user-select: none; }
.slg-mean-mk { flex: 0 0 auto; width: 22px; font-weight: 800; text-align: center; }
.slg-mean-list .is-ok .slg-mean-mk { color: #1F5C99; }
.slg-mean-list .is-miss .slg-mean-mk { color: #C0392B; }
.slg-mean-he { margin: -4px 0 12px; font-size: 14px; color: #5A6372; }
.slg-mean-he__k { font-weight: 700; }
.slg-mean-he__es { font-weight: 600; color: #1A2130; }
.slg-mean--volcan .slg-opt { font-size: 14.5px; }
.slg-chip.slg-chip--volcan { border-color: #E24B4A; color: #A32D2D; }
.slg-chip.slg-chip--volcan[aria-pressed="true"] { background: #E24B4A; border-color: #E24B4A; color: #fff; }
.slg-said[hidden] { display: none; }
.slg-endrow { justify-content: flex-end; margin-top: 14px; }
.slg-btn--ghost.slg-end { padding: 6px 14px; font-size: 13px; border-color: #CFD6E0; color: #5A6372; }
.slg-btn--ghost.slg-end:hover { border-color: #C0392B; color: #C0392B; }
/* Voice model download bar in the race (the bar itself comes from voice-models.js). */
.slg-vkbar { max-width: 280px; margin: 8px auto 0; }
.slg-race .slg-endrow, .slg-card .slg-row.slg-endrow { justify-content: flex-end; }
/* Voice tip: pause between answers. */
.slg-vtip { font-weight: 600; color: #8A5A00; }
.slg-vtip--game { margin: 4px 0 0; text-align: center; font-size: 13px; }
.slg-vtip[hidden] { display: none; }

/* What did she say? (redesign): progress bar on top, rules line, results stats */
.slg-mean-top { margin: 0 0 8px; }
.slg-mean-top .slg-prog { margin: 0; }
.slg-mean-rules { font-weight: 700; color: #1A2130; }
.slg-mean-stats { margin-top: -4px; }

/* Grammar tap race (Carrera de gramática) */
.slg-tap__q { text-align: center; margin: 14px 0 12px; }
.slg-tap__cat { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5A6372; }
.slg-tap__s { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.35; color: #1A2130; }
.slg-blank { display: inline-block; min-width: 3.2em; padding: 0 .25em; border-bottom: 3px solid #1F5C99; color: #174A7C; }
.slg-blank.is-filled { border-bottom-color: #2f9e6a; color: #1F6B47; font-weight: 800; }
.slg-tap__es { margin: 6px 0 0; font-size: 14.5px; color: #5A6372; }
.slg-tap__start { text-align: center; margin: 0 0 8px; }
.slg-taps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.slg-tapbtn { position: relative; min-width: 120px; padding: 14px 22px; border: 2px solid #CFD6E0; border-radius: 14px; background: #fff; font: inherit; font-size: 19px; font-weight: 800; color: #1A2130; cursor: pointer; touch-action: manipulation; }
.slg-tapbtn:hover:not([disabled]) { border-color: #1F5C99; background: #F3F7FB; }
.slg-tapbtn[disabled] { cursor: default; opacity: .6; }
.slg-tapbtn.is-right { border-color: #2f9e6a; background: #E3F3EB; opacity: 1; }
.slg-tapbtn.is-wrong { border-color: #C0392B; background: #F9E1DE; opacity: 1; }
.slg-tapbtn__k { position: absolute; top: 4px; left: 8px; font-size: 11px; font-weight: 700; color: #9AA3B0; }
.slg-tap__fb { min-height: 3.4em; }
.slg-tap__fix { margin: 0; font-size: 16px; font-weight: 600; color: #1A2130; }
.slg-tap__rule { margin: 4px 0 0; font-size: 14px; font-weight: 500; color: #5A6372; }
.slg-tap__miss li { align-items: center; }
.slg-tap__mt { flex: 1; }
.slg-tap__miss .slg-tap__fix { font-size: 15px; }
.slg-tap__miss .slg-blank { min-width: 0; border-bottom-width: 2px; }
@media (max-width: 520px) { .slg-tap__s { font-size: 20px; } .slg-tapbtn { min-width: 92px; padding: 12px 14px; font-size: 17px; } }
@media (hover: none) { .slg-tapbtn__k { display: none; } }

/* What did she say? Expert: options hidden until she stops talking. */
.slg-mean-hold { margin: .25rem 0 .5rem; font-size: .9rem; color: #5A6372; font-style: italic; }
.slg-opts.is-held { visibility: hidden; }

/* What did she say? idiom note under the result. */
.slg-mean-note { margin: .35rem 0 .5rem; font-size: .92rem; line-height: 1.45; }
.slg-mean-note__k { font-weight: 700; color: #5A6372; }
.slg-mean-note__es { font-weight: 700; font-style: italic; }
