.wx.wx-language {
  --atlas-paper:#f4eee4;
  --atlas-ink:#2a2826;
  --atlas-wine:#772c38;
  --atlas-hairline:#d1c6b7;
  --atlas-gutter:clamp(19px,3.3vw,52px);
  border:0;background:var(--atlas-paper);color:var(--atlas-ink);text-align:start;
}
.atlas-slate {
  display:flex;justify-content:space-between;gap:1em;align-items:center;
  min-height:48px;padding:10px var(--atlas-gutter);background:#252426;color:#f6ede1;
}
.atlas-slate h3 {font-family:inherit;font-size:.95rem;line-height:1.4;font-weight:550;letter-spacing:-.025em}
.atlas-context {display:flex;align-items:center;justify-content:flex-end;gap:clamp(.6em,2vw,1.6em);font-size:.82rem}
.atlas-context [data-counter] {font:500 .76rem/1.4 ui-monospace,monospace;letter-spacing:.06em;color:#ebcda4;white-space:nowrap}
.wx-language .atlas-camera {
  position:relative;isolation:isolate;margin:0;display:grid;align-items:end;overflow:hidden;
  min-height:clamp(290px,36vw,485px);background:#211d20;color:#fdf5e6;direction:ltr;
}
.atlas-scene-frames {
  position:absolute;inset:0 0 0 19%;overflow:hidden;
}
.atlas-scene-frames::after {
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,#211d20 0%,#211d20ce 13%,#211d205c 32%,transparent 51%),
    linear-gradient(0deg,#19151926,transparent 30%);z-index:1;
}
.atlas-scene-frames img {
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:58% 45%;
  opacity:0;transform:scale(1.035);transition:opacity .46s ease,transform 1.5s cubic-bezier(.19,.73,.29,1);
}
.atlas-scene-frames img.is-current {opacity:1;transform:scale(1)}
.atlas-caption {
  position:relative;z-index:2;width:min(57%,40em);padding:clamp(30px,5vw,74px) var(--atlas-gutter);
  display:flex;flex-direction:column;align-items:flex-start;gap:clamp(13px,2.1vw,28px);text-align:left;direction:ltr;
}
.atlas-cast {display:flex;align-items:center;gap:10px;font:500 .95rem/1.3 Georgia,serif;letter-spacing:.045em;color:#f2e3ce}
.atlas-cast img {width:32px;height:32px;object-fit:cover;border:1px solid #e7d9b79c;border-radius:50%;transition:box-shadow .2s ease}
.atlas-speaking .atlas-cast img {box-shadow:0 0 0 3px #d6a35a}
.wx-language .wx-dialogue {
  position:relative;color:#fff8e9;font:400 clamp(2.9rem,6.4vw,6.05rem)/.98 Instrument,Georgia,serif;
  letter-spacing:-.042em;text-wrap:balance;overflow-wrap:normal;word-break:normal;
}
.wx-language .atlas-listen {
  color:#fff7e8;border:1px solid #d5c2a080;background:#292227b0;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:flex-start;gap:10px;max-width:100%;
  min-height:44px;padding:7px 17px;font-size:.9rem;line-height:1.3;text-align:start;
}
.wx-language .atlas-listen:hover {background:#433536!important;border-color:#efdaa9!important}
.atlas-listen i {display:block;flex:0 0 auto;width:0;height:0;border:5px solid transparent;border-right:0;border-left:8px solid #f3ddad}
.atlas-listen[data-playing=true] i {width:8px;height:10px;border:0;border-inline:2px solid #f3ddad}
.wx-language .atlas-reply {
  padding:clamp(21px,2.8vw,38px) var(--atlas-gutter);display:grid;
  grid-template-columns:minmax(0,.76fr) minmax(0,1.1fr);gap:clamp(18px,6vw,90px);align-items:start;
}
.atlas-script h4 {margin:0 0 .55em;color:var(--atlas-wine);font-size:.85rem;font-weight:650;letter-spacing:.025em}
.atlas-script [data-prompt] {font-size:clamp(1rem,1.5vw,1.18rem);line-height:1.68;max-width:29em;text-wrap:pretty}
.wx-language .wx-answers {counter-reset:atlas-choice;display:grid;gap:0;border-top:1px solid var(--atlas-hairline)}
.wx-language .wx-answers button {
  counter-increment:atlas-choice;position:relative;display:flex;align-items:center;gap:14px;
  border:0;border-radius:0;border-bottom:1px solid var(--atlas-hairline);background:transparent;color:var(--atlas-ink);
  min-height:50px;padding:10px 9px;line-height:1.3;font:500 clamp(1rem,1.5vw,1.18rem)/1.4 Georgia,serif;text-align:left;
}
.wx-language .wx-answers button::before {
  content:counter(atlas-choice,upper-alpha);font:550 .75rem/1 ui-monospace,monospace;
  display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border:1px solid #a79b8d;border-radius:50%;color:#5f534a;
}
.wx-language .wx-answers button:hover:not(:disabled) {background:#e9dfd1;color:var(--atlas-ink);border-color:#ae9c87}
.wx-language .wx-answers button[data-mark=correct] {background:#d9e6d9;border-color:#789481;color:#1d3c2f}
.wx-language .wx-answers button[data-mark=retry] {background:#efe0d7;border-color:#be9685;color:#66372f}
.wx-language .wx-answers button[data-mark=correct]::before {content:"✓";color:#fff;border-color:#365842;background:#365842}
.wx-language .wx-answers button[data-mark=retry]::before {content:"×";color:#fff;border-color:#805746;background:#805746}
.wx-language .wx-answers button:focus-visible,.wx-language .wx-foot button:focus-visible {outline:2px solid #722936;outline-offset:-3px}
.wx-language .atlas-notes {border:0;background:#e9dfd1;padding:13px var(--atlas-gutter);align-items:center}
.wx-language .atlas-notes:has([data-feedback]:empty) {padding:0;height:0;overflow:hidden}
.wx-language .atlas-notes p {color:#3f3934;font-size:.94rem}
.wx-language .atlas-notes .wx-primary {border:0;border-radius:0;background:var(--atlas-wine);color:#fff5e4;padding-inline:18px}
.wx-language .atlas-notes .wx-primary:hover {background:#57202a}
[dir=rtl] .wx-language .atlas-listen {direction:rtl}
@media(max-width:700px){
  .wx-language .atlas-camera {min-height:clamp(235px,48vw,335px)}
  .atlas-caption {width:61%;padding-block:27px;gap:15px}
  .wx-language .wx-dialogue {font-size:clamp(2.45rem,7.5vw,3.7rem)}
  .atlas-scene-frames {inset-inline-start:8%;inset-inline-end:0;direction:ltr}
  [dir=rtl] .atlas-scene-frames {left:8%;right:0}
  .wx-language .atlas-reply {gap:17px;grid-template-columns:minmax(0,1fr)}
  .atlas-script [data-prompt] {max-width:none}
}
@media(max-width:520px){
  .wx-language .atlas-camera {display:block;min-height:0}
  .atlas-scene-frames,.wx-language[dir=rtl] .atlas-scene-frames,[dir=rtl] .atlas-scene-frames {
    position:relative;inset:auto;width:100%;aspect-ratio:2.06;
  }
  .atlas-scene-frames::after {background:linear-gradient(0deg,#211d20 0%,#211d201c 14%,transparent 30%)}
  .atlas-caption {margin-top:-1px;width:100%;padding:5px var(--atlas-gutter) 21px;gap:11px}
  .wx-language .wx-dialogue {font-size:clamp(2.6rem,10.6vw,3.8rem);line-height:1.02;text-wrap:pretty}
  .atlas-cast img {width:25px;height:25px}
  .wx-language .atlas-listen {padding:6px 14px}
  .atlas-slate {gap:10px;align-items:baseline}
  .atlas-context {gap:8px;font-size:.8rem}
}
@media(prefers-reduced-motion:reduce){
  .atlas-camera * {animation:none!important;transition:none!important;transform:none!important}
}
