/* The artwork uses physical coordinates so its lighting and tilt stay fixed in RTL. */
.solef-orbit {
    --solef-orbit-midnight: #080914;
    --solef-orbit-aqua: #85e7ef;
    --solef-orbit-violet: #9787f4;
    --solef-orbit-limb: conic-gradient(from 0deg,
        #356187, #15203e 42deg, #33467b 83deg, #5773dd 117deg,
        #8983f0 149deg, #4b4789 186deg, #394764 216deg,
        #5dbdb8 253deg, #9aeee6 282deg, #5295c1 314deg, #356187);
    position: relative;
    isolation: isolate;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 500px;
    min-width: 0;
    height: auto;
    max-height: 330px;
    aspect-ratio: 50 / 33;
    margin-inline: auto;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse 35% 45% at 43% 45%, rgb(26 102 120 / 12%), transparent),
        radial-gradient(ellipse 43% 46% at 59% 56%, rgb(68 52 149 / 17%), transparent),
        radial-gradient(ellipse closest-side, var(--solef-orbit-midnight) 28%, transparent 100%);
}

/* Tiny field coordinates fade out before the edge of the composition. */
.solef-orbit::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 13% 58%, #629094 0.6px, transparent 1px),
        radial-gradient(circle at 23% 27%, #526878 0.65px, transparent 1.1px),
        radial-gradient(circle at 35% 16%, #51566e 0.5px, transparent 1px),
        radial-gradient(circle at 65% 14%, #8790a6 0.6px, transparent 1px),
        radial-gradient(circle at 85% 39%, #535a86 0.9px, transparent 1.4px),
        radial-gradient(circle at 75% 74%, #817da9 0.65px, transparent 1.1px),
        radial-gradient(circle at 58% 84%, #515379 0.6px, transparent 1px),
        radial-gradient(circle at 27% 79%, #726d95 0.6px, transparent 1.1px);
}

.solef-orbit__track,
.solef-orbit__planet {
    position: absolute;
    box-sizing: border-box;
    left: 50%;
    top: 49%;
    border-radius: 50%;
}

.solef-orbit__track {
    transform: translate(-50%, -50%) rotate(var(--solef-orbit-tilt));
    border: 1px solid;
}

.solef-orbit__track--outer {
    --solef-orbit-tilt: 12deg;
    width: 89%;
    height: 44%;
    border-color: rgb(130 147 203 / 15%) rgb(126 117 207 / 19%)
        rgb(125 118 199 / 24%) rgb(116 186 199 / 18%);
}

.solef-orbit__track--polar {
    --solef-orbit-tilt: -39deg;
    width: 52%;
    height: 62%;
    border-color: rgb(130 164 188 / 16%) rgb(129 130 195 / 8%)
        rgb(134 119 202 / 13%) rgb(102 166 180 / 16%);
}

.solef-orbit__track--belt {
    --solef-orbit-tilt: -16deg;
    width: 83%;
    height: 29%;
    border-color: rgb(129 171 203 / 27%) rgb(153 145 232 / 47%)
        rgb(146 151 221 / 44%) rgb(140 214 224 / 51%);
}

/* Two halves of one ellipse put the near arc across the face of the planet. */
.solef-orbit__track--back {
    clip-path: inset(-20% -4% 50%);
}

.solef-orbit__track--front {
    clip-path: inset(50% -4% -20%);
}

.solef-orbit__point,
.solef-orbit__tracer {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.solef-orbit__track--outer .solef-orbit__point {
    left: 90%;
    top: 20%;
    background: #a59ebf;
    box-shadow: 0 0 4px #716696;
}

.solef-orbit__track--front .solef-orbit__point {
    left: 84%;
    top: 86.7%;
    background: #d2cafe;
    box-shadow: 0 0 4px var(--solef-orbit-violet);
}

.solef-orbit__tracer {
    left: 10%;
    top: 80%;
    background: #d6fffc;
    box-shadow: 0 0 5px 1px var(--solef-orbit-aqua);
}

/* A short, tangent arc catches the same light as the tracer at its tip. */
.solef-orbit__track--front::before {
    content: "";
    position: absolute;
    inset: -1px;
    border: 1px solid var(--solef-orbit-aqua);
    border-radius: inherit;
    clip-path: inset(58% 89.5% -4% 0);
    mask-image: linear-gradient(90deg, transparent, #000 10%);
}

.solef-orbit__planet {
    width: 38%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: var(--solef-orbit-limb);
    box-shadow: -1px -1px 3px rgb(113 221 229 / 28%), 2px 3px 7px rgb(98 86 229 / 38%);
}

/* The two corona layers give the limb a broad halo and fine concentric filaments. */
.solef-orbit__planet::before,
.solef-orbit__planet::after {
    content: "";
    position: absolute;
    border-radius: inherit;
}

.solef-orbit__planet::before {
    inset: -6%;
    background: var(--solef-orbit-limb);
    filter: blur(5px);
    opacity: 0.74;
    mask-image: radial-gradient(closest-side, transparent 69%, #000 84%, rgb(0 0 0 / 35%) 91%, transparent);
}

.solef-orbit__planet::after {
    inset: -2.8%;
    background: repeating-radial-gradient(closest-side,
        transparent 0 2px, rgb(190 216 255 / 24%) 2.5px, transparent 3.5px);
    mask-image: radial-gradient(closest-side, transparent 87%, #000 94%, transparent);
}

.solef-orbit__surface {
    position: absolute;
    inset: 2.1% 3.4% 3.8% 2.7%;
    border-radius: 50%;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 69% 69%, rgb(0 0 7 / 65%) 18%, transparent 58%),
        radial-gradient(ellipse at 31% 24%, #162934, #0b1520 32%, #070b15 58%, #13142b 83%, #353354);
    box-shadow: inset 2px 1px 4px rgb(137 231 224 / 35%),
        inset -2px -2px 5px rgb(143 131 243 / 35%);
}

.solef-orbit__meridians,
.solef-orbit__signals {
    position: absolute;
    inset: 0;
}

.solef-orbit__meridians::before,
.solef-orbit__meridians::after {
    content: "";
    position: absolute;
    top: -5%;
    height: 110%;
    border-radius: 50%;
    transform: rotate(-9deg);
    border-left: 1px solid rgb(142 216 219 / 10%);
}

.solef-orbit__meridians::before {
    left: 10%;
    width: 63%;
}

.solef-orbit__meridians::after {
    left: 29%;
    width: 46%;
    border-color: rgb(142 216 219 / 5%);
}

.solef-orbit__signals {
    --solef-orbit-dashes: repeating-linear-gradient(to bottom, #a3dcd8 0 1px, transparent 1px 4px,
        #456d77 4px 7px, transparent 7px 13px, #7a96a9 13px 15px, transparent 15px 21px);
    background:
        radial-gradient(circle at 26% 36%, #95d6d3 0.8px, transparent 1.3px),
        radial-gradient(circle at 63% 44%, #adb6ee 0.7px, transparent 1.2px),
        radial-gradient(circle at 44% 65%, #92a5c0 0.7px, transparent 1.2px),
        var(--solef-orbit-dashes) 17% 52% / 1px 34%,
        var(--solef-orbit-dashes) 26% 32% / 1px 48%,
        var(--solef-orbit-dashes) 29% 61% / 1px 16%,
        var(--solef-orbit-dashes) 44% 78% / 1px 37%,
        var(--solef-orbit-dashes) 56% 22% / 1px 25%,
        var(--solef-orbit-dashes) 63% 43% / 1px 61%,
        var(--solef-orbit-dashes) 76% 66% / 1px 26%,
        var(--solef-orbit-dashes) 84% 38% / 1px 18%;
    background-repeat: no-repeat;
    opacity: 0.48;
    mask-image: radial-gradient(ellipse at 45% 45%, #000 17%, rgb(0 0 0 / 64%) 52%, transparent 76%);
}

@media (prefers-reduced-motion: no-preference) {
    .solef-orbit__tracer {
        animation: solef-orbit-glimmer 7s ease-in-out infinite alternate;
    }
}

@keyframes solef-orbit-glimmer {
    from { opacity: 0.48; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .solef-orbit__tracer {
        animation: none;
    }
}
