/* TKL Glowing Button v1.3.0
   Moving conic-gradient is applied directly to the border background to avoid layering issues. */
@property --tkl-gb-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}
.tkl-gb-wrap {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    margin: 26px 0;
    padding: 8px 4px;
}
.tkl-gb-align-left { justify-content: flex-start; }
.tkl-gb-align-center { justify-content: center; }
.tkl-gb-align-right { justify-content: flex-end; }

.tkl-gb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 21px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 26px 52px;
    border: 5px solid transparent;
    border-radius: 999px;
    background:
        linear-gradient(#08090e, #08090e) padding-box,
        conic-gradient(
            from var(--tkl-gb-angle),
            #ffd166 0deg,
            #ff8c42 55deg,
            #ff3d81 110deg,
            #b45cff 165deg,
            #5b7cfa 220deg,
            #35d7f2 275deg,
            #c6ff66 320deg,
            #ffd166 360deg
        ) border-box;
    color: #ffffff !important;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    overflow-wrap: anywhere;
    box-shadow:
        0 0 8px rgba(255, 171, 64, .38),
        0 0 18px rgba(255, 61, 129, .24),
        0 0 26px rgba(91, 124, 250, .18);
    animation: tkl-gb-light-travel 3.2s linear infinite;
    transition: transform .2s ease, box-shadow .2s ease;
}
.tkl-gb-button:hover,
.tkl-gb-button:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow:
        0 0 12px rgba(255, 209, 102, .62),
        0 0 25px rgba(255, 61, 129, .38),
        0 0 36px rgba(91, 124, 250, .28);
}
.tkl-gb-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 5px;
}
.tkl-gb-icon {
    display: inline-block;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
}
@keyframes tkl-gb-light-travel {
    from { --tkl-gb-angle: 0deg; }
    to   { --tkl-gb-angle: 360deg; }
}

/* Fallback for browsers that do not support animating registered custom properties. */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
    .tkl-gb-button {
        border: 5px solid #ff3d81;
        background: #08090e;
        animation: none;
        box-shadow: 0 0 10px rgba(255,61,129,.55), 0 0 22px rgba(91,124,250,.3);
    }
}
@media (max-width: 768px) {
    .tkl-gb-button { font-size: 33px; padding: 23px 42px; }
}
@media (max-width: 480px) {
    .tkl-gb-wrap { margin: 20px 0; }
    .tkl-gb-button { font-size: 28px; padding: 19px 31px; border-width: 4px; gap: 14px; }
    .tkl-gb-icon { width: 33px; height: 33px; flex-basis: 33px; }
}
@media (prefers-reduced-motion: reduce) {
    .tkl-gb-button { animation: none !important; transition: none !important; }
}
