.social-dock {
  display: grid;
  gap: 12px;
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
}

.social-float {
  align-items: center;
  aspect-ratio: 1;
  backdrop-filter: blur(18px);
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.18), transparent 0.46rem),
    linear-gradient(135deg, var(--social-a), var(--social-b));
  border: 1px solid rgba(140, 165, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), 0 0 22px var(--social-glow);
  display: flex;
  justify-content: center;
  overflow: visible;
  position: relative;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s cubic-bezier(.16,.84,.22,1);
  width: 52px;
}

.social-float::before {
  background:
    linear-gradient(100deg, transparent 0 32%, rgba(255, 255, 255, 0.28) 44%, rgba(255, 255, 255, 0.1) 52%, transparent 66% 100%);
  background-position: -90px 0;
  background-repeat: no-repeat;
  background-size: 130px 100%;
  border-radius: inherit;
  clip-path: circle(50%);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: background-position 0.45s ease, opacity 0.18s ease;
  z-index: 0;
}

.social-float::after {
  background: rgba(5, 12, 30, 0.86);
  border: 1px solid rgba(140, 165, 255, 0.24);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  color: var(--text, #f5f9ff);
  content: attr(data-label);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  opacity: 0;
  padding: 8px 12px;
  pointer-events: none;
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translate(10px, -50%);
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(.16,.84,.22,1);
  white-space: nowrap;
  z-index: 3;
}

.social-float:hover {
  border-color: rgba(210, 222, 255, 0.58);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34), 0 0 32px var(--social-glow);
  transform: translateX(-8px) scale(1.08);
}

.social-float:hover::before {
  opacity: 1;
  background-position: 70px 0;
}

.social-float:hover::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.social-float img {
  height: 27px;
  position: relative;
  width: 27px;
  z-index: 1;
}

.social-float.youtube {
  --social-a: rgba(255, 38, 72, 0.52);
  --social-b: rgba(21, 33, 82, 0.82);
  --social-glow: rgba(255, 38, 72, 0.28);
}

.social-float.youtube-alt {
  --social-a: rgba(255, 255, 255, 0.22);
  --social-b: rgba(32, 48, 96, 0.86);
  --social-glow: rgba(255, 255, 255, 0.16);
}

.social-float.instagram {
  --social-a: rgba(255, 64, 129, 0.48);
  --social-b: rgba(82, 58, 170, 0.78);
  --social-glow: rgba(255, 64, 129, 0.26);
}

.social-float.twitch {
  --social-a: rgba(145, 70, 255, 0.5);
  --social-b: rgba(24, 39, 94, 0.82);
  --social-glow: rgba(145, 70, 255, 0.28);
}

.social-float.discord {
  --social-a: rgba(88, 101, 242, 0.5);
  --social-b: rgba(19, 48, 86, 0.82);
  --social-glow: rgba(88, 101, 242, 0.28);
}

.social-float.tiktok {
  --social-a: rgba(0, 218, 209, 0.48);
  --social-b: rgba(255, 35, 91, 0.42);
  --social-glow: rgba(0, 218, 209, 0.25);
}

.social-float.tiktok img { mix-blend-mode: screen; object-fit: contain; }

.navigation-toggle, .social-dock-toggle { display: none; }
.editor-preview .social-dock, .editor-preview .social-dock-toggle { display: none !important; }
.navigation-toggle:focus-visible, .social-dock-toggle:focus-visible, .social-float:focus-visible {
  outline: 3px solid #83e5ff; outline-offset: 4px;
}
.social-float:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

