.challenge-main{max-width:1360px}
.challenge-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0 18px}
.challenge-heading h2{font-size:clamp(25px,4vw,38px);line-height:1.16;letter-spacing:-.03em}
.challenge-heading>div>p{margin-top:7px;color:var(--muted);font-size:14px}
.score{white-space:nowrap;padding:8px 14px;border:1px solid #c2d5c9;border-radius:13px;background:#e6efe7;font-weight:650;color:var(--brand)}
.score output{font-family:var(--num);font-size:24px}
.challenge-rewards{display:grid;justify-items:end;gap:4px;font-size:13px}
.challenge-rewards a{color:var(--brand);padding:4px;text-underline-offset:3px}
.challenge-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:12px}
.challenge-steps button{position:relative;display:flex;align-items:center;justify-content:center;gap:9px;min-height:52px;padding:8px;border:1px solid var(--line);border-radius:12px;background:#fff;font-size:14px;font-weight:650}
.challenge-steps button b{display:grid;place-items:center;flex:none;width:25px;height:25px;border-radius:50%;background:#e8eee8;color:var(--brand);font-family:var(--num)}
.challenge-steps button[aria-pressed=true]{background:var(--brand);color:white;border-color:var(--brand)}
.challenge-steps button[data-cleared=true] b{background:#d1ebdb;color:#184c37}
.challenge-steps button:disabled{color:var(--muted);background:#edf0ed;border-style:dashed;cursor:default}
.challenge-steps button:disabled b{background:none;font-size:13px}
.challenge-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(325px,388px);grid-template-areas:"stage question";gap:14px;align-items:start}
.challenge-stage-wrap{grid-area:stage;min-width:0}
.challenge-stage{height:clamp(380px,58vh,670px);margin:0}
.challenge-question{grid-area:question;min-width:0;padding:20px 20px 16px}
.challenge-question h2{font-size:21px}
.level-reward{white-space:nowrap;font-size:13px;font-weight:650;color:var(--brand);background:#e9f0e9;padding:5px 9px;border-radius:7px}
#question-prompt{font-size:15px;line-height:1.6}
.challenge-data{margin:12px 0 14px;table-layout:auto;font-size:13.5px}
.challenge-data td,.challenge-data th{padding:8px 5px;border-bottom:1px solid var(--line);white-space:normal}
.challenge-data td:last-child{width:auto;padding-right:5px}
.challenge-data td[data-unknown=true]{font-weight:750;color:var(--cw)}
.challenge-data tr[data-thruster] th{color:#69437e}
.challenge-data [data-arm-target]{min-height:34px;border:0;border-radius:6px;padding:3px 5px;color:inherit;background:transparent;font-weight:inherit;text-align:start;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
.challenge-data [data-arm-target][aria-pressed=true]{background:#dcefea;color:#114638;text-decoration-style:solid}
#answer-form label{display:block;margin-bottom:7px;font-size:13px;font-weight:700}
.answer-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.answer-field{position:relative;min-width:0}
.answer-field input{width:100%;height:48px;border:1px solid #b7c8bf;border-radius:10px;background:#f8faf8;padding:0 38px 0 12px;font-size:18px;font-variant-numeric:tabular-nums;appearance:textfield}
.answer-field input::-webkit-inner-spin-button,.answer-field input::-webkit-outer-spin-button{appearance:none}
.answer-field span{position:absolute;inset-inline-end:9px;top:50%;transform:translateY(-50%);font-size:13px;color:var(--muted);pointer-events:none}
.answer-row .primary{min-height:48px;padding:0 14px;border-radius:10px;font-size:14px;box-shadow:none}
#answer-form button:disabled,#answer-form input:disabled{opacity:.55;cursor:default}
#feedback{margin-top:8px;min-height:1.6em;font-size:13.5px;line-height:1.55;color:var(--muted)}
#feedback[data-state=wrong]{color:#9b3d27}
#feedback[data-state=correct]{color:#13563c;font-weight:650}
#trial-prediction,#step-hint{margin-top:8px;padding:9px 10px;border:1px solid #d4e0d9;border-radius:9px;background:#f5f9f7;font-size:13px;line-height:1.5}
.prediction-options{display:flex;gap:7px;margin-top:7px}
.prediction-options button{min-height:37px;padding:0 12px}
.prediction-options [aria-pressed=true]{background:#e6efe7;border-color:#b3cbb9}
#prediction-result:not(:empty){margin-top:6px}
.challenge-actions{display:flex;gap:8px;margin-top:8px}
.challenge-actions button,.challenge-actions a{min-width:0;min-height:44px;padding:0 10px;flex:1}
#next-level:not([hidden]){background:#e6efe7;border-color:#b3cbb9}
#verify-link{display:none;text-decoration:none;text-align:center}
.verification-controls:not([hidden]){display:flex;justify-content:flex-end;margin-top:8px}
.verification-controls button{min-height:44px;scroll-margin-bottom:16px}
#balance-result{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px;padding:10px 12px;border-radius:10px;background:#edf5ee}
#balance-result[hidden]{display:none}
#balance-result span,#balance-result strong{display:block;font-size:12px}
#balance-result strong{margin-top:3px;color:var(--brand);font:700 17px var(--num)}
#moment-breakdown{grid-column:1/-1;display:grid;gap:5px;margin:0;border-top:1px solid #d4e0d9;padding:7px 0 0;list-style:none;font-size:12px;line-height:1.45}
.challenge-question .fine{margin-top:10px;line-height:1.5}
@media(max-width:880px){
  .challenge-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"question" "stage"}
  .challenge-stage{height:clamp(330px,45vh,485px)}
  #verify-link:not([hidden]){display:flex;align-items:center;justify-content:center}
}
@media(max-width:600px){
  .challenge-stage .status{top:10px;bottom:auto}
}
@media(max-width:530px){
  .challenge-main{padding-inline:12px}
  .challenge-heading{margin:10px 0 12px}
  .challenge-steps{gap:5px}
  .challenge-steps button{min-height:49px;flex-direction:column;gap:3px;padding:4px;font-size:11px}
  .challenge-steps button b{width:20px;height:20px}
  .challenge-stage{height:310px;min-height:0}
  .challenge-question{padding:16px 13px}
}
