.magic-sphere-page{max-width:620px;margin:auto;text-align:center;color:#f8eedc}.sphere-intro{font:16px/1.6 Arial,sans-serif;color:#eadbea}.sphere-stage{position:relative;isolation:isolate;width:min(280px,76vw);margin:26px auto 12px;padding-bottom:36px}.sphere-orb{position:relative;z-index:1;display:block;width:100%;height:auto;aspect-ratio:1;border-radius:50%;border:1px solid #eee3ff85;overflow:hidden;padding:0;cursor:pointer;background:radial-gradient(ellipse at 28% 20%,#ffffffb0 0%,#dbcbff40 14%,transparent 34%),radial-gradient(ellipse at 52% 62%,#c5a0ef80,transparent 58%),radial-gradient(circle at 45% 40%,#9983bb70 0%,#7a52b0a0 45%,#33204dbb 74%,#170d28 100%);box-shadow:inset -13px -16px 30px #15082d99,inset 4px 4px 22px #fff6,0 0 36px #a66af43b,0 18px 28px #160b2859;isolation:isolate;transition:box-shadow .4s,transform .4s}.sphere-orb:disabled{cursor:default;opacity:1}.sphere-orb:focus-visible{outline:3px solid #f1d18b;outline-offset:6px}.sphere-cloud{position:absolute;inset:18% -10% -10%;z-index:-1;border-radius:50%;background:radial-gradient(ellipse at 25% 40%,#f4d7ff85,transparent 45%),radial-gradient(ellipse at 75% 55%,#ab8deca0,transparent 47%);filter:blur(15px);animation:sphere-mist 9s ease-in-out infinite alternate}.sphere-cloud-two{inset:30% -15% -5%;animation-direction:alternate-reverse;animation-duration:12s;background:radial-gradient(ellipse,#faf0ffc0,transparent 60%);opacity:.35}.sphere-inner-star{position:absolute;left:0;right:0;top:33%;font:60px/1 Georgia,serif;color:#fdf2ffb0;text-shadow:0 0 16px #eabaff;animation:sphere-glow 4s ease-in-out infinite}.sphere-glint{position:absolute;top:12%;left:15%;width:32%;height:13%;border-radius:50%;background:linear-gradient(160deg,#fff9,#fff0);transform:rotate(-28deg);filter:blur(2px)}.sphere-stand{position:absolute;bottom:0;left:12%;right:12%;height:48px;z-index:0;border-radius:50% 50% 25% 25%;border:1px solid #d4b272;background:linear-gradient(#7d593e,#e0bd7e 17%,#8d674b 30%,#382337 72%,#b79560);box-shadow:0 10px 20px #1a0b2870}.sphere-star{position:absolute;z-index:2;color:#e4c477;font-size:24px;pointer-events:none}.sphere-star-a{left:-9%;top:22%}.sphere-star-b{right:-7%;top:65%;font-size:18px}.sphere-orb.is-reading{animation:sphere-reveal 1.6s ease-in-out;box-shadow:inset 0 0 45px #fff8,0 0 65px #ba92ffc0}.sphere-orb.is-reading .sphere-cloud{animation-duration:1.2s}.sphere-counter{font:14px/1.5 Arial,sans-serif;color:#efd096;margin:15px 0}.sphere-action{border:1px solid #cfaf72;border-radius:12px;background:linear-gradient(135deg,#6b438b,#3a2450);color:#fff0d5;min-height:46px;padding:12px 22px;font:700 15px Arial,sans-serif}.sphere-action:disabled{opacity:.65}.sphere-message{min-height:110px;border:1px solid #c7a36380;border-radius:16px;padding:18px;margin:22px 0 15px;background:#2c193f80;box-shadow:inset 0 0 24px #a879d00d}.sphere-message h2{font:21px/1.3 Georgia,serif;color:#efd096;margin:0 0 12px}.sphere-message p{font:16px/1.7 Arial,sans-serif;margin:0;color:#f9edda}.sphere-history{text-align:left;border:1px solid #ffffff22;border-radius:12px;padding:12px;background:#2b183c60}.sphere-history summary{cursor:pointer;color:#efd096;min-height:26px;font:14px/1.5 Arial,sans-serif}.sphere-history article{padding:14px 0;border-top:1px solid #ffffff20}.sphere-history strong{font:14px Arial,sans-serif;color:#efd096}.sphere-history p{font:14px/1.6 Arial,sans-serif;color:#e6dce9}.sphere-note{font:12px/1.6 Arial,sans-serif;color:#c9b8d7;margin:20px 0}@keyframes sphere-mist{from{transform:rotate(-15deg) translate(-6px,8px) scale(.95)}to{transform:rotate(15deg) translate(8px,-6px) scale(1.1)}}@keyframes sphere-glow{50%{opacity:.55;text-shadow:0 0 25px #fff}}@keyframes sphere-reveal{50%{transform:scale(1.04);filter:brightness(1.5)}}@media(prefers-reduced-motion:reduce){.sphere-cloud,.sphere-inner-star,.sphere-orb.is-reading{animation:none}.sphere-orb{transition:none}}@media(max-width:360px){.sphere-stage{width:220px;margin-top:20px}.sphere-message{padding:14px}.sphere-message p{font-size:15px}.mobile-nav button{font-size:12px;gap:3px}.mobile-nav span{font-size:19px}}

/* Clear white glass with the reading floating inside. */
.sphere-stage{width:min(360px,100%);margin:62px auto 12px;overflow:visible}
.sphere-orb{background:radial-gradient(ellipse at 28% 18%,#fff 0%,#ffffffcc 12%,transparent 35%),radial-gradient(ellipse at 65% 72%,#f7f4ffbb,transparent 60%),radial-gradient(circle at 45% 40%,#fafbffcc 0%,#e8e8f5bb 48%,#b5b6c980 74%,#737687aa 100%);border-color:#ffffffdd;box-shadow:inset -14px -18px 32px #6c668775,inset 5px 5px 24px #fff,0 0 35px #e7e4ff50,0 18px 28px #160b2859}
.sphere-cloud{background:radial-gradient(ellipse at 25% 40%,#ffffffdd,transparent 45%),radial-gradient(ellipse at 75% 55%,#f3f4ffa0,transparent 47%)}
.sphere-cloud-two{background:radial-gradient(ellipse,#fff,transparent 60%);opacity:.7}
.sphere-glint{background:linear-gradient(160deg,#fffe,#fff0);width:35%;height:14%}
.sphere-message{box-sizing:border-box;position:absolute;z-index:3;left:13%;right:13%;top:18%;max-height:54%;min-height:0;margin:0;padding:14px;border-radius:18px;border:0;background:transparent;box-shadow:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.sphere-message.has-prediction{background:linear-gradient(145deg,#2a2238ee,#42364ee8);border:1px solid #ffffff75;box-shadow:0 5px 20px #40355135;backdrop-filter:blur(5px)}
.sphere-message p{font:clamp(13px,3.9vw,15px)/1.5 Arial,sans-serif;color:#fffaf2;margin:0}
.sphere-waiting{top:37%;padding:0;pointer-events:none;overflow:hidden}
.sphere-waiting p{color:#352844;font:700 19px/1.4 Georgia,serif;text-shadow:0 1px 8px #fff}
.sphere-orb.is-reading{box-shadow:inset 0 0 45px #fff,0 0 65px #eee7ffbb}
.sphere-smoke{position:absolute;z-index:2;pointer-events:none;left:32%;top:-8%;width:36%;height:48%;border-radius:46%;background:radial-gradient(ellipse at 45% 65%,#ffffff80,transparent 68%);filter:blur(12px);opacity:0;animation:sphere-rising-smoke 6s ease-out infinite}
.sphere-smoke-two{left:43%;width:31%;animation-delay:-2s;animation-duration:7s}
.sphere-smoke-three{left:23%;width:33%;animation-delay:-4s;animation-duration:8s}
.sphere-history{margin-top:20px}
@keyframes sphere-rising-smoke{0%{transform:translate(0,28px) scale(.65);opacity:0}25%{opacity:.75}70%{opacity:.35}100%{transform:translate(22px,-95px) scale(1.5);opacity:0}}
@media(max-width:360px){.sphere-stage{width:min(310px,100%);margin-top:48px}.sphere-message{padding:10px}.sphere-message p{font-size:13px}}
@media(prefers-reduced-motion:reduce){.sphere-smoke{animation:none;opacity:.3;transform:translateY(-12px)}.sphere-message.has-prediction{backdrop-filter:none}}

/* Short complete readings; distinct wisps rising from the glass. */
.sphere-message{top:31%;max-height:none;overflow:visible;overscroll-behavior:auto;padding:12px;left:14%;right:14%}
.sphere-message p{font-size:17px;line-height:1.45}
.sphere-waiting{top:37%;padding:0}
.sphere-waiting p{font-size:23px}
.sphere-smoke{z-index:4;top:1%;left:39%;width:23%;height:43%;filter:blur(4px);background:radial-gradient(ellipse at 50% 70%,#fffffff2 0%,#eeeef4b0 32%,#ffffff45 54%,transparent 72%);opacity:.8;animation:sphere-smoke-visible 4s ease-in-out infinite}
.sphere-smoke-two{left:46%;width:25%;animation-delay:-1.3s;animation-duration:4.8s}
.sphere-smoke-three{left:29%;width:25%;animation-delay:-2.6s;animation-duration:5.2s}
.sphere-smoke::after{content:"";position:absolute;inset:14% 6%;border-radius:50%;background:radial-gradient(ellipse,#fffd 0%,#fff5 42%,transparent 70%);transform:rotate(20deg)}
@keyframes sphere-smoke-visible{0%{transform:translate(-8px,4px) scale(.65,.75);opacity:.9}40%{transform:translate(7px,-50px) scale(1,1.15);opacity:.85}100%{transform:translate(-15px,-135px) scale(1.4,1.55);opacity:0}}
@media(max-width:360px){.sphere-message{padding:10px}.sphere-message p{font-size:15px}.sphere-waiting p{font-size:22px}}
@media(prefers-reduced-motion:reduce){.sphere-smoke{animation:none;transform:translateY(-35px);opacity:.75}}

.sphere-message.has-prediction p{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-size:18px;line-height:1.4}@media(max-width:360px){.sphere-message.has-prediction p{font-size:16px}}

.sphere-name-field{max-width:280px;margin:18px auto 12px;text-align:left}.sphere-name-field label{display:block;font:14px/1.5 Arial,sans-serif;color:#efd096;margin:0 0 7px}.sphere-name-field input{box-sizing:border-box;display:block;width:100%;min-height:44px;border:1px solid #c7a363;border-radius:10px;padding:10px 12px;background:#fff8ee;color:#30223b;font:16px Arial,sans-serif}.sphere-name-field input:focus{outline:2px solid #f1d18b;outline-offset:2px}.sphere-name-field input:disabled{opacity:.7}

.sphere-message.has-prediction{top:20%;max-height:62%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