@media (max-width: 900px) {
  html.site-shell-ready { --header-height: 72px; }
  .site-shell-ready .site-header {
    display: flex; flex-direction: row; justify-content: space-between; align-items: center;
    min-height: var(--header-height); height: var(--header-height); padding: 10px 16px;
    gap: 12px; overflow: visible; max-width: 100%;
  }
  .site-shell-ready .site-header .brand { position: relative; left: auto; align-self: center; flex: none; }
  .site-shell-ready .navigation-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-width: 88px; min-height: 44px; padding: 10px 12px; border-radius: 12px;
    border: 1px solid #93b6ff50; background: linear-gradient(135deg,#193765,#322557);
    color: #f6f8ff; font: inherit; font-size: .8rem; font-weight: 750; cursor: pointer;
  }
  .navigation-bars { width: 18px; height: 14px; position: relative; }
  .navigation-bars::before, .navigation-bars::after, .navigation-bars span {
    content: ''; position: absolute; left: 0; width: 18px; height: 2px;
    background: currentColor; border-radius: 2px; transition: transform .18s ease, opacity .18s ease;
  }
  .navigation-bars::before { top: 0; }
  .navigation-bars span { top: 6px; }
  .navigation-bars::after { top: 12px; }
  .navigation-open .navigation-bars::before { transform: translateY(6px) rotate(45deg); }
  .navigation-open .navigation-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .navigation-open .navigation-bars span { opacity: 0; }
  .site-shell-ready .site-header nav {
    display: none; position: absolute; top: calc(100% + 7px); left: 12px; right: 12px;
    width: auto; max-width: none; padding: 12px; gap: 8px;
    grid-template-columns: minmax(0,1fr); align-items: stretch;
    max-height: calc(100svh - 100px); overflow: auto; overscroll-behavior: contain;
    background: #071125fa; border: 1px solid #7098ee50; border-radius: 18px;
    box-shadow: 0 18px 42px #0008;
  }
  .site-shell-ready .navigation-open nav { display: grid; }
  .site-shell-ready .site-header nav a:nth-child(n) {
    grid-column: auto; justify-self: stretch; width: 100%; max-width: none; min-height: 46px;
    padding: 12px; font-size: .83rem; letter-spacing: .05em;
  }
  .site-shell-ready .site-controls {
    position: relative; top: auto; right: auto; transform: none; z-index: auto;
    display: flex; justify-content: space-between; gap: 12px;
    margin-top: 4px; padding-top: 12px; border-top: 1px solid #7196cc30;
  }
  .site-shell-ready .site-controls .language-toggle, .site-shell-ready .site-controls .detail-toggle { min-height: 44px; padding: 8px 12px; }
  .site-shell-ready .site-controls .language-code { display: inline; }
  .site-shell-ready .site-controls .detail-toggle-state { font-size: .72rem; }
  .site-shell-ready .language-menu { top: auto; bottom: calc(100% + 8px); }
}

@media (max-width: 380px) {
  .site-shell-ready .site-header { padding-inline: 12px; }
}

/* On touch screens, the social bubbles open as a compact floating panel. */
@media (max-width: 900px), (pointer: coarse) {
  .site-shell-ready .social-dock-toggle {
    display: grid; place-items: center; position: fixed; right: 14px;
    bottom: max(16px, env(safe-area-inset-bottom)); z-index: 35;
    width: 48px; height: 48px; padding: 12px; border: 1px solid #83beff75;
    border-radius: 50%; background: linear-gradient(135deg,#174369,#583568);
    color: #effaff; box-shadow: 0 8px 22px #0006; cursor: pointer;
  }
  .social-dock-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
  .site-shell-ready .social-dock {
    display: none; top: auto; right: 14px; bottom: max(78px, calc(env(safe-area-inset-bottom) + 78px));
    transform: none; padding: 12px; gap: 10px; grid-template-columns: repeat(3,44px);
    background: #071125fa; border: 1px solid #83beff50; border-radius: 22px; box-shadow: 0 12px 30px #0008;
  }
  .site-shell-ready .social-dock-open { display: grid; }
  .site-shell-ready .social-float { width: 44px; min-height: 44px; }
  .site-shell-ready .social-float img { width: 23px; height: 23px; }
  .site-shell-ready .social-float::after { display: none; }
  .site-shell-ready .social-float:hover { transform: none; }
  .links-page .links-shell { padding-bottom: 80px; }
}
