.wx {
  --wx-ink: #f4f0e6;
  --wx-muted: #bdc6c1;
  --wx-line: #46524e;
  --wx-gold: #edcc88;
  color: var(--wx-ink);
  background: #182522;
  border: 1px solid #384743;
  width: 100%;
  min-width: 0;
  text-align: left;
  overflow: hidden;
  color-scheme: dark;
  font-family: "Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  line-height: 1.55;
}
.wx * {box-sizing: border-box}
.wx p,.wx h3,.wx figure {margin: 0}
.wx .wx-label {font-size: .83rem; font-weight: 650; color: var(--wx-muted)}
.wx .wx-title {font: 500 clamp(1.3rem,3vw,2rem)/1.26 "Apple SD Gothic Neo","Malgun Gothic",sans-serif; color: var(--wx-ink); letter-spacing: -.055em}
.wx-head,.wx-foot,.wx-content {padding: clamp(14px,3vw,30px)}
.wx-head {border-bottom: 1px solid var(--wx-line);display: grid;gap: 5px}
.wx-head p:last-child,.wx-foot p,.wx-note {color: var(--wx-muted);font-size: .94rem}
.wx .wx-foot {display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; border-top: 1px solid var(--wx-line)}
.wx .wx-foot p {flex: 1 1 190px}
.wx button {display: inline-flex; justify-content: center; align-items: center; gap: .5em; min-height: 46px; border: 1px solid var(--wx-line); border-radius: 3px; padding: 8px 14px; background: transparent; color: var(--wx-ink); font: inherit; font-size: .94rem; font-weight: 600; line-height: 1.4; cursor: pointer; touch-action: manipulation}
.wx button:hover:not(:disabled) {border-color: var(--wx-gold);background: #ffffff0d}
.wx button:focus-visible,.wx canvas:focus-visible {outline: 3px solid var(--wx-gold);outline-offset:-3px}
.wx .wx-primary {background:var(--wx-gold);border-color:var(--wx-gold);color:#1d241d}
.wx .wx-primary:hover:not(:disabled) {background:#ffe3a9;color:#1d241d}
.wx button:disabled {opacity:.72; cursor: default}
.wx .wx-readout {font-variant-numeric:tabular-nums; color: var(--wx-gold); font-size:.88rem; font-weight:650}
.wx-chamber {position: relative; background:#657978; isolation:isolate}
.wx-chamber canvas {width:100%; aspect-ratio:1.95;display:block;touch-action:pan-y;cursor:grab}
.wx-chamber canvas:active {cursor:grabbing}
.wx-game .wx-chamber canvas {touch-action:none}
.wx-game .wx-chamber .aster-backup {position:absolute;inset:0;height:100%;pointer-events:none}
.wx-game [data-jump] {color:#f3da9e;min-width:58px;font-size:.94rem}
.wx-game .wx-readout bdi {margin-inline-start:4px}
.wx-caption {position:absolute;left:0;bottom:0;right:0;display:flex;align-items:end;justify-content:space-between;gap:8px;padding:22px 14px 10px;background:linear-gradient(transparent,#091516d4);pointer-events:none;font-size:.81rem;color:#fff;line-height:1.35}
.wx-controls {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px clamp(14px,3vw,30px)}
.wx-pad {display:flex;gap:4px;flex-wrap:wrap}.wx-pad button {min-width:46px;font-size:1.15rem;padding:5px 10px;touch-action:none;user-select:none;-webkit-user-select:none}
.wx .wx-controls .wx-readout {margin-inline-end:auto}
.wx-language {background:#192431}
.wx-language,.wx-study {--wx-line:#47525b;--wx-muted:#bdc6ce}
.wx-language .wx-content {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(15px,4.5vw,54px);align-items:center}
.wx-prompt {min-height:120px;display:flex;flex-direction:column;justify-content:center;gap:8px}
.wx .wx-dialogue {font:400 clamp(2rem,4.5vw,3.6rem)/1.05 Instrument,Georgia,serif;letter-spacing:-.035em;word-break:normal}
.wx-answers {display:grid;gap:7px}.wx-answers button {justify-content:flex-start;text-align:left;width:100%}
.wx [data-mark=correct] {background:#234d44;border-color:#85bba7;color:#f2fff6}
.wx [data-mark=retry] {background:#4d382f;border-color:#dba98a;color:#fff5ee}
.wx-language [aria-live] {min-height:1.5em}
.wx-study {background:#252332;--wx-line:#585369;--wx-muted:#d2cadf;text-align:start}
.wx-study .wx-head {border-color:var(--wx-line);padding:clamp(18px,3vw,34px)}
.wx-study .wx-title {font-size:clamp(1.9rem,4vw,3.3rem);margin-top:.15em}
.study-spread {display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)}
.wx .study-source {background:#e9e4d8;color:#262428;display:grid;align-content:center;gap:clamp(12px,2vw,24px);padding:clamp(18px,3.5vw,48px)}
.study-source img {display:block;width:100%;height:auto;box-shadow:0 5px 14px #211d191e}
.wx-study h4 {font-size:.86rem;font-weight:650;margin:0 0 .4rem;letter-spacing:.02em}
.study-source figcaption p {font-size:clamp(1rem,1.5vw,1.25rem);line-height:1.6;text-wrap:pretty}
.study-player {min-width:0;padding:clamp(18px,3.5vw,45px);align-self:center}
.study-player h4 {color:#d3bcee}.study-player>p {font-size:1rem;line-height:1.55;color:#f4f1f5}
.study-lines {border-block:1px solid var(--wx-line);display:grid;margin:20px 0}
.wx .study-line {width:100%;text-align:start;min-height:52px;display:grid;grid-template-columns:max-content minmax(0,1fr) 8px;align-items:center;gap:clamp(8px,1.3vw,16px);border:0;border-radius:0;border-bottom:1px solid var(--wx-line);background:transparent;color:#eeeaf6;padding:9px 5px}
.wx .study-line:last-child {border-bottom:0}.wx .study-line:hover,.wx .study-line[aria-current] {background:#363145;color:#fff}
.wx .study-line:focus-visible,.wx .study-repeat:focus-visible {outline:2px solid #eee2ff;outline-offset:2px}
.study-line-time {font:500 .76rem/1.3 ui-monospace,monospace;color:#ccbedf;white-space:nowrap}
.study-sung {display:block;word-break:keep-all;font-size:clamp(1rem,1.8vw,1.4rem);font-weight:600}
.study-gloss {display:block;color:#d7cfdf;font-size:.85rem;line-height:1.45;margin-top:.2em}
html:lang(ko) .study-gloss {display:none}
.study-triangle {width:0;height:0;border-block:4px solid transparent;border-inline-start:6px solid #c9acd7}
.study-player audio {width:100%;max-width:100%;display:block;height:42px}
.wx .study-repeat {margin-top:12px;border-radius:3px;gap:6px;line-height:1.2;min-height:44px}
.wx .study-error {margin:.5rem 0 0;color:#f0d4aa}
.wx-tracks,.wx-actions {display:flex;flex-wrap:wrap;gap:7px}
.wx button[aria-pressed=true] {background:#ede6d5;border-color:#ede6d5;color:#24261f}
.wx button[aria-pressed=true]:hover:not(:disabled) {background:#f9f1df;color:#24261f}
.wx-music {background:#25232e;--wx-line:#54515f;--wx-muted:#cbc5d3}
.wx-music .wx-content {display:grid;gap:14px}
.wx-roll {width:100%;height:auto;min-height:84px;max-height:180px;display:block;overflow:hidden;background:#191a22;border:1px solid #45454e;border-radius:2px}
.wx-music .wx-foot {justify-content:space-between}
.wx-music .wx-actions {align-items:center}
.wx .wx-note {margin-top:4px}
@media(max-width:620px){
  .study-spread {grid-template-columns:minmax(0,1fr)}
  .wx .study-source {grid-template-columns:minmax(0,.9fr) minmax(0,1fr);align-items:center;gap:14px}
  .study-source figcaption p {font-size:.93rem}
  .wx-language .wx-content {grid-template-columns:1fr;gap:15px}
  .wx-prompt {min-height:0}
  .wx-chamber canvas {aspect-ratio:1.43}
  .wx-controls .wx-readout {flex-basis:auto}
  .wx .wx-foot {align-items:flex-start}
}
@media(max-width:370px){.wx-controls,.wx-foot,.wx-content,.wx-head{padding:13px 10px}.wx-pad{gap:2px}.wx-pad button{padding-inline:7px;min-width:44px}.wx-caption{font-size:.76rem}}
@media(prefers-reduced-motion:reduce){.wx * {transition:none!important;animation:none!important}}
