.shape-page{max-width:940px;margin:auto;padding:18px 16px 48px;color:#302a22}.shape-game{padding:24px;border:2px solid #cdbfa9;border-radius:26px;background:#fffdf4;box-shadow:0 8px #e5dac5}.shape-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.shape-heading h1{font-size:clamp(24px,4vw,36px);line-height:1.4;margin:4px 0}.shape-heading>div>span{font-size:13px;color:#536044;font-weight:700}.shape-heading img{width:80px;height:80px;object-fit:contain}.shape-stagebar{display:flex;align-items:center;justify-content:space-between;gap:12px}.shape-stagebar h2{font-size:22px;margin:0;scroll-margin-top:90px}.shape-stagebar label{display:flex;align-items:center;gap:6px;font-size:12px}.shape-page select{min-height:44px;max-width:100%;border:1px solid #9a8c74;border-radius:12px;background:#fffdf4;color:#302a22;padding:8px;font:inherit}.kids-site main .shape-mission{font-size:16px!important;line-height:1.6;margin:12px 0 20px}.shape-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:22px;align-items:start}.shape-game h3{font-size:17px;margin:0 0 10px}.shape-page button{font:inherit;font-weight:700;min-height:44px;color:#302a22;border:1px solid #aa9a7e;border-radius:12px;background:#fffdf4;padding:8px 10px;cursor:pointer;touch-action:manipulation}.shape-page button:disabled{opacity:.5;cursor:default}.shape-page :is(button,select,summary):focus-visible{outline:3px solid #254d8a;outline-offset:3px}.shape-tray{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.shape-tray button{position:relative;display:flex;align-items:center;flex-direction:column;padding:12px 3px 6px;gap:4px;border:2px solid #ded3be;box-shadow:0 3px #ded3be;min-width:0;font-size:11px}.shape-tray button[aria-pressed=true]{border-color:#35634f;box-shadow:0 3px #35634f;background:#edf3df}.shape-piece-id{position:absolute;left:6px;top:2px;font-size:12px}.shape-icon{display:flex;align-items:center;justify-content:center;width:44px;height:46px}.shape-icon svg,.shape-preview svg{width:100%;height:100%}.shape-selection{display:flex;align-items:center;gap:10px;min-height:62px;font-size:13px;line-height:1.5;padding:8px 0}.shape-preview{width:46px;height:46px;flex-shrink:0}.shape-controls{display:flex;gap:8px}.shape-controls button{font-size:14px;flex:1}.shape-controls [data-shapes-rotate]{background:#35634f;color:#fff;border-color:#214b39}.shape-board-label{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px;margin-bottom:8px}.shape-board-label h3{margin:0;font-size:16px}.shape-board-label>span{font-size:12px}.shape-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:8px;border:2px solid #baa887;border-radius:18px;background:#f1ead9;box-shadow:0 5px #baa887}.shape-board button{display:block;aspect-ratio:1;min-width:0;min-height:0;padding:0;border:1px solid #d4c9b5;border-radius:0;background:#fcfaf3;position:relative}.shape-board button:nth-child(1){border-top-left-radius:8px}.shape-board button:nth-child(4){border-top-right-radius:8px}.shape-board button:nth-child(13){border-bottom-left-radius:8px}.shape-board button:nth-child(16){border-bottom-right-radius:8px}.shape-board button svg{display:block;width:100%;height:100%;pointer-events:none}.shape-board button:focus-visible{z-index:2;outline-offset:-3px}.shape-board .has-selected{outline:2px solid #35634f;outline-offset:-2px;z-index:1}.shape-status{border-radius:14px;background:#efeadb;padding:14px;margin-top:20px;font-size:16px;line-height:1.6}.shape-status[data-kind=success]{background:#e1efd9;border:1px solid #678249}.shape-status[data-kind=retry]{background:#fff0d8;border:1px solid #ac752e}.shape-result{text-align:center;margin-top:12px}.shape-result button{background:#35634f;color:#fff}.shape-actions{display:flex;justify-content:space-between;gap:8px;margin-top:14px;font-size:13px}.shape-hint{margin-top:16px;border-top:1px solid #ded3be;padding-top:12px}.shape-hint summary,.shape-about summary{cursor:pointer;min-height:44px;font-weight:700}.kids-site main .shape-hint p{font-size:14px!important}.shape-hint-board{display:grid;grid-template-columns:repeat(4,1fr);width:220px;max-width:100%;margin:10px auto;background:#fcfaf3}.shape-hint-board>div{aspect-ratio:1;border:1px solid #d4c9b5}.shape-hint-board svg{display:block;width:100%;height:100%}.shape-hint table{border-collapse:collapse;width:100%;font-size:13px}.shape-hint th,.shape-hint td{padding:8px 5px;border-bottom:1px solid #ded3be;text-align:left}.shape-hint caption{text-align:left;margin:10px 0;font-size:12px;line-height:1.6}.shape-bottom{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:16px;font-size:13px}.shape-about{padding:26px 8px;line-height:1.8}.kids-site main .shape-about p{font-size:14px!important}.shape-about a{display:inline-block;margin-top:14px;text-decoration:underline;text-underline-offset:4px}.shape-game [hidden]{display:none!important}@media(max-width:650px){.shape-page{padding:10px 8px 32px}.shape-game{padding:14px 10px;border-radius:20px}.shape-heading{margin-bottom:12px}.shape-heading img{width:56px;height:56px}.shape-heading h1{font-size:23px}.shape-stagebar{display:block}.shape-stagebar h2{font-size:20px}.shape-stagebar label{margin-top:6px}.kids-site main .shape-mission{font-size:14px!important;margin:10px 0 14px}.shape-workspace{display:flex;flex-direction:column;gap:16px}.shape-tools,.shape-canvas{width:100%}.shape-tray{grid-template-columns:repeat(4,minmax(0,1fr))}.shape-tray button{min-height:72px}.shape-selection{min-height:52px;padding:5px 0}.shape-preview{width:36px;height:36px}.shape-board{max-width:400px;margin:auto;padding:6px}.shape-board-label h3{font-size:14px}.shape-status{font-size:14px;padding:12px;margin-top:16px}.shape-hint table{font-size:11px}}@media(prefers-reduced-motion:reduce){.shape-game *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(max-width:650px){.shape-tray button{line-height:1.4}.shape-icon{height:36px;width:40px}.shape-stagebar{display:flex;align-items:center}.shape-stagebar h2{font-size:18px;flex:1}.shape-stagebar label{flex-direction:column;align-items:flex-start;width:132px;margin-top:0;font-size:11px}.shape-stagebar select{width:100%;font-size:12px}}@media(max-width:350px){.shape-stagebar{display:block}.shape-stagebar label{width:auto;flex-direction:row;align-items:center;margin-top:6px}.shape-stagebar select{width:auto}}.kids-site main .shape-tray .shape-piece-name{font-size:11px!important;line-height:1.4!important;white-space:nowrap}.kids-site main .shape-tray .shape-piece-id{font-size:12px!important;line-height:1.2!important}
