[hidden] { display: none !important; }
button, summary { font: inherit; }
button { cursor: pointer; }
button:focus-visible, summary:focus-visible { outline: 3px solid #5632b7; outline-offset: 4px; }
.practice-main { width: min(960px, calc(100% - 48px)); margin: 28px auto 48px; }
.practice-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.practice-heading h1 { display: flex; align-items: center; gap: 12px; font-size: 30px; }
.practice-heading h1 i { font-size: 24px; color: #7040c8; }
.score-badge { white-space: nowrap; border: 1px solid #ded6ee; border-radius: 8px; background: #fff; padding: 10px 16px; color: #5e319f; font-weight: 800; }
progress { display: block; width: 100%; height: 8px; margin: 20px 0 24px; appearance: none; border: 0; border-radius: 8px; overflow: hidden; background: #e6e2ed; color: #7740d9; }
progress::-webkit-progress-bar { background: #e6e2ed; }
progress::-webkit-progress-value { background: #7740d9; transition: width 200ms ease; }
progress::-moz-progress-bar { background: #7740d9; }
.rule-pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; margin-bottom: 20px; }
.rule { padding: 0 0 0 14px; border-left: 3px solid; }
.rule--first { border-color: #2286ad; }
.rule--second { border-color: #8250d2; }
.rule h2 { margin: 0 0 4px; font-size: 16px; font-weight: 900; }
.rule--first h2 { color: #116385; }
.rule--second h2 { color: #6b36b6; }
.rule p { margin: 0; font-size: 14px; line-height: 1.5; color: #595464; }
.exercise { padding: 24px 32px; border: 1px solid #dbd5e7; border-radius: 8px; background: #fff; box-shadow: 0 4px 14px rgb(31 24 44 / 3%); }
.counter { margin: 0 0 18px; font-size: 13px; font-weight: 800; color: #70677e; text-align: right; }
.context { margin: 0 auto 12px; max-width: 720px; color: #555263; font-size: 15px; line-height: 1.5; text-align: center; }
.sentence { margin: 0 auto; max-width: 800px; font-size: 25px; line-height: 1.4; font-weight: 850; text-align: center; overflow-wrap: break-word; }
.sentence:focus { outline: none; }
.blank { display: inline-block; min-width: 52px; color: #7040c8; white-space: nowrap; }
.translation { display: flex; justify-content: center; align-items: baseline; gap: 9px; margin: 14px auto 24px; max-width: 760px; text-align: center; font-size: 16px; line-height: 1.5; color: #6b6378; }
.translation::before { content: ""; display: block; flex: 0 0 20px; height: 20px; align-self: flex-start; margin-top: 2px; background: url('/listening/flag-english-us-uk-round.svg') center / contain no-repeat; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.choice { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; min-height: 60px; border: 2px solid; border-radius: 8px; font-size: 19px; font-weight: 900; padding: 12px; transition: transform 160ms ease, background 160ms ease; }
.choice--first { background: #eef8fc; border-color: #2890bb; color: #08648b; }
.choice--second { background: #f5efff; border-color: #9865de; color: #7137bc; }
.choice:hover:not(:disabled) { transform: translateY(-2px); }
.choice--first:hover:not(:disabled) { background: #e2f3fa; }
.choice--second:hover:not(:disabled) { background: #ede0ff; }
.choice:disabled { cursor: default; }
.choice.is-correct { border-color: #19825c; background: #eefaf4; color: #126247; }
.choice.is-wrong { border-color: #bd4052; background: #fff1f3; color: #a3283c; }
.choice:not(.is-correct):not(.is-wrong):disabled { opacity: .65; }
.answer-area { margin-top: 18px; }
.feedback { padding-left: 14px; border-left: 3px solid #19825c; }
.feedback.is-wrong { border-color: #bd4052; }
.feedback p { margin: 5px 0; font-size: 15px; line-height: 1.5; }
.feedback-label { display: flex; gap: 8px; align-items: baseline; color: #126247; }
.feedback.is-wrong .feedback-label { color: #a3283c; }
.completed-sentence { color: #292335; font-weight: 850; }
#explanation { color: #595464; }
.next-button { display: inline-flex; gap: 12px; align-items: center; justify-content: center; min-height: 46px; padding: 12px 22px; border: 1px solid #6633c0; border-radius: 8px; background: #7039cc; color: #fff; font-weight: 850; font-size: 15px; text-decoration: none; }
.next-button:hover { background: #5b29b4; }
#next { display: flex; margin: 18px 0 0 auto; }
.result { padding: 30px 0; text-align: center; }
.result-icon { font-size: 38px; color: #16825c; }
.result h2 { margin: 16px 0 8px; font-size: 28px; }
.result-score { margin: 0; font-size: 36px; font-weight: 900; color: #6130b2; }
#result-message { color: #625c6c; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 24px 0; }
.review { text-align: left; border-top: 1px solid #ddd6e9; padding-top: 20px; }
.review summary { cursor: pointer; color: #6633a8; font-weight: 800; padding: 8px 0; }
.review ol { padding-left: 24px; }
.review li { padding: 14px 0; border-bottom: 1px solid #e5e0ed; }
.review p { margin: 4px 0; line-height: 1.5; color: #61596e; }
.review .review-sentence { font-weight: 800; color: #282431; }
.perfect-score-celebration, .perfect-confetti-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 100; }
.perfect-confetti { position: absolute; top: -18px; left: var(--confetti-left); width: 9px; height: 14px; border-radius: 2px; background: var(--confetti-color); animation: contrast-confetti 4s ease-in var(--confetti-delay) forwards; }
@keyframes contrast-confetti { to { transform: translate(var(--confetti-drift), 105vh) rotate(600deg); } }
@media (max-width: 600px) {
  .practice-main { width: calc(100% - 32px); margin: 22px auto 32px; }
  .practice-heading { gap: 12px; align-items: flex-start; }
  .practice-heading h1 { font-size: 23px; gap: 8px; align-items: baseline; flex-wrap: wrap; }
  .practice-heading h1 i { font-size: 19px; }
  .score-badge { font-size: 13px; padding: 8px 10px; margin-top: 3px; }
  progress { margin: 16px 0 20px; }
  .rule-pair { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .rule p { font-size: 13px; }
  .exercise { padding: 18px 16px; }
  .counter { margin-bottom: 14px; }
  .context { font-size: 14px; }
  .sentence { font-size: 21px; }
  .translation { font-size: 14px; margin-bottom: 20px; }
  .choices { gap: 10px; }
  .choice { font-size: 15px; min-height: 54px; padding: 12px 6px; gap: 5px; }
  .choice i { font-size: 13px; }
  #next { width: 100%; }
  .result-actions > * { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .choice, progress::-webkit-progress-value { transition: none; }
  .choice:hover:not(:disabled) { transform: none; }
  .perfect-score-celebration { display: none; }
}

/* The same blue/violet exercise treatment as the original Ser vs estar. */
body { background: #f8fafc; color: #14213d; font-family: "Segoe UI",Arial,sans-serif; }
.practice-main { width: min(900px,calc(100% - 48px)); margin: 28px auto 48px; }
.practice-heading h1 { font-size: 30px; font-weight: 850; }
.practice-heading h1 i { color: #7c3aed; }
.score-badge { color: #14213d; border: 1px solid #dbe4f0; border-radius: 999px; padding: 9px 15px; box-shadow: 0 8px 24px #263d6112; }
progress { height: 10px; margin: 14px 0 18px; background: #e5eaf2; }
progress::-webkit-progress-bar { background: #e5eaf2; }
progress::-webkit-progress-value { background: linear-gradient(90deg,#2563eb,#7c3aed); }
progress::-moz-progress-bar { background: linear-gradient(90deg,#2563eb,#7c3aed); }
#game, .result { padding: 38px; background: #fff; border: 1px solid #fff; border-radius: 28px; box-shadow: 0 24px 70px #314b7724; }
.rule-pair { gap: 10px; margin-bottom: 28px; }
.rule { border: 0; border-radius: 16px; padding: 14px 16px; }
.rule--first { background: #eff6ff; color: #1e3a8a; }
.rule--second { background: #f5f3ff; color: #5b21b6; }
.rule h2 { display: flex; align-items: center; gap: 10px; color: inherit; font-size: 17px; margin-bottom: 7px; }
.rule h2 i { display: inline-grid; place-items: center; width: 32px; height: 32px; font-size: 25px; flex: 0 0 32px; }
.rule p { color: inherit; font-size: 15px; line-height: 1.45; }
.exercise { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.counter { text-align: center; font-size: 13px; text-transform: uppercase; color: #61708a; margin-bottom: 16px; }
.sentence { font-size: 36px; line-height: 1.35; font-weight: 850; margin: 16px 0 8px; color: #14213d; }
.blank { min-width: 90px; color: #2563eb; border-bottom: 4px solid #bfd3f7; line-height: 1.05; }
.translation { font-size: 18px; font-weight: 600; color: #61708a; margin: 10px auto 28px; }
.translation::before { height: 24px; flex-basis: 24px; }
.choice { border: 2px solid transparent; border-radius: 18px; padding: 14px 17px; font-size: 19px; font-weight: 850; }
.choice--first { background: #2563eb; color: #fff; }
.choice--second { background: #7c3aed; color: #fff; }
.choice--first:hover:not(:disabled) { background: #1d4ed8; }
.choice--second:hover:not(:disabled) { background: #6d28d9; }
.choice.is-correct { color: #14532d; background: #ecfdf3; border-color: #15803d; }
.choice.is-wrong { color: #881337; background: #fff1f2; border-color: #b42318; }
.feedback { border: 0; padding: 18px; border-radius: 18px; background: #ecfdf3; color: #14532d; }
.feedback.is-wrong { background: #fff1f2; color: #881337; }
.feedback .completed-sentence, .feedback #explanation { color: inherit; }
.next-button, #next { width: 100%; min-height: 50px; margin-top: 14px; border: 0; border-radius: 16px; background: #14213d; color: #fff; font-size: 16px; }
.next-button:hover { background: #253957; }
.result-actions .next-button { width: auto; margin: 0; background: linear-gradient(90deg,#2563eb,#7c3aed); }
.result-score { color: #14213d; }
@media (min-width: 901px) and (max-height: 950px) {
  .compare-header-inner { min-height: 82px; padding-top: 0; padding-bottom: 0; }
  .compare-brand { height: 70px; }
  .practice-main { margin-top: 16px; }
  .practice-heading h1 { font-size: 26px; margin: 3px 0 0; }
  .compare-eyebrow { font-size: 11px; }
  progress { margin: 10px 0 14px; }
  #game { padding: 24px 30px; }
  .rule-pair { margin-bottom: 20px; }
  .rule { padding: 10px 14px; }
  .rule h2 { margin-bottom: 4px; font-size: 16px; }
  .rule h2 i { height: 26px; font-size: 23px; }
  .rule p { font-size: 14px; line-height: 1.4; }
  .counter { margin-bottom: 10px; }
  .sentence { font-size: 30px; line-height: 1.25; margin: 10px 0 6px; }
  .translation { font-size: 16px; margin: 8px auto 20px; }
  .context { font-size: 14px; margin-bottom: 8px; }
  .choice { min-height: 50px; padding: 11px 16px; }
  .answer-area { display: grid; grid-template-columns: minmax(0,1fr) 190px; align-items: center; gap: 14px; margin-top: 16px; }
  .feedback { padding: 12px 16px; }
  .feedback p { font-size: 14px; margin: 3px 0; line-height: 1.4; }
  #next { margin: 0; width: 100%; min-height: 50px; height: auto; font-size: 15px; padding: 12px 16px; }
}
@media (max-width: 600px) {
  .practice-main { width: calc(100% - 28px); margin-top: 22px; }
  .practice-heading h1 { font-size: 23px; }
  .score-badge { padding: 9px 12px; }
  #game, .result { padding: 24px 20px; border-radius: 22px; }
  .rule-pair { grid-template-columns: minmax(0,1fr); gap: 10px; margin-bottom: 24px; }
  .rule { padding: 12px 14px; }
  .rule p { font-size: 14px; }
  .sentence { font-size: 28px; }
  .translation { font-size: 16px; }
  .choices { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .choice { font-size: 18px; min-height: 54px; }
  .result-actions .next-button { width: 100%; }
}

/* Ser vs estar's stacked feedback and generous spacing, without its game logic. */
@media (min-width: 901px) {
  .practice-main { width: min(1040px, calc(100% - 64px)); margin: 30px auto 56px; }
  .practice-heading { gap: 24px; margin-bottom: 14px; }
  .practice-heading h1 { font-size: 30px; line-height: 1.35; }
  progress { margin: 18px 0 28px; }
  #game, .result { padding: 44px 48px; }
  .rule-pair { gap: 24px; margin-bottom: 36px; }
  .rule { padding: 20px 24px; }
  .rule h2 { gap: 12px; margin-bottom: 12px; font-size: 18px; line-height: 1.4; }
  .rule h2 i { width: 32px; height: 32px; font-size: 26px; }
  .rule p { font-size: 16px; line-height: 1.6; }
  .counter { margin: 0 0 20px; }
  .context { max-width: 760px; margin: 0 auto 20px; font-size: 16px; line-height: 1.6; }
  .sentence { max-width: 860px; margin: 20px auto 18px; font-size: 36px; line-height: 1.4; }
  .translation { max-width: 780px; margin: 0 auto 32px; font-size: 18px; line-height: 1.6; }
  .choices { gap: 20px; }
  .choice { min-height: 62px; padding: 16px 20px; }
  .answer-area { display: block; margin-top: 28px; }
  .feedback { padding: 22px 24px; }
  .feedback p { margin: 8px 0; font-size: 16px; line-height: 1.6; }
  #next { width: 100%; min-height: 56px; margin-top: 18px; padding: 16px 22px; font-size: 16px; }
}
