.ew {
  --ink: #24493b;
  --leaf: #28634b;
  --paper: #fffaed;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #e6dfca;
  border-radius: 20px;
  padding: clamp(16px, 3vw, 34px);
}
.ew h2 { color: var(--ink); font-size: clamp(22px, 3vw, 32px); line-height: 1.2; margin: 0 0 14px; }
.ew button { font: inherit; color: inherit; font-weight: 750; cursor: pointer; touch-action: manipulation; }
.ew button:focus-visible { outline: 3px solid #1252a7; outline-offset: 3px; }
.ew button:disabled { cursor: default; }
.ew-art { display: block; object-fit: contain; aspect-ratio: 1; mix-blend-mode: multiply; }
.ew-menu { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; padding: 0; overflow: hidden; }
.ew-cover { display: block; width: 100%; height: 100%; object-fit: cover; min-width: 0; }
.ew-panel { align-self: center; padding: clamp(18px, 3vw, 38px); text-align: left; }
.ew-choice {
  display: flex; align-items: center; gap: 14px; text-align: left; border: 1px solid #d8cfb5;
  background: #fffdf8; border-radius: 16px; padding: 8px 16px 8px 10px;
  width: 100%; min-height: 64px; margin: 9px 0 0; box-shadow: 0 3px 0 #e6dfcd;
}
.ew-choice:hover, .ew-option:hover:enabled { border-color: var(--leaf); background: #f1f6e9; }
.ew-choice .ew-art { width: 50px; height: 50px; }
.ew-choice-label { display: grid; flex: 1; }
.ew-choice-label strong { font-size: 18px; line-height: 1.35; }
.ew-choice-label small { font-size: 14px; color: #52655c; font-weight: 550; }
.ew-arrow { font-size: 25px; }
.ew-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #edf2e3; }
.ew-mode-list { max-width: 450px; margin: 0 auto; }
.ew-modes > .ew-art, .ew-finish > .ew-art { width: 90px; margin: 0 auto 10px; }
.ew-position { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; font-weight: 750; }
.ew-position progress { width: 85px; height: 9px; accent-color: var(--leaf); }
.ew-flashcard { max-width: 380px; margin: auto; border: 1px solid #e0d8c2; border-radius: 18px; background: #fffdf8; padding: 12px 14px 18px; }
.ew-flashcard .ew-art, .ew-round > .ew-art { width: clamp(110px, 21vmin, 175px); margin: 0 auto 8px; }
.ew-flashcard h2.ew-word { font-size: clamp(30px, 6vw, 44px); margin: 0; }
.ew-meaning { margin: 0 0 12px; }
.ew button.ew-primary, .ew-secondary, .ew-replay, .ew-link {
  min-height: 44px; border-radius: 24px; border: 1px solid transparent; padding: 8px 18px;
}
.ew button.ew-primary { background: var(--leaf); color: white; }
.ew-secondary, .ew-replay { background: #fff; border-color: #c1cfbd; }
.ew-secondary:disabled { opacity: .45; }
.ew-link { background: transparent; text-decoration: underline; margin-top: 10px; }
.ew-nav { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.ew-options { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(6px, 1.5vw, 14px); max-width: 600px; margin: 18px auto 10px; }
.ew-option { min-width: 0; min-height: 54px; background: #fffdf8; border: 2px solid #d8cfb5; border-radius: 16px; padding: clamp(4px, 1vw, 12px); }
.ew-option .ew-art { width: 100%; max-width: 150px; margin: auto; }
.ew-option .ew-word { font-size: clamp(15px, 2.4vw, 23px); overflow-wrap: anywhere; }
.ew-option:disabled { opacity: .5; }
.ew-option.is-correct { opacity: 1; background: #e3f3dc; border-color: var(--leaf); }
.ew-round > .ew-word { margin-inline-end: 10px; font-weight: 750; }
.ew-places { grid-template-columns: repeat(4, minmax(0,1fr)); }
.ew-landscape { display: block; position: relative; max-width: 150px; margin: 0 auto 3px; }
.ew-places .ew-arrived { position: absolute; width: 58%; left: 21%; top: 24%; border-radius: 10px; mix-blend-mode: normal; border: 2px solid var(--leaf); }
.ew-feedback { min-height: 26px; font-weight: 700; }
.ew-feedback p { margin: 0 0 10px; }
.ew-audio-hint { font-size: 14px; }
.ew-audio-hint:empty, .ew-muted-prompt { display: none; }
#kid-game:has([data-kg-action="sound"][aria-pressed="false"]) .ew-muted-prompt { display: block; }
.ew-finish .ew-link { display: block; margin: 6px auto 0; }
@media (max-width: 640px) {
  .ew-menu { grid-template-columns: 1fr; }
  .ew-cover { aspect-ratio: 2.7; height: auto; object-position: center 34%; }
  .ew-panel { padding: 15px; }
  .ew-choice { min-height: 54px; gap: 9px; }
  .ew-choice .ew-art { width: 38px; height: 38px; }
  .ew-round { padding-inline: 9px; }
  .ew-places { max-width: 300px; grid-template-columns: 1fr 1fr; }
  .ew-landscape { max-width: 74px; }
  .ew-options:has(.ew-word) { grid-template-columns: 1fr; gap: 7px; }
  .ew-option:has(.ew-word) { min-height: 44px; }
}
