/* Real movable beads rendered in the reference's smoky crystal / yellow palette. */
.abacus-stage.interactive-stage{width:470px;height:350px;transform:translate3d(var(--hero-x,0px),var(--hero-y,0px),0) rotate(calc(-9deg + var(--hero-turn,0deg)));filter:drop-shadow(12px 28px 18px #121c302e)}
.interactive-stage .abacus{padding:35px 14px 30px;border:17px solid #333942;border-top-color:#616971;border-left-color:#858c91;border-right-color:#1c2027;border-bottom-color:#20242b;border-radius:22px;background:linear-gradient(125deg,#ffffff66,#c2d1e525 55%,#71839b20);backdrop-filter:blur(8px);box-shadow:inset 0 0 0 2px #ffffffb3,inset 4px 4px 8px #17191d60,1px 1px 0 2px #b4b9c0,5px 7px 0 #363c45,8px 11px 0 #191d24,11px 14px 0 #10141a;transform:rotateY(-12deg) rotateX(13deg)}
.interactive-stage .abacus:before{content:'';position:absolute;pointer-events:none;inset:-16px;border-radius:20px;border-top:3px solid #ffffffb3;border-left:2px solid #ffffff7d;border-bottom:1px solid #ffffff70;background:linear-gradient(122deg,transparent 15%,#ffffff33 16%,transparent 18%,transparent 70%,#ffffff40 71%,transparent 73%)}
.interactive-stage .rods{gap:3px}.interactive-stage .rod{width:39px;flex:1}.interactive-stage .rod:before{width:4px;background:linear-gradient(90deg,#454952,#fff 48%,#89909b 65%,#303740);box-shadow:2px 2px 3px #15191e33}
.interactive-stage .bead,.interactive-stage .rod:nth-child(2n) .bead{width:41px;height:29px;border-radius:45% 45% 48% 48%;clip-path:polygon(43% 0,57% 0,69% 22%,97% 63%,100% 77%,91% 90%,65% 100%,35% 100%,9% 90%,0 77%,3% 63%,31% 22%);background:conic-gradient(from 180deg at 50% 28%,#ffe152,#fff79b 17%,#ffc400 30%,#b98300 42%,#fff5ab 50%,#ffe71e 60%,#c29300 72%,#fff798 86%,#ffe152);box-shadow:inset 0 -5px 4px #9a66008c,inset 0 2px 2px #fffed1;filter:drop-shadow(1px 3px 2px #38301e55);transition:top .3s cubic-bezier(.2,.85,.25,1),filter .2s,scale .2s}
.interactive-stage .bead:after{left:5px;right:5px;top:19px;width:auto;height:5px;border-radius:50%;background:linear-gradient(90deg,transparent,#fffddfa6,transparent);box-shadow:0 2px 1px #ffd900}
.interactive-stage .bead:hover{filter:brightness(1.14) drop-shadow(0 0 4px #ffe577)}.interactive-stage .bead:focus-visible{outline:0;filter:brightness(1.2) drop-shadow(0 0 4px #165bc6);background:#fff6ac}.interactive-stage .bead[aria-pressed=true]{filter:brightness(1.07) drop-shadow(1px 3px 2px #38301e55)}
.interactive-stage .crossbar{top:110px;height:12px;left:0;right:0;background:linear-gradient(#fff,#dce0e5 35%,#949da9 75%,#e4e8ed);box-shadow:0 4px 0 #59616e,0 6px 5px #15192340;border-top:1px solid #fff}.interactive-stage .engraving,.interactive-stage .frame-bottom{color:#eef0f4}
.interactive-stage .rod:after{content:attr(data-digit);position:absolute;bottom:-24px;font-size:9px;color:#f4e9ba;z-index:2;font-variant-numeric:tabular-nums}
.hero-art .number-card{bottom:48px;right:-7px;gap:10px;padding:13px 16px}.hero-art .number-card output{font-size:22px;letter-spacing:1px;min-width:56px;max-width:170px;font-variant-numeric:tabular-nums}.hero-art .number-card small{font-size:9px}#reset-abacus{width:34px;height:34px;border:1px solid #ccdbef;border-radius:50%;background:#ffffffa8;color:#214b7e;font-size:23px;line-height:1;transition:background .2s}#reset-abacus:hover{background:white}.hero-art .top-label{top:40px}
@media(max-width:480px){.hero-art .number-card{right:-8px;bottom:25px}.hero-art .number-card output{font-size:21px}.hero-art .top-label{top:0}.abacus-stage.interactive-stage{width:460px}}
@media(prefers-reduced-motion:reduce),(hover:none){.abacus-stage.interactive-stage{transform:rotate(-9deg)}}
