/* The market table and its keyboard controls share the same real game state. */
.market-page{--market-ink:#28554e;--market-muted:#617565;--market-line:#d8e2d3;width:100%;max-width:1240px;margin-inline:auto;padding-bottom:26px;color:var(--market-ink)}
.market-page *,.market-page *::before,.market-page *::after{box-sizing:border-box}
.market-page [hidden]{display:none!important}
.market-page button,.market-page select,.market-page a{-webkit-tap-highlight-color:transparent}
.market-page button{font-family:inherit;cursor:pointer}.market-page button:disabled{cursor:default}
.market-page :is(button,a,select):focus-visible{outline:3px solid #278c80;outline-offset:4px}
.market-page :is(#market-title,#market-task-heading):focus{outline:none}
.market-sr{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.market-header{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:24px}
.market-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-bottom:6px;color:#5c735f;font-size:12px;font-weight:900;text-decoration:none}
.market-back:hover{color:#238377}
.market-eyebrow{margin:0;color:#68795e;font-size:10px;font-weight:1000;line-height:1.5;letter-spacing:.11em;text-transform:uppercase}
.market-header h1{display:flex;align-items:center;gap:12px;margin:5px 0 0;color:#2c5a4b;font-size:clamp(31px,4.1vw,47px);font-weight:1000;line-height:1.05;letter-spacing:-.045em}
.market-header h1>span{color:#ce8b71;font-size:.7em}
.market-intro{margin:11px 0 0;color:var(--market-muted);font-size:14px;line-height:1.6}
.market-select-label{display:grid;gap:6px;min-width:0;color:#62755e;font-size:11px;font-weight:900}
.market-select-label select{width:100%;min-height:46px;padding:10px 34px 10px 14px;border:1px solid #ceddcd;border-radius:12px;background:#fffdf4;color:#315e50;font-family:inherit;font-size:13px;font-weight:850}
.market-level-select{width:270px;flex:none}
.market-header-badge{padding:10px 14px;border:1px solid #d7e1cd;border-radius:999px;background:#edf3e5;color:#68795c;font-size:11px;font-weight:900;white-space:nowrap}
.market-page:not([data-market-phase="library"]) .market-header{min-height:44px;gap:14px;margin-bottom:10px}
.market-page:not([data-market-phase="library"]) .market-header>div{display:flex;align-items:center;flex-wrap:wrap;gap:5px 18px}
.market-page:not([data-market-phase="library"]) .market-header :is(.market-eyebrow,.market-intro){display:none}
.market-page:not([data-market-phase="library"]) .market-header .market-back{margin:0;font-size:11px}
.market-page:not([data-market-phase="library"]) .market-header h1{gap:8px;margin:0;font-size:28px}
.market-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:46px;padding:11px 14px;border:1px solid #d1dfce;border-radius:12px;background:#f3f6e9;color:#4b7258;font-size:12px;font-weight:950;line-height:1.4;text-align:center}
.market-button:hover:not(:disabled){border-color:#9fc3ad;background:#e7f1e3}.market-button:disabled{opacity:.46;box-shadow:none}
.market-primary{border-color:#2f7d6e;background:#2f7d6e;color:#fffbed;box-shadow:0 3px 0 #205b50}
.market-primary:hover:not(:disabled){border-color:#256456;background:#256456}
.market-listen{border-color:#c6dcd5;background:#eef7f1;color:#38776a}
.market-wave{display:inline-flex;align-items:center;justify-content:center;gap:3px;width:19px;height:20px;flex:none}
.market-wave i{display:block;width:3px;height:10px;border-radius:3px;background:currentColor}.market-wave i:nth-child(2){height:19px}.market-wave i:nth-child(3){height:13px}
.market-listen[aria-pressed="true"]{background:#d9eee3;border-color:#69a38c}
.market-welcome{display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border:1px solid #dcd8c3;border-radius:27px;background:#fff7e5;box-shadow:0 5px 0 #e4e7d9}
.market-welcome>div:first-child{padding:33px 35px}.market-welcome h2{margin:9px 0 14px;color:#416f56;font-size:45px;font-weight:1000;line-height:1.08;letter-spacing:-.05em}
.market-welcome>div>p:not(.market-eyebrow){max-width:33ch;margin:0;color:#7b765b;font-size:14px;line-height:1.8}.market-welcome .market-listen{margin-top:23px}
.market-welcome-art{display:grid;align-items:center;min-width:0;overflow:hidden;border-left:1px solid #d9dbc4;background:#c9e5df}.market-welcome-art>svg{display:block;width:100%;height:100%;object-fit:cover}
.market-library-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:34px 0 20px}.market-library-heading h2{margin:5px 0 6px;color:#3b6952;font-size:30px;font-weight:1000;letter-spacing:-.035em;line-height:1.2}.market-library-heading>div>p:last-child{margin:0;color:var(--market-muted);font-size:13px;line-height:1.6}
.market-practice-count{display:grid;gap:2px;margin:0;color:#71805d;font-size:10px;font-weight:900;text-align:right}.market-practice-count>strong{color:#557d52;font-size:32px;font-weight:1000;line-height:1.1}.market-practice-count>strong>span{color:#849273;font-size:20px}
.market-challenge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.market-challenge-card{display:block;min-width:0;overflow:hidden;padding:0;border:1px solid #d9e2d0;border-radius:21px;background:#fffdf3;color:#38624d;text-align:left;box-shadow:0 4px 0 #e1e8d9;transition:transform .16s ease,border-color .16s ease}.market-challenge-card:hover{transform:translateY(-3px);border-color:#a3c2a5}
.market-card-art{position:relative;display:block;overflow:hidden;aspect-ratio:420/220;border-bottom:1px solid #d9e2d0}.market-card-art>svg{display:block;width:100%;height:100%}.market-card-number{position:absolute;top:12px;left:12px;display:grid;place-items:center;width:29px;height:29px;border:1px solid #e3dfc8;border-radius:50%;background:#fff9e5;color:#6d7653;font-size:11px;font-weight:1000}.market-practiced{position:absolute;right:10px;top:13px;padding:5px 8px;border-radius:999px;background:#f3fae9;color:#4d7c51;font-size:9px;font-weight:1000}
.market-card-copy{display:grid;gap:6px;padding:20px 21px 16px}.market-card-copy>.market-eyebrow{font-size:8px;letter-spacing:.08em}.market-card-copy>strong{font-size:23px;font-weight:1000;line-height:1.22;letter-spacing:-.025em}.market-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px;color:#6e8060;font-size:10px;font-weight:900}.market-card-bottom>span:last-child{display:grid;place-items:center;width:30px;height:30px;border:1px solid #d6e1cb;border-radius:50%;background:#eef5e5;font-size:18px}
.market-library-note{margin:23px 0 0;color:var(--market-muted);font-size:12px;line-height:1.7}
.market-active-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}.market-active-header>p{display:grid;gap:4px;margin:0;text-align:right}.market-active-header strong{color:#577650;font-size:16px;font-weight:1000}
.market-play-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(316px,.9fr);grid-template-areas:"board task" "board tools";grid-template-rows:auto 1fr;align-items:start;gap:16px 22px}
.market-task-header{grid-area:task;min-width:0;padding:18px 20px;border:1px solid #dddcc5;border-radius:20px;background:#fff7e3}.market-task-header h2{margin:6px 0 0;color:#365c4c;font-size:23px;font-weight:1000;line-height:1.34;letter-spacing:-.025em}.market-task-header>.market-listen{margin-top:14px}
.market-board{grid-area:board;min-width:0;overflow:hidden;border:1px solid #d2dfcf;border-radius:25px;background:#fffaf0;box-shadow:0 5px 0 #e1e7d7}.market-board-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid #cfded0;background:#e5f0e3;color:#58764f;font-size:11px;line-height:1.5}.market-board-heading strong{font-weight:1000}.market-board-heading>span{font-size:10px;text-align:right}
.market-scene{position:relative;width:100%;height:clamp(410px,38vw,485px);min-height:300px;overflow:hidden;background:#c9e5df;isolation:isolate}.market-scene-fallback{position:absolute;inset:0;z-index:0}.market-scene[data-market-scene-ready="true"]>[data-market-scene-fallback]{visibility:hidden}.market-scene-fallback>svg,.market-scene canvas{display:block;width:100%;height:100%}.market-scene canvas{position:absolute;inset:0;z-index:1;touch-action:manipulation}
.market-tray{padding:16px 18px;border-top:1px solid #e3dcc1;background:#fff7df}.market-tray-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.market-tray h3{margin:0;color:#7b6949;font-size:14px;font-weight:1000}.market-tray-heading>span{color:#938468;font-size:10px;font-weight:900}.market-tray>p{margin:10px 0 0;color:#8a7a5c;font-size:11px;line-height:1.5}.market-tray-coins{display:flex;flex-wrap:wrap;gap:7px}
.market-return-coin{display:flex;align-items:center;justify-content:center;gap:5px;min-width:62px;min-height:55px;padding:5px 7px;border:1px solid #e3d7b7;border-radius:12px;background:#fffbee;color:#8b7750;font-family:inherit;font-size:12px;font-weight:1000}.market-return-coin:hover:not(:disabled){border-color:#bea468;background:#fff4cc}.market-return-coin:disabled{opacity:.7}.market-return-coin>span:last-child{font-size:14px}
.market-coin-face{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none;width:57px;height:57px;border:3px solid #bb9d58;border-radius:50%;outline:1px solid #e7d79e;outline-offset:-7px;background:linear-gradient(135deg,#f9eab1,#dfbc61);box-shadow:0 3px 0 #a98e51;color:#826a32;line-height:1}
.market-coin-face>span{font-size:26px;font-weight:1000;letter-spacing:-.04em}.market-coin-face>small{margin-top:3px;font-size:7px;font-weight:1000;letter-spacing:.12em}.market-coin-bimetal{background:radial-gradient(circle,#ede3c1 0 64%,#d8af54 65%);color:#7e6f43}.market-coin-petal{border-radius:43% 49% 45% 50%;transform:rotate(-4deg)}.market-coin-petal>*{transform:rotate(4deg)}.market-coin-small{width:38px;height:38px;border-width:2px;outline-offset:-5px;box-shadow:0 2px 0 #a98e51}.market-coin-small>span{font-size:18px}.market-coin-small>small{font-size:5px;margin-top:2px}
.market-tools{grid-area:tools;min-width:0;padding:20px;border:1px solid #d8e0ce;border-radius:22px;background:#fffdf4;box-shadow:0 5px 0 #e4e9d8}.market-manipulation h3{margin:0 0 14px;color:#416c53;font-size:18px;font-weight:1000;line-height:1.4;letter-spacing:-.02em}
.market-receipt{position:relative;margin:0 0 19px;padding:14px 15px;border:1px dashed #d6c7a5;border-radius:13px;background:#fff8e6;color:#7d7151}.market-receipt>.market-eyebrow{color:#97835f;font-size:8px;margin-bottom:9px}.market-receipt-item,.market-receipt-total,.market-paid{display:flex;justify-content:space-between;align-items:center;gap:13px;margin-top:9px;font-size:12px;line-height:1.5}.market-receipt-item>span{min-width:0}.market-receipt-item small{font-weight:900}.market-receipt strong{flex:none;font-size:15px;font-weight:1000;white-space:nowrap}.market-receipt-total{margin-top:13px;padding-top:11px;border-top:1px dashed #d8cba9;font-size:11px;font-weight:900}.market-paid{margin:13px -5px -4px;padding:10px;border:1px solid #d2e0ca;border-radius:10px;background:#eef5e3;color:#5d7652;font-size:11px;font-weight:900}
.market-order-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:9px;color:#728064;font-size:11px;font-weight:900}.market-order-heading>strong{color:#44765d;font-size:33px;font-weight:1000;line-height:1}.market-order-note{margin:0 0 18px;color:#7b7b5c;font-size:12px;line-height:1.7}
.market-coins{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.market-add-coin{display:grid;justify-items:center;gap:10px;min-width:0;min-height:106px;padding:13px 3px 10px;border:1px solid #dfd4b8;border-radius:14px;background:#fff6dd;color:#826c42}.market-add-coin:hover:not(:disabled){border-color:#bca25f;background:#fff0c9}.market-add-coin>span:last-child{font-size:11px;font-weight:1000;line-height:1.3}.market-add-coin:disabled{opacity:.5}.market-control-note{margin:12px 0 0;color:#6d7e61;font-size:11px;line-height:1.7}
.market-total{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:17px;padding:13px 15px;border:1px solid #cfdec8;border-radius:13px;background:#edf5e4;color:#6a7e5b;font-size:11px;font-weight:900}.market-total>strong{flex:none;color:#43744f;font-size:30px;font-weight:1000;line-height:1.2;letter-spacing:-.04em}
.market-place-summary{display:flex;align-items:center;justify-content:space-around;flex-wrap:wrap;gap:10px;padding:17px 18px;border-top:1px solid #d4e1ca;background:#edf4e3;color:#6c7f5b;font-size:11px;font-weight:900}.market-place-summary>span{display:flex;align-items:center;gap:6px}.market-place-summary strong{color:#4b7852;font-size:22px;font-weight:1000}.market-place-summary .market-place-total{padding-left:14px;border-left:1px solid #cedcc1}
.market-place-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px}.market-place-control{min-width:0;padding:13px 8px;border:1px solid #d6e1cb;border-radius:14px;background:#f1f6e7;text-align:center}.market-place-control h4{margin:0 0 11px;color:#6a7b58;font-size:11px;font-weight:1000}.market-place-control>div{display:flex;align-items:center;justify-content:center;gap:4px}.market-place-control button{display:grid;place-items:center;flex:none;width:44px;min-height:44px;padding:0;border:1px solid #cddbc2;border-radius:10px;background:#fffdf1;color:#618058;font-size:22px;font-weight:900}.market-place-control button:hover:not(:disabled){background:#e6efd9;border-color:#9db88f}.market-place-control button:disabled{opacity:.4}.market-place-control strong{min-width:24px;color:#47734e;font-size:25px;font-weight:1000}.market-place-control p{margin:10px 0 0;color:#7f8b6d;font-size:9px;line-height:1.5}
.market-exchanges{display:grid;gap:9px;margin-top:13px}.market-exchanges .market-button{justify-content:flex-start;min-height:46px;padding:10px 11px;border-color:#d9d9bd;background:#faf6df;color:#83734e;font-size:11px;text-align:left}
.market-check-row{display:grid;gap:10px;margin-top:21px}.market-check-row>.market-primary{min-height:50px;font-size:14px}.market-check-row>.market-button:not(.market-primary){min-height:44px;font-size:11px}.market-help-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:14px}.market-help-actions>.market-button{min-height:44px;padding:9px 10px;border-color:#e1dbc1;background:#faf5e4;color:#87754e;font-size:10px}
.market-teaching,.market-hint{margin-top:16px;padding:15px;border:1px solid #dfd6b8;border-radius:14px;background:#fff5da}.market-teaching h3{margin:0 0 7px;color:#7b6945;font-size:15px;font-weight:1000}.market-teaching p,.market-hint>p:not(.market-eyebrow){margin:0;color:#7c6d4c;font-size:12px;line-height:1.75}.market-hint{border-style:dashed;border-color:#c9dac0;background:#eff5e5}.market-hint>p:not(.market-eyebrow){margin-top:6px;color:#627958}.market-teaching .market-listen,.market-hint .market-listen{margin-top:12px;min-height:44px;padding:9px 11px;font-size:10px}
.market-feedback{display:flex;align-items:flex-start;gap:10px;margin-top:16px;padding:15px;border:1px solid #e1d2af;border-radius:14px;background:#fff2d7;color:#857044}.market-feedback>span{flex:none;font-size:22px;line-height:1.4}.market-feedback>div{min-width:0}.market-feedback p{margin:0;font-size:12px;line-height:1.75}.market-feedback[data-tone="solved"]{border-color:#bcd6ba;background:#eaf5e2;color:#557a4e}.market-feedback .market-listen{min-height:44px;margin-top:11px;padding:9px 11px;font-size:10px}
.market-solved{margin-top:18px;padding-top:17px;border-top:1px solid #d7e2ca}.market-solved>p{display:flex;align-items:center;gap:8px;margin:0;color:#527d4d;font-size:17px;font-weight:1000}.market-solved>p>span{color:#c5945e;font-size:25px}.market-solved>span{display:block;margin-top:5px;color:#6c7f60;font-size:11px;line-height:1.6}.market-solved>div{display:grid;gap:10px;margin-top:15px}
.market-voice-bar{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;margin-top:27px;padding:13px 19px;border:1px solid #d7e1ce;border-radius:18px;background:#edf4e4}.market-guide{display:flex;align-items:center;gap:11px;min-width:170px}.market-guide img{display:block;width:54px;height:62px;object-fit:contain}.market-guide>div{display:grid;gap:2px}.market-guide strong{color:#52794e;font-size:17px;font-weight:1000}.market-guide span{color:#6c7f60;font-size:10px}.market-voice-controls{display:flex;align-items:flex-end;gap:10px;margin-left:auto}.market-voice-controls .market-select-label{width:135px;font-size:9px}.market-voice-controls select{min-height:44px;font-size:11px}.market-voice-controls>.market-button{min-height:44px;font-size:11px}.market-audio-status{width:100%;min-height:18px;margin:0;padding-top:8px;border-top:1px solid #d9e3cc;color:#687c5d;font-size:11px;line-height:1.6}.market-storage-note,.market-parent-note{margin:13px 0 0;color:#718064;font-size:10px;line-height:1.7}.market-parent-note{margin-top:5px;color:#839078}
@media(max-width:1080px){.market-play-layout{grid-template-columns:minmax(0,1.25fr) minmax(320px,1fr);gap:16px}.market-scene{height:430px}.market-tools{padding:17px}.market-task-header{padding:17px}.market-task-header h2{font-size:21px}.market-board-heading{padding:13px 15px;font-size:10px}.market-challenge-grid{gap:17px}.market-card-copy{padding:17px}.market-card-copy>strong{font-size:21px}.market-coins{gap:6px}.market-add-coin>.market-coin-face{width:51px;height:51px}.market-place-control{padding-inline:5px}.market-place-control strong{min-width:22px;font-size:23px}.market-place-control>div{gap:2px}}
@media(max-width:840px){.market-play-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"task" "board" "tools";grid-template-rows:auto auto auto}.market-scene{height:clamp(340px,60vw,460px)}.market-tools{padding:23px}.market-coins{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.market-add-coin{min-height:112px}.market-add-coin>.market-coin-face{width:59px;height:59px}.market-add-coin>span:last-child{font-size:13px}.market-place-control{padding:16px 10px}.market-place-control h4{font-size:13px}.market-place-control>div{gap:12px}.market-place-control strong{font-size:28px}.market-place-control p{font-size:11px}.market-exchanges{grid-template-columns:1fr 1fr}.market-exchanges .market-button{font-size:12px}.market-check-row{grid-template-columns:1fr 1fr}.market-help-actions{justify-content:flex-start}.market-help-actions>.market-button{font-size:11px}.market-challenge-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.market-welcome>div:first-child{padding:28px}.market-welcome h2{font-size:38px}.market-level-select{width:230px}.market-solved>div{grid-template-columns:1fr 1fr}.market-receipt-item,.market-receipt-total,.market-paid{font-size:13px}.market-receipt strong{font-size:17px}}
@media(max-width:560px){.market-header{display:block;margin-bottom:20px}.market-back{margin-bottom:5px}.market-header h1{font-size:35px}.market-level-select{width:100%;margin-top:18px;font-size:10px}.market-header>.market-header-badge{display:none}.market-intro{margin-top:9px;font-size:12px}.market-page:not([data-market-phase="library"]) .market-header{display:flex}.market-page:not([data-market-phase="library"]) .market-header>div{gap:6px 12px}.market-page:not([data-market-phase="library"]) .market-header .market-back{font-size:10px}.market-page:not([data-market-phase="library"]) .market-header h1{font-size:26px}.market-welcome{display:block;border-radius:22px}.market-welcome>div:first-child{padding:24px}.market-welcome h2{font-size:37px}.market-welcome h2 br{display:none}.market-welcome>div>p:not(.market-eyebrow){font-size:13px}.market-welcome-art{height:168px;border-top:1px solid #dcd6be;border-left:0}.market-welcome-art>svg{transform:scale(1.1)}.market-library-heading{gap:12px;margin-top:29px}.market-library-heading .market-eyebrow{font-size:8px}.market-library-heading h2{font-size:25px}.market-library-heading>div>p:last-child{max-width:24ch;font-size:11px}.market-practice-count{font-size:9px}.market-practice-count>strong{font-size:27px}.market-challenge-grid{gap:14px}.market-card-copy{gap:5px;padding:14px 12px}.market-card-copy>.market-eyebrow{font-size:7px}.market-card-copy>strong{font-size:19px}.market-card-bottom{margin-top:6px;font-size:9px}.market-card-bottom>span:last-child{width:25px;height:25px;font-size:15px}.market-card-number{top:9px;left:9px;width:25px;height:25px;font-size:10px}.market-practiced{right:6px;top:9px;padding:4px 6px;font-size:7px}.market-active-header{align-items:flex-start;gap:10px}.market-active-header>.market-button{min-height:44px;padding:9px 10px;font-size:10px}.market-active-header strong{max-width:20ch;font-size:12px}.market-active-header .market-eyebrow{font-size:8px}.market-play-layout{gap:14px}.market-task-header{padding:16px 17px;border-radius:17px}.market-task-header h2{font-size:21px}.market-task-header>.market-listen{min-height:44px;padding:9px 12px;font-size:10px}.market-board{border-radius:20px}.market-board-heading{gap:10px;padding:11px 13px}.market-board-heading strong{font-size:10px}.market-board-heading>span{max-width:19ch;font-size:9px}.market-scene{height:320px;min-height:280px}.market-tools{padding:18px;border-radius:20px}.market-manipulation h3{font-size:18px}.market-coins{gap:8px}.market-add-coin{min-height:103px;padding:12px 3px 9px}.market-add-coin>.market-coin-face{width:50px;height:50px}.market-add-coin>span:last-child{font-size:11px}.market-coin-face>span{font-size:24px}.market-tray{padding:14px}.market-tray h3{font-size:13px}.market-tray-coins{gap:6px}.market-return-coin{min-width:60px;min-height:52px}.market-place-summary{gap:8px;padding:14px 11px;font-size:10px}.market-place-summary strong{font-size:20px}.market-place-summary .market-place-total{padding-left:10px}.market-place-controls{gap:9px}.market-place-control{padding:13px 5px}.market-place-control h4{font-size:11px}.market-place-control>div{gap:4px}.market-place-control strong{min-width:23px;font-size:25px}.market-place-control p{font-size:9px}.market-exchanges{grid-template-columns:1fr}.market-exchanges .market-button{font-size:11px}.market-total{padding:12px 14px}.market-total>strong{font-size:29px}.market-check-row{gap:9px}.market-check-row>.market-primary{font-size:12px}.market-check-row>.market-button:not(.market-primary){font-size:10px}.market-help-actions{gap:7px}.market-help-actions>.market-button{font-size:10px}.market-voice-bar{gap:12px;margin-top:23px;padding:13px 15px;border-radius:16px}.market-guide{min-width:0}.market-guide img{width:43px;height:52px}.market-guide strong{font-size:15px}.market-guide span{font-size:9px}.market-voice-controls{gap:7px}.market-voice-controls .market-select-label{width:110px;font-size:8px}.market-voice-controls select{padding-left:10px;font-size:10px}.market-voice-controls>.market-button{padding:9px 10px;font-size:10px}.market-audio-status{font-size:10px}.market-storage-note,.market-parent-note{font-size:9px}}
@media(max-width:360px){.market-place-controls{grid-template-columns:1fr}.market-place-control>div{gap:14px}.market-voice-controls{width:100%;margin-left:0}.market-voice-controls .market-select-label{flex:1}.market-challenge-grid{grid-template-columns:1fr}.market-card-art{aspect-ratio:420/190}}
/* Active play keeps Check beside the pieces, rather than below a long lesson. */
.market-task-copy{min-width:0}
.market-task-actions{display:flex;align-items:center;gap:12px;flex:none}
.market-target{display:grid;gap:3px;min-width:68px;text-align:center;color:#71805f;font-size:9px;font-weight:950}
.market-target>strong{color:#3d785a;font-size:30px;line-height:1;font-weight:1000}
.market-tool-content{min-width:0}
.market-header>.market-button{flex:none}
@media(min-width:841px){
 .market-play-layout{grid-template-areas:"task task" "board tools";grid-template-rows:auto 1fr;gap:14px 20px}
 .market-task-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 17px;border-radius:16px}
 .market-task-header h2{max-width:68ch;margin-top:3px;font-size:19px;line-height:1.35}
 .market-task-header .market-eyebrow{font-size:9px}
 .market-task-actions>.market-listen{min-height:44px;padding:9px 11px;font-size:10px;white-space:nowrap}
 .market-tools{display:flex;flex-direction:column;max-height:calc(100dvh - 224px);padding:13px 14px;overflow:hidden;border-radius:18px}
 .market-tool-content{min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#b2c8ab transparent;padding:0 3px 2px}
 .market-check-row{flex:none;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:8px;margin-top:10px;padding:10px 3px 0;border-top:1px solid #d7e2ca;background:#fffdf4}
 .market-check-row>.market-primary{min-height:46px;padding:9px 8px;font-size:12px}
 .market-check-row>.market-button:not(.market-primary){min-height:46px;padding:8px;font-size:10px}
 .market-manipulation h3{margin-bottom:9px;font-size:16px}
 .market-place-controls{gap:8px}
 .market-place-control{padding:9px 4px}
 .market-place-control h4{margin-bottom:7px;font-size:10px}
 .market-place-control>div{gap:3px}
 .market-place-control strong{min-width:23px;font-size:24px}
 .market-exchanges{grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}
 .market-exchanges .market-button{justify-content:center;min-height:46px;padding:8px 6px;font-size:10px;line-height:1.35;text-align:center}
 .market-total{margin-top:9px;padding:8px 11px;font-size:10px}
 .market-total>strong{font-size:26px}
 .market-help-actions{gap:7px;margin-top:10px}
 .market-help-actions>.market-button{flex:1;min-height:44px;padding:7px;font-size:10px}
 .market-receipt{margin-bottom:12px;padding:10px 12px}
 .market-receipt>.market-eyebrow{margin-bottom:4px}
 .market-receipt-item,.market-receipt-total,.market-paid{margin-top:6px;font-size:11px}
 .market-receipt-total{padding-top:7px}
 .market-receipt strong{font-size:14px}
 .market-paid{margin-bottom:0;padding:7px 9px}
 .market-coins{gap:7px}
 .market-add-coin{min-height:88px;gap:7px;padding:9px 2px 7px}
 .market-add-coin>.market-coin-face{width:48px;height:48px}
 .market-add-coin>span:last-child{font-size:10px}
 .market-scene{height:clamp(400px,calc(100dvh - 340px),456px)}
 .market-board-heading{padding:10px 15px}
 .market-place-summary{padding:10px 13px;font-size:10px}
 .market-place-summary strong{font-size:21px}
 .market-tray{padding:12px 14px}
 .market-tray-heading{margin-bottom:7px}
 .market-tray>p{margin-top:7px;font-size:10px}
 .market-voice-bar{margin-top:18px}
}
@media(max-width:840px){
 .market-task-actions{justify-content:space-between;gap:12px;margin-top:13px}
 .market-task-actions .market-listen{min-height:44px;margin-top:0}
 .market-target{display:flex;align-items:center;gap:12px;min-width:0;text-align:left;font-size:10px}
 .market-target>strong{font-size:30px}
 .market-tools{display:flex;flex-direction:column;max-height:none;overflow:visible}
 .market-tool-content{display:contents;overflow:visible}
 .market-tools .market-check-row{order:1;margin-top:15px}
 .market-header>.market-button{margin-top:10px}
 .market-page:not([data-market-phase="library"]) .market-header>.market-button{margin-top:0;min-height:44px;padding:9px 11px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){.market-challenge-card{transition:none}.market-challenge-card:hover{transform:none}}
