/* Math Match review: clear starts, legible table, expressive pals. */
.math-review .picture-card.memory-hint{outline:3px solid #a76a09;outline-offset:2px;box-shadow:0 0 0 5px #fff1b8}.math-review .card-hint{position:absolute;top:3px;left:3px;right:3px;border-radius:5px;background:#fff1b8;color:#61400a;font-size:18px;line-height:1.3;font-weight:900;text-align:center;z-index:1}
.quick-play{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fffdf7;border:2px solid #bacdb0;border-radius:20px;padding:18px 22px;margin:10px 0 18px;box-shadow:0 7px 20px #315a4610}
.quick-play b{display:block;font-size:18px;color:#234f3e}.quick-play p{margin:6px 0 0;color:#405d47;font-size:18px}.quick-play .primary{min-width:200px;font-size:21px;min-height:56px}.change-settings>summary{display:list-item;cursor:pointer;min-height:48px;padding:12px;font-size:17px;font-weight:bold;color:#315a46}.change-settings .setup-card{margin-top:10px}.extra-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;width:100%}.extra-settings label{display:flex;flex-direction:column;gap:7px;font-size:16px;font-weight:bold;color:#315a46}.extra-settings select{font:inherit;color:#214d43;background:#fffdf8;border:1.5px solid #a9bfa2;border-radius:10px;padding:10px;min-height:46px;width:100%}.extra-settings .boost-setting{grid-column:1/-1;flex-direction:row;align-items:center;line-height:1.5}.boost-setting input{width:26px;height:26px;flex-shrink:0}.extra-settings p{grid-column:1/-1;margin:0;color:#5d3f72}.setup-bottom{flex-wrap:wrap}.setup-bottom>.extra-settings{flex-basis:100%}#lobby .intro-row{margin:5px auto 10px}#lobby .intro-art{max-height:190px;width:30%}#lobby .intro{font-size:18px;line-height:1.45}#lobby h1{font-size:42px;margin:5px 0 10px}#lobby .opponent-note{color:#31533b;font-size:18px}
body button,body summary,body .header a{min-height:44px}body summary{cursor:pointer}body .header a{display:inline-flex;align-items:center}body .parent-notes{color:#3c573f}body .game-tip{color:#315339}body .score-player small{color:#3d583e}body .table-scene .compact-scores>summary{color:#315a46!important;min-height:44px;font-size:16px!important;padding:10px 3px!important}
body.is-playing main{max-width:1100px;padding:8px 16px}body.is-playing .header{display:none}body.is-playing .table-scene{width:100%;padding:10px 14px;max-width:1080px}body.is-playing .table-top{width:100%;position:relative;left:auto}body.is-playing .play-heading h1{font-size:22px;line-height:1.25}body.is-playing .play-heading .eyebrow{font-size:16px}body.is-playing .table-navigation button,body.is-playing .table-navigation a,body.is-playing .play-tools button{min-height:44px!important;font-size:16px!important;padding:8px 10px!important}body.is-playing .scoreboard{max-width:900px;grid-template-columns:1fr 88px 1fr;gap:10px;margin:10px auto 8px}body.is-playing .score-player{height:88px;min-height:88px;padding:8px 12px;gap:10px}body.is-playing .score-player img{width:64px;height:72px}body.is-playing .score-player div>span{font-size:16px;max-width:200px}body.is-playing .score-player b{font-size:31px}body.is-playing .score-player small{font-size:16px;line-height:1.3;color:#3d583e}body.is-playing .turn-marker{font-size:14px;top:-8px}body.is-playing .turn-banner{max-width:100%;height:auto;min-height:38px;padding:7px 12px;background:#f7f8ed}body.is-playing #feedback{font-size:16px;line-height:1.35;max-height:none;color:#234f3e}body.is-playing #pairs-left{font-size:16px;color:#3d583e}body.is-playing .prize-pot>span:last-of-type{font-size:16px;color:#63451e}body.is-playing .prize-pot>b{font-size:25px}.pace-controls{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:5px;min-height:44px}.pace-controls>span{font-size:16px;line-height:1.3;color:#4d3f5c}.pace-controls button{font-size:16px;white-space:nowrap;min-height:44px}
body.math-review .card-board{grid-template-columns:repeat(var(--cols),var(--card-width));grid-auto-rows:var(--card-height);justify-content:center;gap:var(--board-gap)}body.math-review .picture-card{width:var(--card-width);height:var(--card-height);aspect-ratio:4/5;min-height:0}.math-review .card-body{overflow:hidden}.math-review .card-role{position:absolute;bottom:3px;left:0;right:0;text-align:center;font-size:clamp(16px,1vw,16px);font-weight:900;color:#3b563d;background:#fffc}.math-review .quantity-picture{width:91%;height:82%}.math-review .card-role~.number-picture{font-size:40px}body.math-review .center-target{max-height:none;min-height:0;border-radius:24px;width:95%;height:96%;padding:10px;box-shadow:inset 0 0 0 3px #ffefba}.math-review .center-target .target-label{font-size:16px;letter-spacing:.3px;color:#63451e}.math-review .center-target strong{font-size:54px}.math-review .center-target .target-help{font-size:16px;line-height:1.4;color:#63451e;max-width:180px}.math-review .center-target.has-feedback{background:#fff4cd;border-radius:20px}.math-review .center-target .pair-equation{font:900 clamp(18px,2.1vw,28px)/1.25 'Trebuchet MS',sans-serif;overflow-wrap:anywhere;color:#234f3e}.pair-caption{font-size:16px;font-weight:bold;color:#234f3e}.feedback-line{width:100%;height:42px;max-width:180px}.feedback-line text{font-size:16px;fill:#315a46;font-weight:bold}.math-boost{min-height:116px;padding:8px 12px;margin:5px 0 10px;border:2px solid #d0b773;border-radius:14px;background:#fff9e5;color:#314c36}.math-boost p{margin:0 0 5px;font-size:18px;line-height:1.3;font-weight:bold}.boost-answers{display:flex;gap:7px;flex-wrap:wrap}.boost-answers button{min-width:44px;min-height:44px;padding:6px 12px;font-size:20px;background:white}.math-boost #boost-explanation{font-size:16px;margin:5px 0 0;font-weight:normal}.part-whole{display:inline-flex;align-items:center;gap:8px;background:#eaf1dc;border-radius:12px;padding:4px 8px;margin:0 5px}.part-whole b{border:2px solid #4c704b;border-radius:50%;padding:4px}.part-whole span{border-top:2px solid #4c704b;padding-top:4px}.monkey-expression{font-size:24px;position:absolute;left:52px;top:1px;z-index:2;filter:drop-shadow(0 2px 0 #fff)}.monkey-side[data-mood=thinking] img{transform:rotate(-5deg)}.monkey-side[data-mood=oops] img{transform:rotate(8deg) translateY(3px)}.monkey-side[data-mood=happy] img,.monkey-side[data-mood=cheering] img{animation:palHop .7s ease 2}@keyframes palHop{50%{transform:translateY(-7px) rotate(3deg)}}body .collected-pile i{transform:translate(calc(var(--stack,0)*2px),calc(var(--stack,0)*-2px)) rotate(calc(var(--stack,0)*3deg));background:#fffbed}.sight-review.is-playing .card-board{gap:8px}.sight-review.is-playing .picture-card{min-height:82px;aspect-ratio:4/5}.sight-review #word-pages{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px}.sight-review #word-pages p{margin:0;font-size:18px;color:#315a46}.sight-review .word-face{font-size:clamp(20px,3vw,42px)}
@media(max-width:620px){#lobby h1{font-size:31px}#lobby .intro-art{max-height:110px;width:30%}#lobby .intro{font-size:18px}#lobby .intro-row{gap:8px}.quick-play{position:sticky;bottom:8px;z-index:8;padding:12px;gap:10px;margin-top:8px}.quick-play b{font-size:16px;line-height:1.4}.quick-play p{display:none}.quick-play .primary{min-width:130px;font-size:18px;padding:12px}.extra-settings{grid-template-columns:1fr}.extra-settings label{font-size:16px}.extra-settings .boost-setting{grid-column:auto}body.is-playing main{padding:3px 6px}body.is-playing .table-scene{padding:5px 7px}body.is-playing .table-navigation{gap:5px}body.is-playing .play-heading h1{font-size:17px}body.is-playing .play-heading .eyebrow{font-size:16px;letter-spacing:.3px}body.is-playing .scoreboard{grid-template-columns:1fr 60px 1fr;gap:5px;margin:8px 0}body.is-playing .score-player{height:73px;min-height:73px;padding:4px;gap:4px}body.is-playing .score-player img{width:43px;height:60px}body.is-playing .score-player div>span{font-size:16px;max-width:88px}body.is-playing .score-player b{font-size:25px}body.is-playing .score-player small{font-size:16px}body.is-playing .turn-marker{font-size:14px}.monkey-expression{left:31px;top:-3px;font-size:20px}body.is-playing #feedback{font-size:16px}body.is-playing #pairs-left{font-size:16px}body.is-playing .prize-pot>b{font-size:20px}body.is-playing .prize-pot>span:last-of-type{font-size:16px}.pace-controls{gap:5px}.pace-controls>span{font-size:16px;max-width:190px}.pace-controls button{font-size:16px;padding:7px}.math-boost{padding:6px 8px;min-height:115px;margin:4px 0 7px}.math-boost p{font-size:18px}.math-boost #boost-explanation{font-size:16px}.boost-answers{gap:5px}.boost-answers button{padding:5px;min-width:43px;font-size:18px}.math-review .center-target .target-label{font-size:16px}.math-review .center-target strong{font-size:42px}.math-review .center-target .target-help{font-size:16px;line-height:1.3}.math-review .center-target .pair-equation{font-size:19px}.pair-caption{font-size:16px}.math-review .center-target{padding:7px;border-radius:18px}.sight-review.is-playing .card-board{grid-template-columns:repeat(4,minmax(0,1fr))!important}.sight-review.is-playing .picture-card{min-height:78px}.sight-review .word-face{font-size:23px}.sight-review.is-playing .card-board{gap:5px}}
@media(prefers-reduced-motion:reduce){.monkey-side img{animation:none!important;transform:none!important}}

body .table-home{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;padding:8px 10px;background:#fffdf7;border:1.5px solid #b3c6aa;border-radius:11px;color:#21533d;font-size:16px!important;font-weight:bold;text-decoration:none}body footer{color:#435b43}body .card-back span{color:#fff7d4}body .target-help{color:#63451e}
