.demo-3d-card-flip .flip-card{width: 200px;height: 130px;perspective: 800px;}:is(.demo-3d-card-flip .flip-card):hover .flip-inner{transform: rotateY(180deg);}.demo-3d-card-flip .flip-inner{width: 100%;height: 100%;position: relative;transform-style: preserve-3d;transition: transform .55s ease;}.demo-3d-card-flip .flip-front,.demo-3d-card-flip .flip-back{position: absolute;inset: 0;border-radius: 12px;backface-visibility: hidden;display: flex;flex-direction: column;align-items: center;justify-content: center;font-size: .95rem;font-weight: 600;padding: 1rem;text-align: center;}.demo-3d-card-flip .flip-front{background: var(--accent-in-palette);color: var(--bg);}.demo-3d-card-flip .flip-back{background: var(--violet);color: var(--bg);transform: rotateY(180deg);}@media (prefers-reduced-motion: reduce){.demo-3d-card-flip .flip-inner{transition: none;}}
.demo-before-after-slider{--ba-w: 480px;--ba-h: 300px;flex-direction: column;align-items: center;gap: 1rem;}.demo-before-after-slider .ba-frame{position: relative;width: var(--ba-w);height: var(--ba-h);max-width: 100%;overflow: hidden;border-radius: var(--radius-lg);border: 1px solid var(--border);}.demo-before-after-slider .ba-img{display: block;width: var(--ba-w);height: var(--ba-h);object-fit: cover;}.demo-before-after-slider .ba-before{position: absolute;top: 0;left: 0;height: 100%;width: 55%;min-width: 28px;max-width: 100%;overflow: hidden;resize: horizontal;}.demo-before-after-slider .ba-before .ba-img{filter: grayscale(1) contrast(.88) brightness(1.04);}:is(.demo-before-after-slider .ba-before)::after{content: "";position: absolute;top: 0;right: 0;bottom: 0;width: 3px;background: var(--accent);pointer-events: none;}:is(.demo-before-after-slider .ba-before)::before{content: "";position: absolute;right: 3px;bottom: 3px;width: 16px;height: 16px;border-radius: 4px;background: var(--accent);pointer-events: none;z-index: 1;}.demo-before-after-slider .ba-tag{position: absolute;top: 10px;font-family: var(--font-mono);font-size: .6rem;letter-spacing: .08em;text-transform: uppercase;padding: .2rem .5rem;border-radius: 999px;background: rgba(12, 12, 13, .72);color: #f0f0f0;pointer-events: none;}.demo-before-after-slider .ba-tag-before{left: 10px;}.demo-before-after-slider .ba-tag-after{right: 10px;}.demo-before-after-slider .ba-hint{font-family: var(--font-mono);font-size: .7rem;color: var(--text-muted);}@media (hover: none){.demo-before-after-slider .ba-wipe-frame .ba-wipe-pane{width: 55%;transition: none;}}@media (max-width: 560px){.demo-before-after-slider{--ba-w: 300px;--ba-h: 200px;}}@media (prefers-reduced-motion: reduce){.demo-before-after-slider .ba-swap-frame .ba-layer, .demo-before-after-slider .ba-wipe-frame .ba-wipe-pane{transition-duration: .01ms;}}
.demo-confetti .confetti-stage{position: relative;width: 100%;height: 220px;overflow: hidden;border-radius: var(--radius-lg);background: var(--surface);display: flex;align-items: center;justify-content: center;}.demo-section > .demo-wrapper.demo-confetti{padding: 0;overflow: hidden;}.demo-section > .demo-wrapper.demo-confetti .confetti-stage{border-radius: 0;height: 240px;}.demo-confetti .confetti-text{font-size: 1.25rem;font-weight: 700;z-index: 1;position: relative;}.demo-confetti .confetti-field{position: absolute;inset: 0 3%;display: flex;justify-content: space-between;align-items: flex-start;}.demo-confetti .piece{position: relative;top: -18px;flex: 0 0 auto;width: 10px;height: 10px;border-radius: 2px;animation: confetti-fall 1.8s linear infinite;}.demo-confetti .piece:nth-child(8n+1){background: var(--coral);}.demo-confetti .piece:nth-child(8n+2){background: var(--sky);}.demo-confetti .piece:nth-child(8n+3){background: var(--yellow);}.demo-confetti .piece:nth-child(8n+4){background: var(--accent);}.demo-confetti .piece:nth-child(8n+5){background: var(--rose);}.demo-confetti .piece:nth-child(8n+6){background: var(--teal);}.demo-confetti .piece:nth-child(8n+7){background: var(--violet);}.demo-confetti .piece:nth-child(8n){background: var(--orange);}.demo-confetti .piece:nth-child(5n+1){width: 8px;height: 12px;}.demo-confetti .piece:nth-child(5n+2){width: 12px;height: 8px;border-radius: 50%;}.demo-confetti .piece:nth-child(5n+3){width: 6px;height: 14px;}.demo-confetti .piece:nth-child(5n+4){width: 14px;height: 6px;}.demo-confetti .piece:nth-child(5n){width: 9px;height: 9px;border-radius: 50%;}.demo-confetti .piece:nth-child(7n+1){animation-duration: 1.86s;}.demo-confetti .piece:nth-child(7n+2){animation-duration: 1.5s;}.demo-confetti .piece:nth-child(7n+3){animation-duration: 2.1s;}.demo-confetti .piece:nth-child(7n+4){animation-duration: 1.62s;}.demo-confetti .piece:nth-child(7n+5){animation-duration: 2.22s;}.demo-confetti .piece:nth-child(7n+6){animation-duration: 1.74s;}.demo-confetti .piece:nth-child(7n){animation-duration: 1.98s;}.demo-confetti .piece:nth-child(11n+1){animation-delay: -0.9s;}.demo-confetti .piece:nth-child(11n+2){animation-delay: -1.7s;}.demo-confetti .piece:nth-child(11n+3){animation-delay: -0.3s;}.demo-confetti .piece:nth-child(11n+4){animation-delay: -2.05s;}.demo-confetti .piece:nth-child(11n+5){animation-delay: -1.2s;}.demo-confetti .piece:nth-child(11n+6){animation-delay: -0.55s;}.demo-confetti .piece:nth-child(11n+7){animation-delay: -1.95s;}.demo-confetti .piece:nth-child(11n+8){animation-delay: -0.75s;}.demo-confetti .piece:nth-child(11n+9){animation-delay: -1.45s;}.demo-confetti .piece:nth-child(11n+10){animation-delay: -0.15s;}.demo-confetti .piece:nth-child(11n){animation-delay: -2.3s;}.demo-confetti .piece:nth-child(3n+2){margin-left: 1.4%;}.demo-confetti .piece:nth-child(3n){margin-right: 1.8%;}@keyframes confetti-fall{0%{transform: translateY(0) rotate(0deg) scaleX(1);opacity: 1;}25%{transform: translateY(16px) rotate(90deg) scaleX(0);}50%{transform: translateY(65px) rotate(180deg) scaleX(-1);}75%{transform: translateY(146px) rotate(270deg) scaleX(0);opacity: 1;}100%{transform: translateY(260px) rotate(360deg) scaleX(1);opacity: 0;}}@media (prefers-reduced-motion: reduce){.demo-confetti .piece, .demo-confetti .cannon-piece, .demo-confetti .burst-piece{display: none;}}
