.mechanics-demo{scroll-margin-top:100px}:is(.mechanics-demo button:focus-visible,.mechanics-demo summary:focus-visible){outline-offset:3px;outline:3px solid #cbb7ff}.mechanics-demo button{touch-action:manipulation}.mechanics-demo .study-status{overflow-wrap:anywhere}.mechanics-demo .study-note{line-height:1.7}.mechanics-examples{gap:10px;padding:0;list-style:none;display:grid}.mechanics-examples li{background:#101d2a;border:1px solid #36515f;border-radius:10px;flex-wrap:wrap;align-items:center;gap:4px 12px;min-width:0;padding:12px 16px;display:flex}.mechanics-examples a{color:#8de1ce;overflow-wrap:anywhere;align-items:center;min-height:44px;font-weight:700;display:inline-flex}.mechanics-examples li>span{color:#b5c4d2;font-size:.85rem}.sort-lab-board{background:#0b1520;border:1px solid #36515f;border-radius:14px;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;width:100%;max-width:400px;margin:28px auto;padding:16px;display:grid}.sort-tube{color:#eef7f8;min-width:0;min-height:220px;font:inherit;cursor:pointer;background:#142633;border:1px solid #547280;border-radius:10px;padding:8px 5px 12px}.sort-tube[aria-pressed=true]{background:#253044;border-color:#cbb7ff}.sort-tube-name{color:#b5c4d2;margin-bottom:10px;font-weight:750;display:block}.sort-tube-well{border-bottom:3px solid #668894;border-left:3px solid #668894;border-right:3px solid #668894;border-radius:0 0 18px 18px;flex-direction:column;align-items:center;gap:7px;min-height:154px;padding:7px 4px;display:flex}.sort-ball{color:#547280;border:2px solid #547280;border-radius:50%;justify-content:center;align-items:center;width:clamp(32px,5vw,48px);height:clamp(32px,5vw,48px);font-size:1rem;display:flex}.sort-ball[data-colour=coral]{background:#ff8077;border-color:#ff8077}.sort-ball[data-colour=mint]{background:#8de1ce;border-color:#8de1ce}.sort-ball[data-colour=gold]{background:#f2c879;border-color:#f2c879}.sort-ball[data-colour=empty]{background:0 0;border-style:dashed}.sort-solution{background:#102522;border:1px solid #8de1ce60;border-radius:12px;margin-top:20px;padding:20px}.sort-solution>strong{color:#8de1ce;font-size:1.2rem}.sort-solution ol{color:#e4f6f1;flex-wrap:wrap;gap:8px 20px;padding-left:24px;display:flex}.sort-solution li{padding-left:4px}.sort-solution p{color:#bfd3d4}.difference-boards{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:26px 0 20px;display:grid}.difference-scene{min-width:0;background:#0b1520;border:1px solid #36515f;border-radius:14px;min-inline-size:0;margin:0;padding:14px}.difference-scene legend{color:#c6d4de;padding:0 8px;font-weight:700}.difference-grid{gap:7px;display:grid}.difference-cell{aspect-ratio:1;cursor:pointer;background:#142633;border:1px solid #36515f;border-radius:8px;justify-content:center;align-items:center;min-width:0;min-height:44px;padding:5px;display:flex}.difference-cell svg{width:100%;max-width:52px;height:100%;max-height:52px;display:block}.difference-cell[data-tone=mint]{color:#8de1ce}.difference-cell[data-tone=lavender]{color:#cbb7ff}.difference-cell[data-tone=coral]{color:#ff8077}.difference-cell[data-tone=gold]{color:#f2c879}.difference-cell[data-found=true]{background:#193b3a;border:3px solid #8de1ce}.difference-cell[data-wrong=true]{border:3px solid #ff8077}.difference-cell:disabled{cursor:default;opacity:1}.difference-timer{color:#b5c4d2;align-items:baseline;gap:10px;margin:18px 0;display:flex}.difference-timer output{color:#8de1ce;font-variant-numeric:tabular-nums;font-size:clamp(2.5rem,8vw,4rem);font-weight:750;line-height:1}.tycoon-balance{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0;display:grid}.tycoon-balance div{background:#101d2a;border:1px solid #36515f;border-radius:10px;min-width:0;padding:16px}.tycoon-balance dt{color:#9fb3c1;font-size:.8rem}.tycoon-balance dd{color:#8de1ce;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:6px 0 0;font-size:clamp(1.25rem,4vw,1.8rem);font-weight:750}.tycoon-items{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0;display:grid}.tycoon-item{background:#101d2a;border:1px solid #36515f;border-radius:12px;min-width:0;padding:18px}.tycoon-item h3{color:#eef7f8;margin:0;font-size:1.1rem}.tycoon-item p{color:#b5c4d2;font-size:.86rem;line-height:1.55}.tycoon-item .tycoon-next-cost{color:#f2c879;font-weight:700}.tycoon-item button{color:#eef7f8;width:100%;min-height:48px;font:inherit;cursor:pointer;background:#172c38;border:1px solid #6a8f9c;border-radius:8px;padding:10px;font-weight:650}.tycoon-curve-figure{margin:26px 0 0}.tycoon-curves{background:#0b1520;border:1px solid #36515f;border-radius:12px;width:100%;height:auto;display:block}.tycoon-curves text{fill:#a9bdcb;font-size:12px}.tycoon-curves .curve-axis{stroke:#547280;stroke-width:1px}.tycoon-curves polyline{fill:none;stroke-width:3px;stroke-linecap:round;stroke-linejoin:round;opacity:.55}.tycoon-curves polyline[data-active=true]{stroke-width:5px;opacity:1}.curve-linear{stroke:#8de1ce}.curve-exponential{stroke:#ff8077}.tycoon-curves .curve-label-linear{fill:#8de1ce;font-weight:700}.tycoon-curves .curve-label-exponential{fill:#ff8077;font-weight:700}.tycoon-curve-figure figcaption{color:#b5c4d2;margin-top:10px;font-size:.85rem;line-height:1.6}.memory-sequence{background:#0b1520;border:1px solid #36515f;border-radius:14px;flex-wrap:wrap;justify-content:center;gap:10px;min-height:94px;margin:26px 0;padding:18px;display:flex}.memory-symbol,.memory-placeholder{border:1px solid #547280;border-radius:10px;flex:0 0 58px;justify-content:center;align-items:center;width:58px;height:58px;display:flex}.memory-symbol{color:#0b2525;background:#8de1ce;font-size:2rem}.memory-placeholder{color:#8fa9b8;border-style:dashed;font-weight:700}.memory-sequence[data-phase=incorrect] .memory-symbol{background:#f2c879}.memory-pad{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:480px;margin:22px auto;display:grid}.memory-pad button{color:#eef7f8;min-width:0;min-height:76px;font:inherit;cursor:pointer;background:#172c38;border:1px solid #6a8f9c;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;padding:8px;display:flex}.memory-pad button>span{color:#8de1ce;font-size:1.7rem;line-height:1}.memory-pad small{margin-top:6px;font-size:.75rem}@media (max-width:760px){.tycoon-items{grid-template-columns:1fr}.tycoon-item{grid-template-columns:1fr 1fr;align-items:center;gap:4px 16px;display:grid}.tycoon-item h3,.tycoon-item button{grid-column:1/-1}.tycoon-item p{margin:6px 0}}@media (max-width:699px){.difference-boards{grid-template-columns:1fr}.difference-scene{width:100%;max-width:360px;margin-inline:auto}.tycoon-balance{gap:7px}.tycoon-balance div{padding:12px 8px}}@media (max-width:420px){.sort-lab-board{gap:6px;padding:9px}.sort-tube{min-height:188px;padding-inline:3px}.sort-tube-well{min-height:130px;padding-inline:2px}.sort-ball{width:32px;height:32px}.memory-sequence{gap:7px;padding:12px 8px}.memory-symbol,.memory-placeholder{flex-basis:48px;width:48px;height:48px}.memory-pad{gap:7px}.memory-pad button{min-height:70px}}@media (prefers-reduced-motion:reduce){.mechanics-demo,.mechanics-demo *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
