.mef-games {
  --game-ink: var(--ink, #21172b);
  --game-muted: var(--muted, #62586a);
  --game-accent: var(--pink, #aa1765);
  --game-soft: var(--pink-light, #fbeaf3);
  --game-line: #dce5e6;
  color: var(--game-ink);
  font-family: inherit;
  line-height: 1.65;
  max-width: 1180px;
  margin-inline: auto;
  padding-block: clamp(1rem, 4vw, 3rem);
}
.mef-games *, .mef-games *::before, .mef-games *::after { box-sizing: border-box; }
.mef-games [hidden] { display: none !important; }
.mef-games h2, .mef-games h3, .mef-games h4, .mef-games p { margin: 0 0 1rem; }
.mef-games h2 { font-size: clamp(1.6rem, 3vw, 2.7rem); line-height: 1.18; letter-spacing: -.035em; font-weight: 700; color: var(--game-ink); }
.mef-games h3 { font-size: 1.35rem; line-height: 1.3; letter-spacing: -.02em; color: var(--game-ink); }
.mef-games h4 { font-size: 1rem; line-height: 1.4; color: var(--game-ink); }
.mef-games a { color: var(--game-accent); text-underline-offset: .2em; }
.mef-games button, .mef-games input, .mef-games a { -webkit-tap-highlight-color: transparent; }
.mef-games button { font: inherit; cursor: pointer; }
.mef-games :focus-visible { outline: 3px solid #176fa2; outline-offset: 4px; }
.mef-games [tabindex="-1"]:focus { outline: 2px solid #176fa2; outline-offset: 7px; border-radius: 5px; }
.mef-games__intro { max-width: 820px; margin-bottom: 2rem; }
.mef-games__intro > p:last-child { color: var(--game-muted); font-size: 1.075rem; max-width: 68ch; }
.mef-games .mef-games__eyebrow { color: var(--game-accent); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 750; margin-bottom: .8rem; }
.mef-games__filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.8rem; }
.mef-games .mef-games__button { border: 1px solid var(--game-line); border-radius: 12px; background: white; color: var(--game-ink); display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.15rem; font-weight: 650; text-decoration: none; line-height: 1.4; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.mef-games .mef-games__button:hover { background: #f5f9f8; border-color: #aebebc; }
.mef-games .mef-games__button--primary { color: white; background: var(--game-accent); border-color: var(--game-accent); }
.mef-games .mef-games__button--primary:hover { background: #104338; border-color: #104338; }
.mef-games .mef-games__button--subtle { background: #f5f8f7; }
.mef-games .mef-games__button:disabled { cursor: default; color: #5b6873; background: #edf1f3; border-color: #dce3e6; }
.mef-games .mef-games__filter { border-radius: 999px; padding: .6rem 1.1rem; min-height: 44px; }
.mef-games .mef-games__filter[aria-pressed="true"] { background: var(--game-ink); color: white; border-color: var(--game-ink); }
.mef-games__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.mef-games__card { border: 1px solid var(--game-line); background: white; border-radius: 22px; padding: 1.6rem; display: flex; flex-direction: column; box-shadow: 0 5px 25px #17294104; }
.mef-games__card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.mef-games__mark { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: var(--game-soft); border: 1px solid #daebe4; border-radius: 14px; color: var(--game-accent); font-size: 1.35rem; line-height: 1; font-weight: 650; letter-spacing: -.07em; flex-shrink: 0; }
.mef-games__mark--large { width: 72px; height: 72px; font-size: 2rem; border-radius: 20px; margin-bottom: 1.5rem; }
.mef-games__language { color: #23483c; background: #eff7f2; padding: .2rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.mef-games .mef-games__tag { color: var(--game-muted); font-size: .8rem; margin-bottom: .5rem; }
.mef-games__card > p:not(.mef-games__tag) { color: var(--game-muted); font-size: .94rem; }
.mef-games__card-bottom { margin-top: auto; padding-top: .7rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; }
.mef-games__card-bottom > span { font-size: .75rem; color: var(--game-muted); }
.mef-games .mef-games__play-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 700; text-decoration: none; }
.mef-games .mef-games__play-link:hover { text-decoration: underline; }
.mef-games .mef-games__privacy { color: var(--game-muted); max-width: 86ch; font-size: .82rem; margin-top: 1.5rem; }
.mef-games__notice { border-left: 3px solid #bf8a28; background: #fffcf5; border-radius: 0 12px 12px 0; padding: 1rem 1.25rem; margin-top: 1.5rem; font-size: .82rem; color: #5c4b2b; }
.mef-games__notice p { margin: .3rem 0 0; }
.mef-games__session-header { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.mef-games .mef-games__back { font-size: .9rem; margin-right: auto; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.mef-games .mef-games__text-button { border: 0; background: transparent; padding-inline: .3rem; color: var(--game-muted); font-weight: 500; text-decoration: underline; text-underline-offset: .2em; }
.mef-games .mef-games__text-button:hover { color: var(--game-accent); background: transparent; }
.mef-games__start, .mef-games__panel, .mef-games__completed { border: 1px solid var(--game-line); background: white; border-radius: 24px; padding: clamp(1.2rem, 4vw, 3rem); }
.mef-games__start { max-width: 850px; }
.mef-games__start > p { color: var(--game-muted); max-width: 64ch; }
.mef-games__facts { padding-left: 1.25rem; color: var(--game-muted); margin-bottom: 1.8rem; font-size: .94rem; }
.mef-games__facts li { padding-block: .3rem; }
.mef-games__progress-label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; font-size: .8rem; color: var(--game-muted); margin-bottom: .45rem; }
.mef-games progress { width: 100%; height: 7px; appearance: none; display: block; border: 0; border-radius: 999px; overflow: hidden; background: #eaf0ef; margin-bottom: 2rem; }
.mef-games progress::-webkit-progress-bar { background: #eaf0ef; border-radius: 999px; }
.mef-games progress::-webkit-progress-value { background: var(--game-accent); border-radius: 999px; }
.mef-games progress::-moz-progress-bar { background: var(--game-accent); border-radius: 999px; }
.mef-games__panel h2 { font-size: clamp(1.35rem, 2.5vw, 1.95rem); max-width: 42ch; }
.mef-games .mef-games__stimulus { padding: 1.25rem; margin-block: 1.5rem 2rem; background: #f5f8fa; border-radius: 14px; color: #293e55; font-size: 1.025rem; max-width: 85ch; }
.mef-games__choices { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.mef-games__choices legend { font-size: .88rem; font-weight: 700; padding: 0; margin-bottom: .75rem; }
.mef-games__option { display: flex; align-items: flex-start; gap: .8rem; padding: .95rem 1rem; border: 1px solid var(--game-line); border-radius: 12px; margin-bottom: .65rem; min-height: 52px; cursor: pointer; background: white; transition: background-color .15s ease, border-color .15s ease; }
.mef-games__option > span { overflow-wrap: anywhere; }
.mef-games__option:hover { background: #f6faf8; border-color: #9cb7ad; }
.mef-games__option:has(input:checked) { border-color: var(--game-accent); background: var(--game-soft); box-shadow: 0 0 0 1px var(--game-accent); }
.mef-games__option:has(input:focus-visible) { outline: 3px solid #176fa2; outline-offset: 3px; }
.mef-games__option input { margin: .3rem 0 0; min-width: 19px; width: 19px; height: 19px; accent-color: var(--game-accent); }
.mef-games__tools { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-block: 1.4rem 0; }
.mef-games .mef-games__hint { padding: 1rem 1.25rem; background: #fffaf0; border: 1px solid #e9d5ad; border-radius: 12px; color: #66502b; margin: 1.25rem 0 0; font-size: .94rem; }
.mef-games__matching { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 1.5rem; }
.mef-games__matching .mef-games__option { min-height: 76px; }
.mef-games .mef-games__pair-count { color: var(--game-accent); font-size: .85rem; font-weight: 650; }
.mef-games__matched { padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--game-line); }
.mef-games__matched h3 { font-size: .95rem; }
.mef-games__matched p { color: var(--game-accent); font-size: .9rem; margin-bottom: .4rem; }
.mef-games__feedback { background: #f8f9fc; border: 1px solid #d4dce8; border-radius: 16px; padding: clamp(1.1rem, 3vw, 2rem); margin-top: 1rem; }
.mef-games__feedback--correct { background: #f1f9f4; border-color: #c6dfce; }
.mef-games__feedback p, .mef-games__feedback li { overflow-wrap: anywhere; }
.mef-games__feedback h3 { margin-bottom: 1rem; }
.mef-games__feedback .mef-games__button { margin-top: .5rem; }
.mef-games__feedback .mef-games__button + p { margin-top: 1rem; color: var(--game-muted); font-size: .85rem; }
.mef-games__scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-block: 2rem 1rem; }
.mef-games__scores > div { background: #f4f8f7; border-radius: 14px; padding: 1.1rem; display: flex; flex-direction: column-reverse; align-items: flex-start; }
.mef-games__scores dt { font-size: .82rem; color: var(--game-muted); }
.mef-games__scores dd { margin: 0; font-size: 2rem; line-height: 1.3; font-weight: 700; color: var(--game-accent); }
.mef-games__completed > h3 { margin-top: 2.5rem; }
.mef-games__recap { padding-left: 1.2rem; }
.mef-games__recap-item { border-top: 1px solid var(--game-line); padding: 1.5rem .3rem .5rem; margin-top: 1.5rem; }
.mef-games__recap-item > h4 { color: #425c74; }
.mef-games__recap-item--correct > h4 { color: var(--game-accent); }
.mef-games__recap-item > p { font-size: .94rem; overflow-wrap: anywhere; }
.mef-games__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px !important; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 950px) {
  .mef-games__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .mef-games__grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .mef-games__card { padding: 1.25rem; }
  .mef-games__matching { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .mef-games__matching .mef-games__option { min-height: 52px; }
  .mef-games__session-header { gap: .5rem .8rem; margin-bottom: 1.2rem; }
  .mef-games__session-header > .mef-games__text-button { margin-left: -.3rem; }
  .mef-games__start, .mef-games__panel, .mef-games__completed { border-radius: 18px; }
  .mef-games__scores { gap: .4rem; }
  .mef-games__scores > div { padding: .8rem .55rem; }
  .mef-games__scores dt { font-size: .72rem; }
  .mef-games__scores dd { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mef-games *, .mef-games *::before, .mef-games *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .mef-games__option:has(input:checked) { outline: 2px solid Highlight; }
  .mef-games .mef-games__button { border: 1px solid ButtonText; }
}
