/* ============================================
   Soundingpolar Bio — slat.cc Bar Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --heading: 'Space Grotesk', 'Inter', sans-serif;
    --green: #3ba55c;
    --blurple: #5865F2;
    --radius: 12px;
    --transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.4s ease, border-color 0.4s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%; height: 100%; overflow: hidden;
    font-family: var(--font); background: #000; color: #fff;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blurple); color: #fff; }

/* === BG VIDEO === */
#floating-lines-container {
    position: fixed; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    overflow: hidden; mix-blend-mode: screen;
}

.vignette {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 20%, rgba(0,0,0,0.5) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.05) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.2) 100%);
}

/* === PARTICLE CANVAS === */
#particles-canvas {
    position: fixed; inset: 0; z-index: 2;
    pointer-events: none;
    width: 100%; height: 100%;
}

/* === INTRO === */
.intro {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    background: rgba(0,0,0,0.2);
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.intro.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-text {
    font-family: var(--heading); font-size: 0.95rem; font-weight: 400;
    color: rgba(255,255,255,0.7); letter-spacing: 2.5px;
    text-transform: uppercase; font-variant: small-caps;
    animation: pulse-text 2.5s ease-in-out infinite;
}
@keyframes pulse-text { 0%,100%{ opacity:0.35; } 50%{ opacity:1; } }

/* === MAIN === */
.main {
    position: fixed; inset: 0; z-index: 10;
    display: flex; flex-direction: column;
    opacity: 0; pointer-events: none;
    transition: opacity 0.8s ease 0.3s;
}
.main.visible { opacity: 1; pointer-events: all; }

/* === VOLUME (ELASTIC SLIDER) === */
.slider-container {
    position: fixed; top: 16px; left: 18px; z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 14rem;
    background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 24px; padding: 6px 14px;
    transition: var(--transition);
}
.slider-container:hover { background: rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.1); }

.slider-wrapper {
    display: flex;
    width: 100%;
    touch-action: none;
    user-select: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.slider-root {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 200px;
    flex-grow: 1;
    cursor: grab;
    touch-action: none;
    user-select: none;
    align-items: center;
    padding: 6px 0;
}
.slider-root:active { cursor: grabbing; }

.slider-track-wrapper {
    display: flex;
    flex-grow: 1;
}

.slider-track {
    position: relative;
    height: 4px;
    flex-grow: 1;
    overflow: hidden;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.2);
}

.slider-range {
    position: absolute;
    height: 100%;
    background-color: #82d501;
    border-radius: 9999px;
}

.value-indicator {
    color: rgba(255,255,255,0.6);
    position: absolute;
    transform: translateY(-1rem);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    left: 50%;
    top: -5px;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.slider-container:hover .value-indicator { opacity: 1; }

.slider-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

/* === SCROLL AREA === */
.scroll-area {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    padding: 50px 0 50px;
}
.scroll-area::-webkit-scrollbar { width: 3px; }
.scroll-area::-webkit-scrollbar-track { background: transparent; }
.scroll-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }

.content-col {
    max-width: 560px; margin: 0 auto; padding: 0 20px;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}

/* ============================
   HERO
   ============================ */
.hero {
    display: flex; flex-direction: column; align-items: center;
    gap: 5px; padding: 30px 0 12px;
    animation: fadeUp 0.6s ease-out;
}

.hero-avatar {
    width: 96px; height: 96px; border-radius: 50%;
    overflow: hidden; border: 2.5px solid rgba(255,255,255,0.12);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
    transition: var(--transition);
}
.hero-avatar:hover { transform: scale(1.05); border-color: rgba(255,255,255,0.25); }
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }

.hero-name {
    font-family: var(--heading); font-size: 1.75rem; font-weight: 700;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6), 0 0 15px rgba(255, 255, 255, 0.4); margin-top: 8px;
    min-height: 2.2rem; display: flex; align-items: center;
}

#typewriter {
    display: inline-block;
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shiny-text-anim 3s linear infinite;
    background-image: linear-gradient(120deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.6) 35%, rgba(255,255,255,1) 50%, rgba(255,255,255,0.6) 65%, rgba(255,255,255,0.6) 100%);
}
@keyframes shiny-text-anim {
    0% { background-position: 150% center; }
    100% { background-position: -50% center; }
}

