/* fegaofovwe.com, his socials as keycaps floating around him (his pick 2026-11-21, media kit screen 1 and /live).
   Replaces the 3D glass rings ("it passes through my body... tacky"). Square keys with a raised lip in each platform's
   colour. .tl-box sits exactly on his photo, so each spot is a % of the photo, measured on his cutout's outline: no key
   ever covers him, and they sit below the big type behind. Hover (mouse) or tap (phone) shows followers and handle.
   Motion: transform and opacity only; the float pauses on the key you point at; nothing moves on reduced motion. */
.tl-box{position:absolute;left:50%;bottom:0;translate:-50% 0;aspect-ratio:1700/1212;pointer-events:none;z-index:3}
.tl{--s:clamp(58px,6vw,88px);--c:#888;--lip:color-mix(in oklab,var(--c) 55%,#000);--ink:#fff;
  position:absolute;left:var(--x);top:var(--y);width:var(--s);height:var(--s);margin:calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  pointer-events:auto;color:var(--ink);text-decoration:none;-webkit-tap-highlight-color:transparent;outline:none}
.tl[data-p="youtube"]{--c:#ff0033}
.tl[data-p="twitch"]{--c:#9146ff}
.tl[data-p="kick"]{--c:#53fc18;--ink:#0b0b0b}
.tl[data-p="tiktok"]{--c:#161616;--lip:#000}
.tl[data-p="instagram"]{--c:#e1306c;--lip:#7a1f6b}
.tl[data-p="x"]{--c:#161616;--lip:#000}
.tl[data-p="facebook"]{--c:#1877f2}
/* dark theme: X turns to a white key so it never sits black on black */
body[data-bg="black"] .tl[data-p="x"]{--c:#f2f1ef;--lip:#9a9894;--ink:#0b0b0b}
/* dark theme: TikTok turns teal, its own accent colour (his idea 2026-11-22), black logo with the pink edge */
body[data-bg="black"] .tl[data-p="tiktok"]{--c:#25f4ee;--lip:#0e8f8b;--ink:#0b0b0b}
body[data-bg="black"] .tl[data-p="tiktok"] .tl-key svg{filter:drop-shadow(1.5px 1px 0 #fe2c55)}

/* float: each key its own period and tilt, a few pixels only */
.tl-fl{position:absolute;inset:0;animation:tl-bob var(--dur,6s) ease-in-out var(--del,0s) infinite alternate}
@keyframes tl-bob{from{transform:translate3d(0,calc(var(--amp,7px) * -1),0) rotate(-1.5deg)}to{transform:translate3d(0,var(--amp,7px),0) rotate(1.5deg)}}
.tl:is(.open,:focus-visible) .tl-fl{animation-play-state:paused}

/* the key: face on a darker lip, light from above, a dished top */
.tl-key{position:absolute;inset:0;display:grid;place-items:center;border-radius:27%;rotate:var(--r,0deg);
  background:linear-gradient(180deg,color-mix(in oklab,var(--c) 80%,#fff) 0%,var(--c) 38%,color-mix(in oklab,var(--c) 82%,#000) 100%);
  box-shadow:inset 0 1.5px 0 rgb(255 255 255 / .55),inset 0 -2px 0 rgb(0 0 0 / .22),0 7px 0 var(--lip),0 18px 26px -8px rgb(0 0 0 / .45);
  transition:transform 200ms cubic-bezier(.23,1,.32,1),rotate 320ms cubic-bezier(.23,1,.32,1),box-shadow 200ms cubic-bezier(.23,1,.32,1)}
.tl-key::before{content:"";position:absolute;inset:12%;border-radius:22%;background:linear-gradient(180deg,color-mix(in oklab,var(--c) 88%,#000),color-mix(in oklab,var(--c) 92%,#fff));
  box-shadow:inset 0 2px 3px rgb(0 0 0 / .18),0 1px 0 rgb(255 255 255 / .25)}
.tl-key svg{position:relative;width:44%;height:auto;fill:currentColor;background:none;padding:0;border-radius:0;filter:none}
.tl[data-p="tiktok"] .tl-key svg{filter:drop-shadow(-1.5px -1px 0 #25f4ee) drop-shadow(1.5px 1px 0 #fe2c55)}
.tl[data-p="instagram"] :is(.tl-key,.tl-key::before),.tl[data-p="instagram"] .tl-tag{background:linear-gradient(45deg,#f9ce34,#ee2a7b 50%,#6228d7)}
.tl[data-p="instagram"] .tl-key::before{filter:brightness(.92)}
.tl:active .tl-key{transform:translateY(4px);box-shadow:inset 0 1.5px 0 rgb(255 255 255 / .55),inset 0 -2px 0 rgb(0 0 0 / .22),0 3px 0 var(--lip),0 10px 18px -8px rgb(0 0 0 / .45)}

/* the reveal: followers and handle, on a tag of the same colour that slides out away from him */
.tl-tag{position:absolute;top:50%;display:grid;gap:3px;white-space:nowrap;padding:.62em 1em .6em;border-radius:14px;pointer-events:none;
  background:var(--c);color:var(--ink);box-shadow:0 5px 0 var(--lip),0 14px 24px -8px rgb(0 0 0 / .4);
  font-family:Archivo,system-ui,sans-serif;line-height:1;opacity:0;transition:opacity 160ms ease-out,transform 240ms cubic-bezier(.23,1,.32,1)}
.tl-tag b{font-weight:900;font-variation-settings:"wdth" 70;font-size:clamp(1.3rem,1.7vw,1.7rem);letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.tl-tag b small{font-size:.5em;font-weight:800;font-variation-settings:"wdth" 80;text-transform:uppercase;letter-spacing:.02em}
.tl-tag > span{font-weight:700;font-size:.85rem}
.tl[data-side="r"] .tl-tag{left:calc(100% + 12px);transform:translate(-14px,-50%) scale(.96);transform-origin:0 50%}
.tl[data-side="l"] .tl-tag{right:calc(100% + 12px);transform:translate(14px,-50%) scale(.96);transform-origin:100% 50%;text-align:right}
.tl:is(.open,:focus-visible) .tl-tag{opacity:1;transform:translate(0,-50%) scale(1)}
.tl:is(.open,:focus-visible){z-index:5}
.tl:is(.open,:focus-visible) .tl-key{rotate:var(--rh,0deg)}
/* shoved out of the way by an open tag (socialtiles.js sets --px / --py): a quick punch out, a slower float back */
.tl{translate:var(--px,0px) var(--py,0px);transition:translate 700ms cubic-bezier(.16,1,.3,1)}
.tl.shoved{transition:translate 380ms cubic-bezier(.3,1.45,.5,1)}
.tl:focus-visible .tl-key{outline:3px solid var(--hfg);outline-offset:6px}
@media (hover:hover) and (pointer:fine){
  .tl:hover{z-index:5}
  .tl:hover .tl-fl{animation-play-state:paused}
  .tl:hover .tl-key{transform:translateY(-4px);rotate:var(--rh,0deg)}
  .tl:hover .tl-tag{opacity:1;transform:translate(0,-50%) scale(1)}
}

/* entrance: they pop in one by one (the page adds .in) */
.tl-box .tl{opacity:0;transform:scale(.6)}
.tl-box.in .tl{opacity:1;transform:none;transition:opacity 260ms ease-out calc(var(--i) * 70ms),transform 620ms cubic-bezier(.16,1,.3,1) calc(var(--i) * 70ms),translate 700ms cubic-bezier(.16,1,.3,1)}
.tl-box.in .tl.shoved{transition:opacity 260ms ease-out,transform 620ms cubic-bezier(.16,1,.3,1),translate 380ms cubic-bezier(.3,1.45,.5,1)}

/* phones: smaller keys in a halo over his cap; the numbers open under the key */
@media (max-width:760px){
  .tl{--s:44px}
  .tl-key{box-shadow:inset 0 1.5px 0 rgb(255 255 255 / .55),inset 0 -2px 0 rgb(0 0 0 / .22),0 5px 0 var(--lip),0 12px 18px -6px rgb(0 0 0 / .45)}
  .tl-tag{font-size:.9rem}
  .tl-tag b{font-size:1.25rem}
  .tl[data-side="b"] .tl-tag{top:calc(100% + 14px);left:50%;transform:translate(-50%,-8px) scale(.96);transform-origin:50% 0;text-align:center}
  .tl[data-side="b"]:is(.open,:focus-visible) .tl-tag{transform:translate(-50%,0) scale(1)}
  .tl[data-side="b"][data-p="youtube"] .tl-tag{left:0;transform:translate(0,-8px) scale(.96);text-align:left}
  .tl[data-side="b"][data-p="youtube"]:is(.open,:focus-visible) .tl-tag{transform:none}
  .tl[data-side="b"][data-p="facebook"] .tl-tag{left:auto;right:0;transform:translate(0,-8px) scale(.96);text-align:right}
  .tl[data-side="b"][data-p="facebook"]:is(.open,:focus-visible) .tl-tag{transform:none}
}

@media (prefers-reduced-motion:reduce){.tl-fl{animation:none}.tl-box .tl{opacity:1;transform:none}}
@media print{.tl-fl{animation:none}.tl-box .tl{opacity:1;transform:none}}
/* full colour, same as the number (live.css greys every small inside .lv, his note 2026-11-22) */
.tl .tl-tag small,.tl .tl-tag > span{color:inherit;opacity:1}
.tl-box.tl-back{z-index:1}
