.pyth-scene{display:block;width:100%;height:auto;max-height:580px;font-family:system-ui,sans-serif}.pyth-controls{padding:16px;border:1px solid #d4cbb6;border-radius:14px;background:#fffcf4}.pyth-controls p{margin:8px 0;line-height:1.55}.pyth-controls label{display:block;font-weight:650;margin:10px 0}.pyth-controls input[type=range]{display:block;width:100%;min-height:36px;accent-color:#287d78}.pyth-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.pyth-buttons button{min-height:44px;border:1px solid #b8c6bd;border-radius:8px;background:#fffdf7;padding:9px 12px;color:#263e48;font:inherit;cursor:pointer}.pyth-buttons button[aria-pressed=true]{background:#daeae2;border:2px solid #287d78}.pyth-buttons button:disabled{opacity:.55;cursor:default}.pyth-buttons button:focus-visible,.pyth-scene [role=button]:focus-visible{outline:3px solid #c79135;outline-offset:3px}.pyth-readout{border-left:4px solid #287d78;padding:9px 12px;background:#edf3ed;font-size:1rem;min-height:48px}.pyth-notebook{margin-top:12px;background:#f5efdf;padding:12px;border-radius:10px}.pyth-notebook ul{margin:6px 0 0;padding-left:22px}.pyth-notebook li{margin:5px 0;line-height:1.5}.pyth-scene [data-experiment-action]{cursor:pointer}.pyth-scene [data-experiment-action]:hover{filter:brightness(.93)}.pyth-discovery-figure{padding:16px;background:#fcf7ea;display:flex;flex-direction:column;justify-content:center;min-width:0}.pyth-discovery-figure svg{width:100%;height:auto}.pyth-discovery-figure figcaption{padding:12px;color:#526870;font-size:.95rem}.chapter-storybook:has(.pyth-discovery-figure) .chapter-discovery{border:2px solid #287d78;background:#edf5ed;padding:20px;margin:16px 0}.chapter-storybook:has(.pyth-discovery-figure) .chapter-discovery strong{font-size:1.15rem}.chapter-storybook:has(.pyth-discovery-figure) .chapter-discovery p{font-size:1.12rem;line-height:1.65}.action-task[data-chapter=pythagoras] .adventure-discovery{border:2px solid #287d78;padding:20px}.action-task[data-chapter=pythagoras] .adventure-story-art{background:#fcf7ea;padding:14px;display:flex;align-items:center}.action-task[data-chapter=pythagoras] .adventure-story-art svg{width:100%;height:auto}.level-lab:has(.pyth-controls) .level-score-note{line-height:1.6}.pyth-controls output{float:right;font-variant-numeric:tabular-nums;color:#287d78}.pyth-controls [data-pyth-live]{margin-top:10px}@media(max-width:700px){.pyth-controls{padding:12px}.pyth-buttons button{flex:1 1 130px}.pyth-discovery-figure{padding:6px}.chapter-storybook:has(.pyth-discovery-figure){display:flex;flex-direction:column}.chapter-storybook:has(.pyth-discovery-figure) .chapter-story-page{order:-1}.pyth-notebook{padding:10px}.pyth-controls output{float:none;margin-left:10px}}
@media(prefers-reduced-motion:no-preference){.pyth-scene polygon,.pyth-scene rect{transition:fill .18s,opacity .25s}}

.chapter-storybook:has(.pyth-discovery-figure) .chapter-discovery strong,.chapter-storybook:has(.pyth-discovery-figure) .chapter-discovery p{color:#274c43}.action-task[data-chapter=pythagoras] .adventure-discovery strong,.action-task[data-chapter=pythagoras] .adventure-discovery p{color:#274c43}
@media(max-width:700px){.chapter-storybook:has(.pyth-discovery-figure){padding:16px;gap:10px}.chapter-storybook:has(.pyth-discovery-figure) .chapter-story-page{display:contents}.chapter-storybook:has(.pyth-discovery-figure) .chapter-story-heading{order:0}.chapter-storybook:has(.pyth-discovery-figure) h2{order:1}.chapter-storybook:has(.pyth-discovery-figure) .chapter-discovery{order:2}.chapter-storybook:has(.pyth-discovery-figure) .pyth-discovery-figure{order:3;margin:0}.chapter-storybook:has(.pyth-discovery-figure) .chapter-beats{order:4}.chapter-storybook:has(.pyth-discovery-figure) .chapter-coda{order:5}.chapter-storybook:has(.pyth-discovery-figure) .chapter-story-actions{order:6}.chapter-storybook:has(.pyth-discovery-figure) .chapter-story-note{order:7}.action-task[data-chapter=pythagoras] .adventure-story--after{display:flex;flex-direction:column;padding:16px;gap:10px}.action-task[data-chapter=pythagoras] .adventure-story-copy{display:contents}.action-task[data-chapter=pythagoras] .adventure-kicker{order:0}.action-task[data-chapter=pythagoras] .adventure-story--after h2{order:1}.action-task[data-chapter=pythagoras] .adventure-discovery{order:2}.action-task[data-chapter=pythagoras] .adventure-story-art{order:3}.action-task[data-chapter=pythagoras] .adventure-story-paragraph{order:4}.action-task[data-chapter=pythagoras] .adventure-story-actions{order:5}.action-task[data-chapter=pythagoras] .adventure-story-footnote{order:6}}