/* Typewriter cursor */
.typewriter-cursor {
    font-weight: 300; color: rgba(255,255,255,0.8);
    animation: blink-cursor 0.75s step-end infinite;
    margin-left: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}
@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

.hero-icons { display: flex; gap: 8px; margin: 8px 0 4px; }
.hero-icons span {
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; color: rgba(255,255,255,0.3);
    transition: var(--transition); cursor: default;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-icons span:hover {
    background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8);
    transform: scale(1.15); border-color: rgba(255,255,255,0.15);
}

.hero-views {
    font-size: 0.7rem; color: rgba(255,255,255,0.25);
    display: flex; align-items: center; gap: 4px;
}

/* ============================
   ROBLOX BAR
   ============================ */
.roblox-bar {
    display: flex; align-items: center; gap: 14px;
    width: 100%; padding: 14px 18px;
    border-radius: var(--radius);
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    text-decoration: none; color: #fff;
    transition: var(--transition); cursor: pointer;
    backface-visibility: hidden; will-change: transform, box-shadow;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
}
.roblox-bar:hover {
    background: rgba(0,0,0,0.45);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-3px) scale(1.025);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.roblox-bar-avatar {
    position: relative; width: 50px; height: 50px; flex-shrink: 0;
}
.roblox-bar-avatar img {
    width: 50px; height: 50px; border-radius: 50%;
    object-fit: cover; border: 2px solid rgba(255,255,255,0.1);
}
.dot-online {
    position: absolute; bottom: 1px; right: 1px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--green); border: 2.5px solid rgba(0,0,0,0.7);
    box-shadow: 0 0 6px rgba(59,165,92,0.5);
}

.roblox-bar-info { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.roblox-bar-name {
    font-family: var(--heading); font-size: 0.9rem;
    font-weight: 700; letter-spacing: 0.3px;
}
.roblox-bar-user {
    font-size: 0.72rem; color: rgba(255,255,255,0.4);
    display: flex; align-items: center; gap: 3px;
}
.roblox-logo { width: 11px; height: 11px; opacity: 0.4; filter: brightness(10); }
.roblox-bar-stats { font-size: 0.68rem; color: rgba(255,255,255,0.25); margin-top: 1px; }

/* Follow Button */
.roblox-follow-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 16px; border-radius: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    font-size: 0.72rem; font-weight: 600;
    font-family: var(--heading);
    letter-spacing: 0.3px;
    transition: var(--transition);
    flex-shrink: 0; cursor: pointer;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.roblox-follow-btn i { font-size: 0.65rem; }
.roblox-follow-btn:hover {
    background: var(--green); border-color: var(--green);
    color: #fff; box-shadow: 0 4px 16px rgba(59,165,92,0.3);
}

/* ============================
   DISCORD SERVER BARS
   ============================ */
.server-list {
    display: flex; flex-direction: column; gap: 12px; width: 100%;
}

.server-bar {
    position: relative; width: 100%;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    backface-visibility: hidden; will-change: transform, box-shadow;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    /* Styles handled by border-glow-card now */
}
.server-bar:hover {
    transform: translateY(-4px) scale(1.025);
    z-index: 10;
}

.sb-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.sb-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.25) 100%);
}

.sb-glass {
    position: absolute; inset: 0;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    background: rgba(0,0,0,0.15);
}

.sb-no-banner {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}

.sb-content {
    position: relative; z-index: 2;
    display: flex; align-items: center;
    padding: 16px; gap: 14px;
    min-height: 88px;
}

.sb-icon {
    width: 52px; height: 52px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    border: 2.5px solid rgba(255,255,255,0.15);
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    transition: var(--transition);
}
.server-bar:hover .sb-icon {
    border-color: rgba(255,255,255,0.3); transform: scale(1.06);
}

.sb-icon-placeholder {
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 2.5px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6); font-size: 1.1rem; font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.sb-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }

.sb-name {
    font-family: var(--heading); font-size: 0.88rem;
    font-weight: 700; color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
    display: flex; align-items: center; gap: 5px;
    letter-spacing: 0.2px;
}
.sb-verified {
    width: 14px; height: 14px; display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 0.5rem; color: #fff;
    background: var(--blurple); border-radius: 50%;
}

.sb-counts { display: flex; flex-direction: column; gap: 1px; }
.sb-count {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.72rem; font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    color: rgba(255,255,255,0.75);
}
.sb-count .dot-g {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--green); display: inline-block;
    box-shadow: 0 0 5px rgba(59,165,92,0.5);
}
.sb-count .dot-w {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,0.3); display: inline-block;
}

