/* Header style switch: the current style as a small floating hologram, tinted
   per style, sitting on the language picker's centre line. */
.ascii-holo{--holo:#9fe2f5;--holo-rgb:159,226,245;position:relative;width:40px;height:40px;padding:0;border:0;background:none;cursor:pointer;
 display:grid;place-items:center;color:var(--holo);opacity:.82;transition:opacity .3s,color .5s;-webkit-tap-highlight-color:transparent}
.ascii-holo[data-style=pixel]{--holo:#ffcf94;--holo-rgb:255,207,148}
.ascii-holo[data-style=detailed]{--holo:#9fe2f5;--holo-rgb:159,226,245}
.ascii-holo[data-style=binary]{--holo:#9ff5b8;--holo-rgb:159,245,184}
/* Soft light the glyph floats in. */
.ascii-holo:before{content:'';position:absolute;inset:9px 5px;border-radius:50%;pointer-events:none;
 background:radial-gradient(closest-side,rgba(var(--holo-rgb),.16),rgba(var(--holo-rgb),.05) 60%,transparent);
 animation:holo-breathe 4.5s ease-in-out infinite;transition:background .5s}
.ascii-holo:is(:hover,:focus-visible){opacity:1}
/* Hover as on the language picker: the glyph brightens and glows. */
.ascii-holo .face{transition:filter .25s}
.ascii-holo:is(:hover,:focus-visible) .face{filter:brightness(1.3) drop-shadow(0 0 5px rgba(var(--holo-rgb),.55))}
.ascii-holo:is(:hover,:focus-visible):before{background:radial-gradient(closest-side,rgba(var(--holo-rgb),.24),rgba(var(--holo-rgb),.07) 60%,transparent)}
.ascii-holo:focus-visible{outline:1px dashed rgba(var(--holo-rgb),.5);outline-offset:-4px}
/* The glyph: lit from within, split into faint red/cyan fringes, cut by scanlines. */
.ascii-holo .face{position:relative;display:grid;place-items:center;height:18px;
 font:15px/1 var(--display);letter-spacing:.05em;white-space:nowrap;
 text-shadow:-.7px 0 rgba(255,96,150,.4),.7px 0 rgba(90,230,255,.4),0 0 7px rgba(var(--holo-rgb),.75),0 0 16px rgba(var(--holo-rgb),.3);
 -webkit-mask:repeating-linear-gradient(to bottom,#000 0 1.5px,#0009 1.5px 2.25px);mask:repeating-linear-gradient(to bottom,#000 0 1.5px,#0009 1.5px 2.25px);
 animation:holo-float 5s ease-in-out infinite,holo-flicker 9s steps(1) infinite}
.ascii-holo .face svg{height:13px;width:auto;fill:currentColor;shape-rendering:crispEdges;overflow:visible;
 filter:drop-shadow(-.7px 0 rgba(255,96,150,.45)) drop-shadow(.7px 0 rgba(90,230,255,.45)) drop-shadow(0 0 4px rgba(var(--holo-rgb),.8))}
/* Switching: the glyph tears into slices and re-forms; the light flares. */
.ascii-holo.switching .face{animation:holo-tear .5s steps(6)}
.ascii-holo.switching:before{animation:holo-flare .9s ease-out}
@keyframes holo-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.5px)}}
@keyframes holo-breathe{0%,100%{opacity:.7}50%{opacity:1}}
@keyframes holo-flicker{0%,100%{opacity:1}41%{opacity:.6}42%{opacity:1}77%{opacity:.82}78%{opacity:1}}
@keyframes holo-flare{0%{opacity:1;transform:scale(1.6);filter:brightness(2.2)}100%{opacity:.8;transform:none;filter:none}}
@keyframes holo-tear{
 0%{clip-path:inset(0 0 60% 0);transform:translateX(-3px)}
 20%{clip-path:inset(40% 0 20% 0);transform:translateX(3px)}
 40%{clip-path:inset(10% 0 50% 0);transform:translateX(-2px) scaleY(1.2)}
 60%{clip-path:inset(55% 0 0 0);transform:translateX(2px)}
 80%{clip-path:inset(0);transform:translateX(-1px) skewX(-8deg)}
 100%{clip-path:inset(0);transform:none}}
@media(max-width:700px){.ascii-holo{width:34px;height:34px}.ascii-holo .face{font-size:13px}.ascii-holo .face svg{height:11px}}
@media(prefers-reduced-motion:reduce){.ascii-holo .face,.ascii-holo:before{animation:none}}
