.home-redesign {
    --button-surface: #251831;
    --button-primary-surface: #412954;
    --button-text: #f3eaf9;
    --button-glow-base: #694783;
    --button-glow-bright: #fce4ff;
    --button-glow-accent: #e17aff;
    --button-glow-shadow: #d98bff75;
}

/* The base border also works when scripting is unavailable. */
@layer button-glow {
    .home-redesign :is(
        button,
        .grad-btn,
        .site-navigation-toggle,
        .trans-btn-box,
        .trans-btn-box-mob,
        .simple-arrow-btn,
        .cookie-decide li,
        .cookie-panel li,
        .button-glow-enhanced
    ) {
        background: var(--button-fill, var(--button-surface)) !important;
        border: 3px solid var(--button-glow-base) !important;
        color: var(--button-label, var(--button-text)) !important;
    }
}

.home-redesign :is(button, .grad-btn, .site-navigation-toggle, .trans-btn-box, .trans-btn-box-mob, .simple-arrow-btn, .cookie-decide li, .cookie-panel li) {
    border-radius: 0;
}

/* Leave existing fixed and absolute controls positioned by their own rules. */
:where(.button-glow-enhanced) {
    position: relative;
}

.button-glow-ring {
    position: absolute;
    inset: -3px;
    z-index: 1;
    padding: 3px;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}

.button-glow-ring::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(150%, 72px);
    aspect-ratio: 1;
    translate: -50% -50%;
    background: conic-gradient(
        var(--button-glow-base) 0deg 16deg,
        var(--button-glow-accent) 35deg,
        var(--button-glow-bright) 52deg 64deg,
        var(--button-glow-accent) 82deg,
        var(--button-glow-base) 120deg
    );
}

@media (prefers-reduced-motion: no-preference) {
    .button-glow-ring::before {
        animation: button-conic-glow 2.6s linear infinite;
    }
}

.home-redesign :is(.grad-btn, .main-btn, .site-theme-toggle, .rotate-captcha-verify-btn, .cookie-decide .allow) {
    --button-fill: var(--button-primary-surface);
}

.home-redesign :is(.trans-btn-box, .trans-btn-box-mob) .trans-btn {
    display: inline-block;
}

.home-redesign .simple-arrow-btn {
    padding: 10px 16px;
}

.home-redesign :is(#toTop, .response-popup-close, .rotate-captcha-arrow, .cookie-panel li) {
    border-radius: 50%;
}

.home-redesign .cookie-panel li {
    position: relative;
    flex: 0 0 28px;
    height: 28px;
}

.home-redesign .cookie-panel li i {
    display: none;
}

.home-redesign .cookie-panel li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    box-sizing: border-box;
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    /* Offset the visible chevron from the center of its rotated square. */
    transform: translate(calc(-50% - 1.75px), -50%) rotate(45deg);
}

.home-redesign .cookie-panel .consent-panel::before {
    transform: translate(calc(-50% + 1.75px), -50%) rotate(-135deg);
}

.home-redesign :is(
    button,
    .grad-btn,
    .site-navigation-toggle,
    .trans-btn-box,
    .trans-btn-box-mob,
    .simple-arrow-btn,
    .cookie-decide li,
    .cookie-panel li
):hover:not(:disabled) {
    box-shadow: 0 8px 26px -8px var(--button-glow-shadow);
}

.home-redesign :is(button, .grad-btn, .site-navigation-toggle, .trans-btn-box, .trans-btn-box-mob, .simple-arrow-btn):focus-visible {
    outline: 2px solid var(--button-glow-accent) !important;
    outline-offset: 3px;
}

.home-redesign button:disabled {
    --button-fill: var(--button-surface);
    --button-label: color-mix(in srgb, var(--button-text) 65%, var(--button-surface));
}

@keyframes button-conic-glow {
    to { transform: rotate(360deg); }
}