.sb-bottom {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 16px 12px;
}
.sb-desc {
    font-size: 0.72rem; color: rgba(255,255,255,0.45);
    flex: 1; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 72%;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.sb-join {
    padding: 5px 20px; border-radius: 4px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem; font-weight: 800;
    text-decoration: none; transition: var(--transition);
    font-family: var(--font); letter-spacing: 0.3px;
    text-transform: uppercase; flex-shrink: 0;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.sb-join:hover {
    background: var(--blurple); border-color: var(--blurple);
    color: #fff; box-shadow: 0 4px 16px rgba(88,101,242,0.35);
}

/* === WATERMARK — Bottom of content === */
.watermark {
    margin-top: 10px;
    padding: 6px 16px; border-radius: 16px;
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    font-size: 0.65rem; color: rgba(255,255,255,0.2); letter-spacing: 0.3px;
    pointer-events: none; text-align: center;
}
.watermark strong { color: rgba(255,255,255,0.35); }

/* ============================
   NOW PLAYING MUSIC CARD (Minimal)
   ============================ */
.music-card {
    position: fixed;
    bottom: 24px; left: 24px;
    z-index: 40;
    display: flex;
    animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s backwards;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

.music-card-inner {
    display: flex; align-items: center; gap: 14px;
    padding: 10px;
}

/* Equalizer Bars */
.music-eq {
    display: flex; align-items: center; gap: 4px;
    height: 32px; flex-shrink: 0;
}
.eq-bar {
    width: 5px; border-radius: 3px;
    background: #82d501;
    box-shadow: 0 0 10px rgba(130, 213, 1, 0.6);
    animation: eq-bounce 0.8s ease-in-out var(--delay) infinite alternate;
}
@keyframes eq-bounce {
    0% { height: 8px; opacity: 0.6; }
    100% { height: 28px; opacity: 1; filter: brightness(1.2); }
}

.music-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.music-title {
    font-family: var(--heading); font-size: 1.1rem;
    font-weight: 800; color: #fff;
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.music-artist {
    font-size: 0.8rem; color: rgba(255,255,255,0.6);
    font-weight: 500;
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis;
}

/* === ANIMATIONS === */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .vol-wrap { top: 10px; left: 10px; padding: 5px 10px; }
    .vol-range { width: 55px; }
    .content-col { padding: 0 12px; gap: 10px; }
    .hero-name { font-size: 1.4rem; }
    .hero-avatar { width: 76px; height: 76px; }
    .hero-avatar img { width: 76px; height: 76px; }
    .sb-content { padding: 12px; min-height: 72px; }
    .sb-icon, .sb-icon-placeholder { width: 42px; height: 42px; }
    .sb-name { font-size: 0.8rem; }
    .roblox-follow-btn { padding: 5px 12px; font-size: 0.68rem; }
    .music-card { width: calc(100% - 24px); left: 12px; bottom: 12px; }
    .music-cover { width: 40px; height: 40px; }
    .music-title { font-size: 0.75rem; }
    .music-eq { height: 20px; }
    .eq-bar { width: 2.5px; }
}

/* ============================
   BORDER GLOW CARD
   ============================ */
.border-glow-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 30;
  --color-sensitivity: calc(var(--edge-sensitivity) + 20);
  --border-radius: 28px;
  --glow-padding: 40px;
  --cone-spread: 25;

  position: relative;
  border-radius: var(--border-radius);
  isolation: isolate;
  transform: translate3d(0, 0, 0.01px);
  display: grid;
  border: 1px solid rgb(255 255 255 / 15%);
  background: var(--card-bg, #120F17);
  overflow: visible;
  box-shadow:
    rgba(0, 0, 0, 0.1) 0px 1px 2px,
    rgba(0, 0, 0, 0.1) 0px 2px 4px,
    rgba(0, 0, 0, 0.1) 0px 4px 8px,
    rgba(0, 0, 0, 0.1) 0px 8px 16px,
    rgba(0, 0, 0, 0.1) 0px 16px 32px,
    rgba(0, 0, 0, 0.1) 0px 32px 64px;
}

.border-glow-card::before,
.border-glow-card::after,
.border-glow-card > .edge-light {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity 0.25s ease-out;
  z-index: -1;
}

.border-glow-card:not(:hover):not(.sweep-active)::before,
.border-glow-card:not(:hover):not(.sweep-active)::after,
.border-glow-card:not(:hover):not(.sweep-active) > .edge-light {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

/* colored mesh-gradient border */
.border-glow-card::before {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-bg, #120F17) 0 100%) padding-box,
    linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box,
    var(--gradient-one, radial-gradient(at 80% 55%, hsla(268, 100%, 76%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-two, radial-gradient(at 69% 34%, hsla(349, 100%, 74%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-three, radial-gradient(at 8% 6%, hsla(136, 100%, 78%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-four, radial-gradient(at 41% 38%, hsla(192, 100%, 64%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-five, radial-gradient(at 86% 85%, hsla(186, 100%, 74%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-six, radial-gradient(at 82% 18%, hsla(52, 100%, 65%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-seven, radial-gradient(at 51% 4%, hsla(12, 100%, 72%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-base, linear-gradient(#c299ff 0 100%)) border-box;

  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));

  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black calc(var(--cone-spread) * 1%),
      transparent calc((var(--cone-spread) + 15) * 1%),
      transparent calc((100 - var(--cone-spread) - 15) * 1%),
      black calc((100 - var(--cone-spread)) * 1%)
    );
  -webkit-mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black calc(var(--cone-spread) * 1%),
      transparent calc((var(--cone-spread) + 15) * 1%),
      transparent calc((100 - var(--cone-spread) - 15) * 1%),
      black calc((100 - var(--cone-spread)) * 1%)
    );
}

/* colored mesh-gradient background fill near edges */
.border-glow-card::after {
  border: 1px solid transparent;
  background:
    var(--gradient-one, radial-gradient(at 80% 55%, hsla(268, 100%, 76%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-two, radial-gradient(at 69% 34%, hsla(349, 100%, 74%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-three, radial-gradient(at 8% 6%, hsla(136, 100%, 78%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-four, radial-gradient(at 41% 38%, hsla(192, 100%, 64%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-five, radial-gradient(at 86% 85%, hsla(186, 100%, 74%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-six, radial-gradient(at 82% 18%, hsla(52, 100%, 65%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-seven, radial-gradient(at 51% 4%, hsla(12, 100%, 72%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-base, linear-gradient(#c299ff 0 100%)) padding-box;

  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  
  -webkit-mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);

  mask-composite: subtract, add, add, add, add, add;
  -webkit-mask-composite: source-out, source-over, source-over, source-over, source-over, source-over;
  opacity: calc(var(--fill-opacity, 0.5) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
}

/* outer glow layer */
.border-glow-card > .edge-light {
  inset: calc(var(--glow-padding) * -1);
  pointer-events: none;
  z-index: 1;

  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%
    );
  -webkit-mask-image:
    conic-gradient(
      from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%
    );

  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
}

.border-glow-card > .edge-light::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--glow-color, hsl(40deg 80% 80% / 100%)),
    inset 0 0 1px 0 var(--glow-color-60, hsl(40deg 80% 80% / 60%)),
    inset 0 0 3px 0 var(--glow-color-50, hsl(40deg 80% 80% / 50%)),
    inset 0 0 6px 0 var(--glow-color-40, hsl(40deg 80% 80% / 40%)),
    inset 0 0 15px 0 var(--glow-color-30, hsl(40deg 80% 80% / 30%)),
    inset 0 0 25px 2px var(--glow-color-20, hsl(40deg 80% 80% / 20%)),
    inset 0 0 50px 2px var(--glow-color-10, hsl(40deg 80% 80% / 10%)),
    0 0 1px 0 var(--glow-color-60, hsl(40deg 80% 80% / 60%)),
    0 0 3px 0 var(--glow-color-50, hsl(40deg 80% 80% / 50%)),
    0 0 6px 0 var(--glow-color-40, hsl(40deg 80% 80% / 40%)),
    0 0 15px 0 var(--glow-color-30, hsl(40deg 80% 80% / 30%)),
    0 0 25px 2px var(--glow-color-20, hsl(40deg 80% 80% / 20%)),
    0 0 50px 2px var(--glow-color-10, hsl(40deg 80% 80% / 10%));
}

.border-glow-inner {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-radius: inherit;
  height: 100%;
}

