/*
 * Galaxy / Uiverse components, adapted for ts4m.dev, 2026.
 * Sources pinned at uiverse-io/galaxy@adbd2adde0a299a3956ea288fb444ec01891ca41.
 * MuhammadHasann: sparkle; Clenio21: masked conic border; Lakshay-art: search;
 * vinodjangid07: save pin; AqFox: six-face cube; satyamchaudharydev: arrow,
 * staggered text link, sliding switch. Full provenance: content/red-gold/galaxy-manifest.json.
 * Palette, responsive sizing, keyboard/touch support and motion controls are ts4m adaptations.
 *
 * MIT License
 * Copyright (c) 2023 Uiverse.io
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
@property --rgx-angle{syntax:'<angle>';initial-value:0deg;inherits:false}
:where(.rgx-sparkle,.rgx-border,.rgx-arrow,.rgx-search,.rgx-save,.rgx-cube,.rgx-social,.rgx-motion){--rgx-red:#e63b2e;--rgx-yellow:#ffd43b;--rgx-white:#fffdf7;--rgx-ink:#2e2020;box-sizing:border-box}
:where(.rgx-sparkle,.rgx-arrow,.rgx-save,.rgx-social,.rgx-motion){-webkit-tap-highlight-color:transparent;touch-action:manipulation}
:where(.rgx-sparkle,.rgx-arrow,.rgx-save,.rgx-social,.rgx-motion):focus-visible{outline:3px solid #2e2020;outline-offset:6px}
/* 01. MuhammadHasann / mean-bird-62: layered light, orbiting edge and SVG star pulses. */
.rgx-sparkle{--rgx-active:0;position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;gap:.75rem;min-height:58px;padding:1rem 1.65rem;border:0;border-radius:999px;background:var(--rgx-red);color:var(--rgx-white);font-family:inherit;font-size:20px;font-weight:750;line-height:1.2;text-decoration:none;cursor:pointer;box-shadow:0 6px 0 #a3211a,0 13px 24px #e63b2e26;transform:translateY(0);transition:transform .25s ease,box-shadow .25s ease}
.rgx-sparkle::before,.rgx-sparkle::after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none}
.rgx-sparkle::before{z-index:-1;background:var(--rgx-red);box-shadow:inset 0 1px 1px #fff8,inset 0 -2px 3px #97150a50,0 0 0 calc(var(--rgx-active)*6px) #ffd43b80;transition:box-shadow .3s}
.rgx-sparkle::after{z-index:-1;opacity:var(--rgx-active);background:radial-gradient(at 15% 10%,#ec4936 0,transparent 58%),radial-gradient(at 100% 90%,#a3211a 0,transparent 50%);transition:opacity .3s}
.rgx-sparkle:is(:hover,:focus-visible){--rgx-active:1;transform:translateY(-3px);box-shadow:0 9px 0 #a3211a,0 17px 28px #e63b2e35}
.rgx-sparkle:active{transform:translateY(5px);box-shadow:0 1px 0 #a3211a,0 4px 10px #e63b2e26}
.rgx-sparkle-edge{position:absolute;inset:-2px;border-radius:inherit;overflow:hidden;z-index:-2;pointer-events:none}
.rgx-sparkle-edge::before{content:'';position:absolute;top:30%;left:50%;width:100%;height:2rem;background:#ffd43b;mask:linear-gradient(transparent 0%,white 120%);transform-origin:left;animation:rgx-edge-spin 4s linear infinite}
.rgx-sparkle svg{width:27px;height:27px;flex:none;overflow:visible;fill:currentColor;stroke:currentColor}
.rgx-sparkle svg path{transform-origin:center;transform-box:fill-box}
.rgx-sparkle:is(:hover,:focus-visible) svg path{animation:rgx-star-pulse 1.6s linear infinite}
.rgx-sparkle svg path:nth-child(2){animation-delay:.25s!important}.rgx-sparkle svg path:nth-child(3){animation-delay:.5s!important}
@keyframes rgx-star-pulse{0%,34%,71%,100%{transform:scale(1)}17%{transform:scale(1.3)}49%{transform:scale(.9)}83%{transform:scale(1.15)}}
@keyframes rgx-edge-spin{to{transform:rotate(360deg)}}
/* 02. Clenio21 / stale-sloth-57: preserve the two-mask conic edge; rotate its angle
   instead of hue so the requested red/yellow palette stays intact. */
.rgx-border{--rgx-radius:24px;--rgx-width:3px;position:relative;isolation:isolate;border-radius:var(--rgx-radius);background:var(--rgx-white);box-shadow:0 8px 0 #2e20200c,0 18px 38px #7832180c;transition:box-shadow .3s,transform .3s}
.rgx-border::after{--rgx-angle:0deg;content:'';position:absolute;inset:0;box-sizing:border-box;z-index:3;padding:var(--rgx-width);border-radius:inherit;pointer-events:none;background:conic-gradient(from var(--rgx-angle),#e63b2e,#ffd43b 20%,#fff3b5 35%,#e63b2e 55%,#ffd43b 78%,#e63b2e);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:rgx-border-orbit 7s linear infinite;animation-play-state:paused}
.rgx-border:is(:hover,:focus-within){box-shadow:0 12px 0 #e63b2e12,0 24px 44px #78321818;transform:translateY(-4px)}
.rgx-border:is(:hover,:focus-within)::after{animation-play-state:running}
@keyframes rgx-border-orbit{to{--rgx-angle:360deg}}
/* 03. satyamchaudharydev / modern-sheep-10: expanding shaft + sliding arrowhead. */
.rgx-arrow{display:inline-flex;align-items:center;justify-content:center;gap:1rem;min-height:50px;padding:.9rem 1.35rem;box-sizing:border-box;border:1.5px solid var(--rgx-ink);border-radius:16px;background:var(--rgx-yellow);color:var(--rgx-ink);font:inherit;font-weight:750;text-decoration:none;cursor:pointer;box-shadow:3px 4px 0 var(--rgx-ink);transition:background .2s,transform .2s,box-shadow .2s}
.rgx-arrow-shaft{display:inline-block;position:relative;flex:none;width:16px;height:2px;background:transparent;transition:background .2s}
.rgx-arrow-shaft::before{content:'';position:absolute;top:-4px;right:4px;width:9px;height:9px;border:solid currentColor;border-width:2px 2px 0 0;box-sizing:border-box;transform:rotate(45deg);transition:right .2s}
.rgx-arrow:is(:hover,:focus-visible){background:#ffe677;transform:translate(-2px,-2px);box-shadow:5px 6px 0 var(--rgx-ink)}
.rgx-arrow:is(:hover,:focus-visible) .rgx-arrow-shaft{background:currentColor}.rgx-arrow:is(:hover,:focus-visible) .rgx-arrow-shaft::before{right:0}
.rgx-arrow:active{transform:translate(3px,4px);box-shadow:0 0 0 var(--rgx-ink)}
/* 04. Lakshay-art / curvy-earwig-22: three concentric clipped conic beams.
   Existing input and filtering stay owned by the page. Decorative masks removed. */
.rgx-search{position:relative;isolation:isolate;display:flex;align-items:center;max-width:100%;min-height:60px;border:2px solid #efb748;border-radius:18px;background:var(--rgx-white);box-shadow:0 5px 0 #efb74824}
.rgx-search input{position:relative;z-index:1;min-width:0;width:100%;min-height:56px;margin:0!important;padding:1rem 1.2rem!important;border:0!important;border-radius:16px!important;background:var(--rgx-white)!important;color:var(--rgx-ink)!important;font:inherit;outline-offset:6px}
.rgx-search input::placeholder{color:#756158;opacity:1}.rgx-search input:focus{outline:3px solid #a62c22!important;outline-offset:4px}
.rgx-search-beam{position:absolute;inset:-4px;border-radius:inherit;overflow:hidden;z-index:-1;pointer-events:none;filter:blur(1px)}
.rgx-search-beam::before{content:'';position:absolute;left:50%;top:50%;width:160%;aspect-ratio:1;transform:translate(-50%,-50%) rotate(70deg);background:conic-gradient(transparent,#e63b2e 5%,transparent 14%,transparent 50%,#ffd43b 60%,transparent 64%);transition:transform 1.6s ease}
.rgx-search-beam:nth-of-type(2){inset:-7px;filter:blur(5px);opacity:.65}.rgx-search-beam:nth-of-type(2)::before{transform:translate(-50%,-50%) rotate(82deg)}
.rgx-search-beam:nth-of-type(3){inset:-11px;filter:blur(16px);opacity:.25}.rgx-search-beam:nth-of-type(3)::before{transform:translate(-50%,-50%) rotate(60deg)}
.rgx-search:is(:hover,:focus-within) .rgx-search-beam::before{transform:translate(-50%,-50%) rotate(430deg)}
/* 05. vinodjangid07 / sour-rabbit-84: tilted pin fills when the item is saved.
   A real aria-pressed button replaces the inaccessible display:none checkbox. */
.rgx-save{display:inline-flex;align-items:center;justify-content:center;gap:.65rem;min-height:48px;padding:.75rem 1rem;border:1.5px solid #d5b9a5;border-radius:14px;background:var(--rgx-white);color:var(--rgx-ink);font:inherit;font-size:.85rem;font-weight:700;cursor:pointer;box-shadow:0 3px 0 #d5b9a5;transition:background .2s,transform .2s,box-shadow .2s}
.rgx-save:not([data-rgx-ready]){display:none}.rgx-save svg{width:17px;height:23px;flex:none;fill:none;stroke:currentColor;transform:rotate(35deg);transition:transform .25s,fill .25s}
.rgx-save:is(:hover,:focus-visible){background:#fff1b1;transform:translateY(-2px);box-shadow:0 5px 0 #d5b9a5}
.rgx-save[aria-pressed=true]{background:var(--rgx-yellow);border-color:#c29a21;box-shadow:0 3px 0 #c29a21}.rgx-save[aria-pressed=true] svg{fill:var(--rgx-red);stroke:var(--rgx-red);transform:rotate(0)}
.rgx-save:active{transform:translateY(3px);box-shadow:none}
.rgx-save-status{display:block;min-height:1.4em;margin-top:.5rem;color:#76594c;font-size:.76rem;line-height:1.4}
/* 06. AqFox / young-dragon-29: original six face geometry and two-axis spin. */
.rgx-cube{--rgx-size:58px;position:relative;display:block;width:var(--rgx-size);height:var(--rgx-size);transform-style:preserve-3d;transform:rotate(45deg) rotateX(-25deg) rotateY(25deg);animation:rgx-cube-turn 10s ease-in-out infinite;pointer-events:none}
.rgx-cube>span{position:absolute;inset:0;background:#ffd43b66;border:2px solid #e63b2e;backface-visibility:visible;box-shadow:inset 0 0 24px #fff8}
.rgx-cube>span:nth-child(1){transform:translateZ(calc(var(--rgx-size)*-.5)) rotateY(180deg)}
.rgx-cube>span:nth-child(2){transform:rotateY(-270deg) translateX(50%);transform-origin:top right}
.rgx-cube>span:nth-child(3){transform:rotateY(270deg) translateX(-50%);transform-origin:center left}
.rgx-cube>span:nth-child(4){transform:rotateX(90deg) translateY(-50%);transform-origin:top center}
.rgx-cube>span:nth-child(5){transform:rotateX(-90deg) translateY(50%);transform-origin:bottom center}
.rgx-cube>span:nth-child(6){transform:translateZ(calc(var(--rgx-size)*.5));background:#e63b2e44}
@keyframes rgx-cube-turn{0%{transform:rotate(45deg) rotateX(-25deg) rotateY(25deg)}50%{transform:rotate(45deg) rotateX(-385deg) rotateY(25deg)}100%{transform:rotate(45deg) rotateX(-385deg) rotateY(385deg)}}
/* 07. satyamchaudharydev / hungry-parrot-44: staggered clone text, underline
   reversal and diagonal arrow. Links keep their actual href and accessible text. */
.rgx-social{position:relative;display:inline-flex;align-items:center;gap:1rem;min-height:48px;max-width:100%;padding:.7rem 2.1rem .7rem 0;overflow:hidden;color:var(--rgx-ink);font:inherit;font-weight:700;text-decoration:none;border:0;border-radius:0;background:transparent;cursor:pointer}
.rgx-social::before{content:'';position:absolute;height:2px;bottom:0;left:0;width:100%;transform:scaleX(0);transform-origin:bottom right;background:currentColor;transition:transform .25s ease-out}
.rgx-social:is(:hover,:focus-visible)::before{transform:scaleX(1);transform-origin:bottom left}
.rgx-social-text,.rgx-social-clone{display:inline-flex;gap:.3em;white-space:nowrap}.rgx-social-clone{position:absolute;left:0;top:.7rem;color:var(--rgx-red)}
.rgx-social-text>span,.rgx-social-clone>span{display:inline-block;transition:transform .25s cubic-bezier(.215,.61,.355,1)}
.rgx-social-clone>span{transform:translateY(60px)}
.rgx-social:is(:hover,:focus-visible) .rgx-social-text>span{transform:translateY(-60px)}
.rgx-social:is(:hover,:focus-visible) .rgx-social-clone>span{transform:translateY(0);transition-delay:calc(var(--rgx-word,0)*.04s + .08s)}
.rgx-social>svg{position:absolute;width:20px;height:20px;right:0;top:50%;transform:translateY(-50%) rotate(-35deg);transition:transform .25s ease-out}
.rgx-social:is(:hover,:focus-visible)>svg{transform:translateY(-50%) rotate(0)}
/* 08. satyamchaudharydev / shy-earwig-18: sliding circular switch.
   Day/night palette adapted; existing site code owns its motion control. */
.rgx-motion{display:inline-flex;align-items:center;gap:.7rem;min-height:44px;padding:6px 0;border:0;background:transparent;color:var(--rgx-ink);font:inherit;font-size:.82rem;font-weight:700;cursor:pointer}
.rgx-motion:not([data-rgx-ready]){display:none}.rgx-motion [data-motion-icon]{display:none}.rgx-motion-track{position:relative;display:inline-block;width:54px;height:30px;flex:none;background:#f4e6da;border:1px solid #b4957f;border-radius:999px;box-shadow:inset 0 2px 3px #2e20201a;transition:background .3s}
.rgx-motion-track::before{content:'';position:absolute;left:4px;top:50%;width:22px;height:22px;border-radius:50%;transform:translateY(-50%);background:linear-gradient(40deg,#e63b2e,#ffd43b 70%);box-shadow:0 2px 3px #2e202033;transition:left .3s,background .3s,box-shadow .3s}
.rgx-motion[aria-pressed=true] .rgx-motion-track{background:var(--rgx-yellow)}.rgx-motion[aria-pressed=true] .rgx-motion-track::before{left:calc(100% - 26px);background:#fffdf7;box-shadow:inset -4px -2px 0 #e63b2e,0 2px 3px #2e202033}
/* Every decorative animation stops when hidden, offscreen or under the arcade.
   Focus, state, labels, navigation and storage continue to work. */
:is(.page-hidden,.arcade-open,.rgx-offscreen) .rgx-cube,:is(.page-hidden,.arcade-open,.rgx-offscreen) .rgx-sparkle-edge::before,:is(.page-hidden,.arcade-open,.rgx-offscreen) .rgx-sparkle svg path,:is(.page-hidden,.arcade-open,.rgx-offscreen) .rgx-border::after,.rgx-cube.rgx-offscreen{animation-play-state:paused!important}
.rgx-offscreen::after,.rgx-offscreen::before{animation-play-state:paused!important}
.no-motion :is([class^=rgx-],[class*=' rgx-']),.no-motion :is([class^=rgx-],[class*=' rgx-']) *,.no-motion :is([class^=rgx-],[class*=' rgx-'])::before,.no-motion :is([class^=rgx-],[class*=' rgx-'])::after,.no-motion :is([class^=rgx-],[class*=' rgx-']) *::before,.no-motion :is([class^=rgx-],[class*=' rgx-']) *::after{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){:root:not(.allow-motion) :is([class^=rgx-],[class*=' rgx-']),:root:not(.allow-motion) :is([class^=rgx-],[class*=' rgx-']) *,:root:not(.allow-motion) :is([class^=rgx-],[class*=' rgx-'])::before,:root:not(.allow-motion) :is([class^=rgx-],[class*=' rgx-'])::after,:root:not(.allow-motion) :is([class^=rgx-],[class*=' rgx-']) *::before,:root:not(.allow-motion) :is([class^=rgx-],[class*=' rgx-']) *::after{animation:none!important;transition:none!important}}
@media(max-width:480px){.rgx-sparkle{padding:.95rem 1.3rem;min-height:54px}.rgx-arrow{padding:.8rem 1.1rem}.rgx-border{--rgx-radius:20px}}
