.gear-bench{margin:18px 0;background:repeating-linear-gradient(2deg,transparent 0 58px,#7b604414 59px 61px),linear-gradient(120deg,#dbc391,#efdfb6,#c6ad7d);border:1px solid #b49d70;border-radius:16px;padding:14px 10px 16px;box-shadow:inset 0 2px #fff2cc,0 7px 16px #294e4015}.gear-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:9px;color:#6a5d41;font-weight:700;letter-spacing:1px;padding:0 4px}.gear-heading span:last-child{font-size:11px;letter-spacing:0;text-align:right}.gear-machine{position:relative;width:100%;margin:7px 0}.gear-machine>svg{display:block;width:100%;height:100%}.gear-body,.gear-pick polygon{fill:#d0b36b;stroke:#7b683e;stroke-width:2}.gear-driver{fill:#adc398}.gear-output{fill:#e2bd6d}.gear-hub{fill:#526b4d;stroke:#f1d69a;stroke-width:2}.gear-spokes{fill:none;stroke:#d8c38b;stroke-width:4}.gear-pin{fill:#e9dbb2;stroke:#526647;stroke-width:2}.gear-empty{fill:#213f30;stroke:#d9c68e;stroke-width:2;stroke-dasharray:4 4}.gear-label{font:700 11px 'Segoe UI',sans-serif;fill:#4a533a}.gear-direction{font:700 24px 'Segoe UI',sans-serif;fill:#3c5c3d}.gear-shaft{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;min-width:44px;min-height:44px;border:2px dashed #fff0b499;background:transparent;border-radius:50%;cursor:pointer;touch-action:manipulation}.gear-shaft:hover:not(:disabled),.gear-drop-hover{background:#ffe6a444;outline:3px solid #ffe7a0;outline-offset:4px}.gear-shaft:focus-visible,.gear-pick:focus-visible{outline:3px solid #fff5cc;outline-offset:4px;box-shadow:0 0 0 7px #34543d}.gear-shaft:disabled{border-color:transparent;cursor:default}.gear-bench figcaption{font-size:12px;line-height:1.5;color:#4c5c3e;padding:0 5px}.gear-jammed figcaption{color:#8a4b2f}.gear-jammed .gear-machine>svg{filter:drop-shadow(0 0 3px #cd986844)}.gear-tray{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.gear-pick{position:relative;min-width:0;min-height:90px;padding:5px;background:#eee0b8;border:2px solid #d0bb84;border-radius:12px;display:grid;justify-items:center;cursor:grab;touch-action:none;color:#48613e}.gear-pick svg{width:65px;height:65px;pointer-events:none}.gear-pick span{font-size:11px;font-weight:700;pointer-events:none}.gear-pick.chosen{border-color:#496c45;box-shadow:inset 0 0 0 2px #a2b185;background:#e3dfb4}.gear-dragging{z-index:20;pointer-events:none;cursor:grabbing;filter:drop-shadow(0 9px 5px #29453188)}.gear-tools>p:first-child{font-size:12px;font-weight:700}.gear-tools .modal-actions{margin:14px 0 0}.gear-help{font-size:12px;color:#6e755e;line-height:1.6}.gear-turn{animation:gear-spin var(--gear-duration,4s) linear infinite;animation-direction:var(--gear-direction,normal);animation-play-state:paused;transform-origin:0 0}.gear-powered{animation-play-state:running}.gear-result:not(.gear-test-running) .gear-turn{animation-play-state:paused}.gear-result{text-align:left}.gear-result .gear-bench{margin-top:0}.gear-result>.btn{min-width:0!important;margin-bottom:18px}@keyframes gear-spin{to{transform:rotate(360deg)}}@media(max-width:500px){.gear-bench{margin-inline:-6px;padding:12px 6px}.gear-heading{font-size:8px}.gear-heading span:last-child{font-size:10px}.gear-tray{gap:6px}.gear-pick span{font-size:10px}.gear-bench figcaption{font-size:11px}.gear-tools .modal-actions .btn{font-size:11px}.gear-pick svg{width:59px;height:59px}}@media(prefers-reduced-motion:reduce){.gear-turn{animation:none!important}.gear-powered{filter:drop-shadow(0 0 2px #d9dfa3)}}

.gear-scroll{overflow-x:auto;overscroll-behavior-inline:contain;border-radius:8px}.gear-machine{min-width:290px}.gear-scroll:focus-visible{outline:2px solid #526f45;outline-offset:2px}.gear-scroll-hint{display:none;font-size:10px;color:#6c7259;margin:0 5px 8px}@media(max-width:360px){.gear-scroll-hint{display:block}}

.celebration-object:has(.gear-result){height:auto;animation:none}.celebration-object .gear-machine svg{filter:none}.repair-celebration .gear-result .gear-bench figcaption{max-width:none}

.celebration-object:has(.gear-result){margin-bottom:12px}
