.variable-entry{display:flex;align-items:center;gap:18px;width:100%;text-align:left;background:#e9e1f1;padding:20px 26px;margin-bottom:30px;border-radius:24px}.variable-entry-icon{font-size:50px;color:#8861ac}.variable-entry strong{display:block;font-size:23px}.variable-entry small{display:block;margin-top:6px;color:#7a6984}.variable-entry>span:last-child{margin-left:auto;font-size:14px}.variable-examples{display:flex;gap:12px;flex-wrap:wrap;margin:25px 0}.variable-examples button{font-size:21px}.chosen-example{background:#e3d4ee!important;box-shadow:0 4px 0 #b5a0c7!important}.variable-symbol{color:#8b5eb0;font-weight:bold}.variable-layout{display:grid;grid-template-columns:200px 1fr;gap:24px}.variable-control-card{background:#eee7f3;border-radius:26px;padding:20px 16px;align-self:start}.variable-control-title{font-size:14px;color:#806f8c}.variable-control-title strong{display:block;color:#775295;font-size:27px;margin-top:9px}.variable-controller{position:relative;height:300px;touch-action:none;user-select:none;outline-offset:5px;margin-top:15px;cursor:ns-resize}.variable-tower{position:absolute;bottom:16px;left:53px;width:66px;display:flex;flex-direction:column-reverse;gap:3px}.variable-unit{height:21px;min-height:21px;border:1px dashed #b8a8c7;border-radius:5px;background:#ffffff44}.variable-unit.filled{background:#a17ac1;border:1px solid #8d64af;box-shadow:inset 0 2px #ffffff35}.variable-ruler span{position:absolute;left:25px;font-size:12px;line-height:1;transform:translateY(50%);color:#9985a8}.variable-resize-handle{position:absolute;left:38px;display:flex;justify-content:space-between;align-items:center;width:96px;height:42px;padding:0 15px;background:#765194;color:#fff;border-radius:15px;box-shadow:0 4px 0 #5b3976;transform:translateY(50%);z-index:2;font-size:24px}.variable-release-hint{font-size:14px;min-height:45px;color:#73528a;margin-top:15px}.variable-control-card small{display:block;color:#8d7c96;font-size:12px;line-height:1.8}.expression-pair{display:grid;grid-template-columns:1fr 1fr;gap:18px}.expression-card{background:#fffaf1;border-radius:23px;padding:20px;overflow:hidden}.expression-heading{display:flex;align-items:center;justify-content:space-between}.expression-heading>span{font-size:13px;color:#84907a}.expression-heading strong{font-size:30px}.expression-steps{display:flex;flex-direction:column;gap:6px;margin:18px 0;color:#6e7b63;font-size:14px}.expression-steps b{font-size:18px;color:#4b6047}.expression-tray{display:flex;flex-wrap:wrap;gap:5px;align-content:flex-start;min-height:110px;padding:12px 0}.experiment-cell{display:block;width:25px;height:25px;border-radius:6px;background:var(--block-color,#8fba74);border:2px solid var(--block-edge,#749b5e);box-sizing:border-box;flex-shrink:0}.experiment-cell.variable-cell{background:#a17ac1;border-color:#875da8}.expression-card:not(.playing) .leaving-cell{opacity:.15;background:transparent;border-style:dashed}.expression-outcome{font-size:15px;color:#607350;min-height:30px}.expression-outcome b{font-size:23px}.playing .joining-cell{animation:variable-join .75s both}.playing .leaving-cell{animation:variable-leave .75s both}.insufficient .expression-outcome{color:#ae6f43}.variable-compare{background:#e5edda;border-radius:23px;padding:20px;margin-top:18px;text-align:center;min-height:170px}.compare-title{font-size:13px;color:#7a8a70;letter-spacing:2px}.result-pair{display:flex;gap:35px;justify-content:center;align-items:flex-end;margin:15px 0}.result-pair>div:not(.compare-sign){display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-height:165px}.result-column{display:flex;flex-direction:column;gap:2px;justify-content:flex-end;min-height:5px}.result-column i{display:block;width:42px;height:10px;border-radius:3px;background:#759c60}.result-pair strong{font-size:23px;margin-top:8px}.compare-sign{font-size:35px;align-self:center;color:#76876e}.comparison-caption{font-size:14px;margin:10px 0;color:#627950}.equal-found{color:#365e28;font-weight:bold}.verified-equation{font-size:23px;color:#365d2b;margin-top:12px}.compare-wait{padding:45px 15px;color:#799168;line-height:1.8}.variable-bottom{display:grid;grid-template-columns:1fr 220px;gap:25px;margin:30px 0}.variable-bottom h2{font-size:22px}.variable-bottom>div{display:flex;flex-direction:column;gap:12px;justify-content:center}.variable-history-row{display:grid;grid-template-columns:110px 1fr;gap:8px;margin:10px 0;background:#fffaf0;border-radius:16px;padding:14px;color:#6d7d65;font-size:14px}.variable-history-row b{grid-row:span 2;color:#87609e}.zero-label{font-size:13px;color:#9a9d8d}@keyframes variable-join{0%,15%{opacity:.2;transform:translateY(-40px)}85%,100%{opacity:1;transform:translateY(0)}}@keyframes variable-leave{0%,15%{opacity:1;transform:translateY(0)}85%,100%{opacity:.15;transform:translateY(30px)}}@media(max-width:720px){.variable-layout{grid-template-columns:150px 1fr;gap:12px}.variable-control-card{padding:16px 8px}.variable-tower{left:42px}.variable-resize-handle{left:27px}.variable-ruler span{left:14px}.expression-pair{grid-template-columns:1fr;gap:12px}.expression-card{padding:15px}.expression-tray{min-height:70px}.variable-bottom{grid-template-columns:1fr}.variable-entry{padding:16px;gap:12px}.variable-entry>span:last-child{display:none}.variable-entry strong{font-size:20px}.result-pair{gap:20px}.result-column i{width:30px}.variable-examples button{font-size:17px;padding:10px 13px}}@media(prefers-reduced-motion:reduce){.playing .joining-cell,.playing .leaving-cell{animation:none}}
.scale-equations{display:flex;justify-content:space-around;font-size:24px;font-weight:700;margin:17px 0 0}.equation-balance{display:block;width:100%;height:auto;max-height:340px;overflow:visible}.balance-beam{transform:rotate(var(--balance-angle));animation:balance-settle .7s cubic-bezier(.25,.8,.3,1) both;transform-origin:0 0}.balance-pan{transform:rotate(var(--pan-angle));animation:pan-settle .7s cubic-bezier(.25,.8,.3,1) both;transform-origin:0 0}@keyframes balance-settle{from{transform:rotate(var(--balance-before))}to{transform:rotate(var(--balance-angle))}}@keyframes pan-settle{from{transform:rotate(var(--pan-before))}to{transform:rotate(var(--pan-angle))}}@media(prefers-reduced-motion:reduce){.balance-beam,.balance-pan{animation:none}}@media(max-width:720px){.variable-compare{padding:14px 6px}.scale-equations{font-size:19px}}
