/* Chapter navigation and the little nest-memory table. */
.chapter-tabs{display:flex;gap:12px;margin:0 0 18px}.chapter-tab{flex:1;text-align:left;padding:14px 18px;border:2px solid #bccbad;border-radius:18px;background:#fffaf0;color:#35573e}.chapter-tab.active{background:#e5edce;border-color:#527647;box-shadow:0 3px 0 #d0ddba}.chapter-tab strong,.chapter-tab span,.chapter-tab small{display:block}.chapter-tab strong{font-size:14px}.chapter-tab span{font-size:12px;margin-top:5px}.chapter-tab small{font-size:10px;margin-top:5px}.chapter-tab:disabled{opacity:1;color:#79816e;background:#efeee5;border-style:dashed}
.nest-routes,.training-path{max-width:900px;margin:auto}.route-egg{float:left;width:110px;margin:0 20px 10px 0}.route-egg .egg-art{width:100%;height:130px}.nest-routes>p{font-size:15px;line-height:1.8;padding-top:25px;min-height:130px}.route-options{clear:both;display:grid;grid-template-columns:1fr 1fr;gap:20px}.route-options article{display:flex;flex-direction:column;gap:17px;background:#fffaf0;border:2px solid #c4cead;border-radius:25px;padding:25px}.route-options article:nth-child(2){background:#f6edd9;border-color:#d6bf95}.route-options h2{font-size:26px}.route-options p{font-size:14px;line-height:1.8}.route-options strong{font-size:12px;line-height:1.7}.route-options button{margin-top:auto;font-size:14px}.nest-routes>.route-note{min-height:0;font-size:12px;text-align:center;padding:22px 8px;color:#657359}.path-stations{display:grid;gap:12px;margin:20px 0}.path-station{display:flex;align-items:center;gap:15px;background:#fffaf0;border:2px solid #d0d6ba;border-radius:18px;padding:16px}.path-station.done{background:#e9efd8;border-color:#91ac75}.path-station>span{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#e0e9c8;font-weight:900;flex-shrink:0}.path-station>div{flex:1}.path-station h3{font-size:21px}.path-station small{font-size:12px;color:#63735c}.path-station button{flex-shrink:0}.training-path .next-stop{margin-top:0}.training-path .next-stop strong{font-size:13px;display:block;margin-top:10px}
.memory-active>footer,.memory-active .settings-entry{display:none}.memory-active>main{min-height:0}.memory-screen{max-width:680px;margin:auto}.memory-top{display:flex;align-items:center;gap:14px;margin-bottom:14px}.memory-top>div{flex:1}.memory-top h1{font-size:28px}.memory-top p{font-size:12px;color:#63735c}.memory-errors{font-size:11px;font-weight:900;padding:8px 11px;background:#e4edce;border:1px solid #98b17e;border-radius:14px;text-align:center}.memory-errors.used{background:#fae4c7;color:#854825;border-color:#d7a26e}.memory-status{display:flex;justify-content:space-between;font-size:12px;font-weight:800;margin:12px 2px}.memory-board{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;background:#e7dfc8;padding:12px;border:2px solid #c5b693;border-radius:22px;box-shadow:0 5px 0 #d6c9a8}.memory-board.pairs-5{grid-template-columns:repeat(5,1fr)}.memory-card{min-height:94px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#78946b;color:#fff9e7;border:2px solid #4e704b;border-radius:15px;box-shadow:0 3px 0 #526b46;transition:background .2s,transform .2s}.memory-card:disabled{opacity:1}.memory-card:not(:disabled):hover{transform:translateY(-3px);background:#648857}.memory-card .drawn-icon{width:48px;height:48px}.card-back{display:grid;place-items:center;border:1px dashed #f3efcf99;border-radius:10px;width:62px;height:58px}.card-back .drawn-icon{width:35px;height:35px}.memory-card small{font-size:10px;font-weight:900}.memory-card.face-up{background:#fff9e8;border-color:#a78d64;color:#43563b;box-shadow:0 3px 0 #bcaa84}.memory-card.matched{background:#e2edc8;border-color:#6d9457;color:#35573e;box-shadow:0 2px 0 #a6bc87}.memory-feedback{font-size:13px;font-weight:800;line-height:1.5;min-height:40px;margin:16px 3px 8px;color:#49623f}.memory-math{padding:15px 20px;background:#fffaf0;border:2px solid #c4cfad;border-radius:22px;text-align:center}.memory-math>p{font-size:12px;color:#657359}.memory-math .equation{font-size:43px;gap:10px;margin:10px 0}.memory-math .answer{height:58px;width:78px;font-size:38px}.memory-math>.primary{padding:9px 20px;font-size:13px;min-height:42px}.memory-math .keypad{gap:6px;margin:14px auto 0;max-width:310px}.memory-math .keypad button{min-height:42px;padding:5px;font-size:23px}.memory-math .keypad button:last-child{background:#dcebc5;border-color:#9db77f}.memory-permit{display:flex;align-items:center;justify-content:center;gap:12px;background:#e7eed2;border:2px solid #aabc8d;padding:18px;border-radius:20px;font-size:17px;min-height:110px}.memory-restart{background:#fff0dc;border:2px solid #d9b58a;border-radius:22px;padding:24px}.memory-restart h2{font-size:28px;margin-bottom:12px}.memory-restart p{font-size:14px;line-height:1.8}.memory-footer{font-size:11px;color:#63735c;text-align:center;line-height:1.6;margin:14px 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:580px){.chapter-tabs{gap:8px}.chapter-tab{padding:11px}.chapter-tab strong{font-size:12px}.chapter-tab span{font-size:10px;line-height:1.5}.route-options{grid-template-columns:1fr;gap:14px}.route-options article{padding:20px;gap:13px}.route-options h2{font-size:24px}.route-options p{font-size:13px}.nest-routes>p{font-size:13px;padding-top:10px}.route-egg{width:80px;margin-right:12px}.path-station{gap:10px;padding:12px}.path-station>span{width:30px;height:30px;font-size:13px}.path-station h3{font-size:17px}.path-station small{font-size:10px}.path-station .back{padding:9px;font-size:11px}.memory-active>header{padding:5px 14px;min-height:42px}.memory-active .brand-icon{font-size:25px}.memory-active .brand{font-size:10px;gap:5px}.memory-active .brand strong{font-size:14px}.memory-active .star-total{font-size:11px;padding:4px 8px}.memory-active>main{padding:3px 12px 12px}.memory-top{gap:8px;margin:3px 0 8px;flex-wrap:wrap}.memory-top>.back{font-size:10px;padding:8px;min-height:36px}.memory-top h1{font-size:21px}.memory-top p{font-size:10px}.memory-errors{font-size:9px;padding:6px;max-width:80px}.memory-status{font-size:10px;margin:8px 2px}.memory-board{gap:7px;padding:9px;border-radius:17px}.memory-card{min-height:65px;border-radius:11px;gap:1px}.memory-card .drawn-icon{width:36px;height:36px}.card-back{width:42px;height:38px;border-radius:8px}.card-back .drawn-icon{width:27px;height:27px}.memory-card small{font-size:8px}.memory-board.pairs-5{gap:5px;padding:8px}.pairs-5 .memory-card{min-height:64px}.pairs-5 .memory-card .drawn-icon{width:31px;height:31px}.pairs-5 .card-back{width:34px;height:35px}.memory-feedback{font-size:11px;min-height:33px;margin:10px 2px 6px}.memory-math{padding:10px 12px 12px;border-radius:18px}.memory-math>p{font-size:10px}.memory-math .equation{font-size:35px;margin:7px 0;gap:8px;flex-wrap:nowrap}.memory-math .answer{height:48px;width:66px;font-size:33px;border-radius:13px}.memory-math>.primary{padding:7px 18px;min-height:36px;font-size:12px}.memory-math .keypad{margin-top:10px;gap:5px}.memory-math .keypad button{height:39px;min-height:39px;font-size:22px}.memory-footer{font-size:9px;margin:10px 0}.memory-permit{min-height:100px;padding:15px;font-size:15px}.memory-restart{padding:20px}.memory-restart p{font-size:12px}}
@media(prefers-reduced-motion:reduce){.memory-card{transition:none}}
