.bubble-detail{max-width:860px;margin:0 auto;padding:28px 30px 22px;overflow:hidden;background:#fbfaf3}
.drift-heading{text-align:center}.drift-heading h1{font-size:30px;font-weight:400;letter-spacing:2px;margin:10px 0}.drift-heading p{font-size:14px;color:var(--muted);line-height:1.8;margin:0 0 20px}
.drift-toolbar{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:0 0 16px}.drift-toolbar label{display:flex;align-items:center;gap:8px;font-size:13px;color:#75836a}.drift-toolbar select{width:auto;min-height:42px;border-color:#dde4d1;background:#f6f6eb;padding:7px 28px 7px 10px}.drift-toolbar .btn{min-height:42px;padding:8px 13px;font-size:13px}
.drift-stage{position:relative;height:clamp(340px,51dvh,510px);isolation:isolate;overflow:hidden;border:1px solid #dce4d1;border-radius:24px;background:radial-gradient(ellipse at 18% 22%,#eff5df 0,transparent 50%),radial-gradient(ellipse at 80% 80%,#e5efee 0,transparent 53%),#f6f7ee;box-shadow:inset 0 2px 15px #536c4010;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.drift-scene{position:absolute;inset:0;pointer-events:none;opacity:.55}.drift-scene i{position:absolute;display:block;width:160px;height:230px;border:1px solid #a8b9964a;border-radius:90% 10% 85% 15%;transform:rotate(-25deg);bottom:-100px;left:-60px}.drift-scene i:nth-child(2){left:auto;right:-70px;bottom:auto;top:-85px;transform:rotate(40deg)}.drift-scene i:nth-child(3){width:75px;height:75px;border:1px solid #c8c59c44;border-radius:50%;top:20%;left:68%;transform:none}
.drift-bubble{position:absolute;top:0;left:0;display:block;padding:0;border:0;background:none;border-radius:50%;touch-action:none;cursor:pointer;will-change:transform;opacity:0;transition:opacity .45s;outline-offset:4px;-webkit-tap-highlight-color:transparent}
.drift-bubble.is-ready{opacity:1}.drift-bubble:focus-visible{outline:2px dashed #557c61;z-index:3}.drift-bubble.is-pressed{z-index:4}.drift-skin{position:absolute;inset:3px;display:block;border-radius:50%;border:1px solid hsla(var(--bubble-hue),38%,67%,.6);background:radial-gradient(ellipse at 30% 23%,#ffffffed 0,#ffffff9e 12%,#ffffff08 38%),radial-gradient(ellipse at 70% 82%,hsla(var(--bubble-hue),54%,81%,.48),transparent 68%),hsla(var(--bubble-hue),60%,92%,.2);box-shadow:inset 1px 2px 5px #fffdf6dd,inset -2px -3px 7px hsla(var(--bubble-hue),44%,64%,.22),0 5px 10px #576e3e0d;transition:transform .16s cubic-bezier(.2,.7,.4,1);pointer-events:none}
.drift-shine{position:absolute;top:15%;left:18%;width:28%;height:15%;border-radius:50%;background:#ffffffd9;transform:rotate(-35deg);filter:blur(.5px)}
.drift-arc{position:absolute;inset:9%;border-radius:50%;border-right:2px solid #fff8;border-bottom:1px solid hsla(var(--bubble-hue),45%,73%,.35);transform:rotate(12deg);opacity:.7;animation:drift-shimmer 3.2s ease-in-out infinite;animation-delay:var(--glow-delay)}
.drift-bubble.is-pressed .drift-skin{transform:rotate(var(--press-tilt,0deg)) scale(1.12,.7);box-shadow:inset 2px 4px 14px hsla(var(--bubble-hue),40%,59%,.2),0 1px 5px #536b2920}
.drift-bubble.is-popped{pointer-events:none;z-index:5}.drift-bubble.is-popped .drift-skin{animation:drift-pop .35s ease-out forwards}.drift-ring{position:absolute;inset:9%;border:2px solid hsla(var(--bubble-hue),40%,61%,.65);border-radius:50%;opacity:0;pointer-events:none}.drift-spark{position:absolute;width:5px;height:7px;top:50%;left:50%;margin:-3px;border-radius:70% 30% 65% 35%;background:hsla(var(--bubble-hue),45%,66%,.8);opacity:0;pointer-events:none}.is-popped .drift-ring{animation:drift-ripple .6s ease-out forwards}.is-popped .drift-spark{animation:drift-scatter .6s ease-out forwards}
.drift-paused{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);z-index:7;pointer-events:none;font-size:12px;white-space:nowrap;padding:7px 12px;border-radius:20px;background:#fafbf3de;color:#748566}.drift-paused[hidden]{display:none}.is-paused .drift-arc{animation-play-state:paused}
.drift-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:15px;color:#829074}.drift-count{font-size:14px;margin:0;white-space:nowrap}.drift-count strong{font-size:22px;color:#637b50;font-weight:400;padding:0 4px}.drift-footer>span{font-size:11px;line-height:1.8;text-align:right}
@keyframes drift-shimmer{0%,100%{opacity:.5}50%{opacity:1}}
@keyframes drift-pop{0%{transform:scale(1.1,.74);opacity:1}35%{transform:scale(1.17);opacity:.6}100%{transform:scale(1.24);opacity:0}}
@keyframes drift-ripple{0%{transform:scale(.75);opacity:.65}100%{transform:scale(1.7);opacity:0}}
@keyframes drift-scatter{0%{transform:translate(0,0) scale(.4);opacity:.8}100%{transform:translate(var(--dx),var(--dy)) scale(.15) rotate(90deg);opacity:0}}
@media(max-width:680px){.bubble-detail{padding:20px 13px 16px;border-radius:18px}.drift-heading h1{font-size:25px;margin-top:9px}.drift-heading p{font-size:12px;margin-bottom:16px}.drift-toolbar{gap:7px;margin-bottom:12px}.drift-toolbar label{font-size:0;gap:0}.drift-toolbar select{font-size:13px;width:108px;padding-right:23px;min-height:40px}.drift-toolbar .btn{font-size:12px;padding:7px 9px;min-height:40px}.drift-stage{border-radius:19px;height:clamp(270px,40dvh,380px)}.drift-footer{align-items:flex-start;gap:6px}.drift-count{font-size:12px}.drift-count strong{font-size:20px}.drift-footer>span{font-size:10px;max-width:145px}}
@media(prefers-reduced-motion:reduce){.drift-arc{animation:none}.drift-bubble,.drift-skin{transition:none}.drift-bubble.is-popped .drift-skin{animation:none;opacity:0}.is-popped .drift-ring,.is-popped .drift-spark{animation:none}}
