﻿/* Canonical crystal surfaces/controls shared by login and the public landing. */
.bb-crystal{position:absolute;width:150px;height:200px;user-select:none;animation:bb-crystal-float 9s ease-in-out infinite alternate;--tilt:15deg}
.bb-crystal>svg,.bb-crystal>.crystal-canvas{display:block;width:100%;height:100%}
.bb-crystal.crystal-rendered>svg{display:none}
.bb-crystal .crystal-seams{fill:none;stroke:#c8ede7b0;stroke-width:.8}
.bb-crystal .crystal-facet-a{fill:#ffffff90}.bb-crystal .crystal-facet-b{fill:#d3f7ff30}.bb-crystal .crystal-facet-c{fill:#ffffff50}.bb-crystal .crystal-facet-d{fill:#c8f5e730}
.bb-crystal[data-crystal-key]{pointer-events:auto;cursor:pointer;touch-action:pan-y pinch-zoom;-webkit-tap-highlight-color:transparent}
.bb-crystal[data-crystal-paused="true"]{animation-play-state:paused!important}
.bb-crystal:focus-visible{outline:2px solid var(--green,#77cabb);outline-offset:3px;border-radius:12px}
.bb-crystal[data-crystal-pointer-focus="true"]:focus{outline:none}
@keyframes bb-crystal-float{from{transform:translate3d(0,4px,0) rotateZ(var(--tilt))}to{transform:translate3d(8px,-10px,0) rotateZ(calc(var(--tilt) + 7deg))}}
@media(prefers-reduced-motion:reduce){.bb-crystal{animation:none;transform:rotate(var(--tilt))}}

/* In light appearance refracted light can brighten the background, never cast a dark patch. */
[data-theme="light"] .bb-crystal .crystal-seams{stroke:#ffffffb3}
[data-theme="light"] .crystal-caustics{mix-blend-mode:screen}
