/* The voice orb (public/wai-orb.js says what it does). --orb is the sphere's
   diameter; --orb-page is the colour of the ground it sits on, which the
   call button's ring takes so the notch reads as cut out of the sphere. */
.w-orb{--orb:320px;--orb-page:#fff;--orb-ring:6px;position:relative;width:var(--orb);height:var(--orb);flex:none}
.w-orb canvas,.w-orb__still{position:absolute;inset:0;width:100%;height:100%;display:block;border-radius:50%}
/* The still render: the same orb in CSS, shown until the shader draws and
   kept wherever WebGL is missing. Never an empty box. */
.w-orb__still{background:
  radial-gradient(42% 36% at 38% 24%,color-mix(in srgb,var(--orb-c5,#E3E8EA) 70%,transparent) 0,transparent 70%),
  radial-gradient(70% 60% at 62% 60%,var(--orb-c2,#3F7BA3) 0,transparent 72%),
  radial-gradient(120% 100% at 50% 100%,var(--orb-c0,#174E73) 30%,transparent 80%),
  var(--orb-c2,#3F7BA3)}
.w-orb canvas{opacity:0;transition:opacity .6s ease-out}
.w-orb.is-gl canvas{opacity:1}
.w-orb.is-gl .w-orb__still{visibility:hidden;transition:visibility 0s .6s}

/* Control 1, play: a white circle dead centre. */
.w-orb__btn{position:absolute;display:grid;place-items:center;border:0;padding:0;margin:0;border-radius:50%;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .2s ease-out,background-color .2s ease-out}
.w-orb[data-control=play] .w-orb__btn{left:50%;top:50%;width:calc(var(--orb) * .22);height:calc(var(--orb) * .22);min-width:44px;min-height:44px;transform:translate(-50%,-50%);background:#fff;color:#0a0a0a;box-shadow:0 1px 2px rgba(10,10,10,.08)}
.w-orb[data-control=play] .w-orb__btn:hover{transform:translate(-50%,-50%) scale(1.04)}
.w-orb[data-control=play] .w-orb__btn:active{transform:translate(-50%,-50%) scale(.96)}
/* Control 2, call: a black circle notched into the sphere's foot, the
   page-coloured ring around it drawn by the shader's cut. */
.w-orb[data-control=call]{margin-bottom:calc(var(--orb) * .09)}
.w-orb[data-control=call] .w-orb__btn{left:50%;top:calc(var(--orb) * .955);width:calc(var(--orb) * .19);height:calc(var(--orb) * .19);min-width:44px;min-height:44px;transform:translate(-50%,-50%);background:#0a0a0a;color:#fff}
.w-orb[data-control=call] .w-orb__btn:hover{transform:translate(-50%,-50%) scale(1.04)}
.w-orb[data-control=call] .w-orb__btn:active{transform:translate(-50%,-50%) scale(.96)}
.w-orb__btn:focus-visible{outline:2px solid #0a0a0a;outline-offset:3px}
.w-orb__btn svg{width:42%;height:42%;grid-area:1/1;transition:opacity .2s ease-out,transform .2s ease-out}
.w-orb__btn .is-on{opacity:0;transform:scale(.8)}
.w-orb__btn[aria-pressed=true] .is-off{opacity:0;transform:scale(.8)}
.w-orb__btn[aria-pressed=true] .is-on{opacity:1;transform:none}
/* Without the shader the notch is drawn by the ring itself. */
.w-orb:not(.is-gl)[data-control=call] .w-orb__btn{box-shadow:0 0 0 var(--orb-ring) var(--orb-page)}
@media (prefers-reduced-motion:reduce){.w-orb canvas,.w-orb__btn,.w-orb__btn svg{transition:none}}
