|
| 1 | +@import "tailwindcss"; |
| 2 | + |
| 3 | +:root { |
| 4 | + --foreground-rgb: 255, 255, 255; |
| 5 | + --background-start-rgb: 0, 0, 0; |
| 6 | + --background-end-rgb: 0, 0, 0; |
| 7 | +} |
| 8 | + |
| 9 | +body { |
| 10 | + color: rgb(var(--foreground-rgb)); |
| 11 | + background: black; |
| 12 | +} |
| 13 | + |
| 14 | +/* Base text style (always visible) */ |
| 15 | +.text-base-layer { |
| 16 | + color: white; |
| 17 | + text-shadow: 0 0 2px rgba(255, 255, 255, 0.2); |
| 18 | +} |
| 19 | + |
| 20 | +/* Glowing text style (revealed by mask) */ |
| 21 | +.text-glow-layer { |
| 22 | + color: white; |
| 23 | + text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #00aaff, 0 0 40px #00aaff, 0 0 50px #00aaff, 0 0 60px #00aaff, 0 0 70px #00aaff; |
| 24 | +} |
| 25 | + |
| 26 | +/* Scanning Mask Animation */ |
| 27 | +@keyframes scan-mask { |
| 28 | + from { |
| 29 | + mask-position: -100% 0; |
| 30 | + -webkit-mask-position: -100% 0; |
| 31 | + } |
| 32 | + to { |
| 33 | + mask-position: 200% 0; |
| 34 | + -webkit-mask-position: 200% 0; |
| 35 | + } |
| 36 | +} |
| 37 | + |
| 38 | +.animate-scan-glow { |
| 39 | + /* Soft gradient mask - much wider transition to avoid hard edges */ |
| 40 | + mask-image: linear-gradient(to right, transparent 0%, black 40%, black 60%, transparent 100%); |
| 41 | + -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%, black 60%, transparent 100%); |
| 42 | + |
| 43 | + /* Make the mask image wider than the container so the gradient is stretched and soft */ |
| 44 | + mask-size: 200% 100%; |
| 45 | + -webkit-mask-size: 200% 100%; |
| 46 | + |
| 47 | + mask-repeat: no-repeat; |
| 48 | + -webkit-mask-repeat: no-repeat; |
| 49 | + |
| 50 | + animation: scan-mask 6s linear infinite; |
| 51 | +} |
| 52 | + |
| 53 | +/* Subtle QR flicker for a hacker-y vibe */ |
| 54 | +@keyframes qr-flicker { |
| 55 | + 0%, 7% { opacity: 0; } |
| 56 | + 8% { opacity: 0.08; } |
| 57 | + 10% { opacity: 0.02; } |
| 58 | + 14% { opacity: 0.1; } |
| 59 | + 16% { opacity: 0; } |
| 60 | + 35% { opacity: 0.05; } |
| 61 | + 36% { opacity: 0; } |
| 62 | + 62% { opacity: 0.07; } |
| 63 | + 64% { opacity: 0; } |
| 64 | + 78% { opacity: 0.12; } |
| 65 | + 80% { opacity: 0; } |
| 66 | + 100% { opacity: 0; } |
| 67 | +} |
| 68 | + |
| 69 | +.qr-flicker { |
| 70 | + position: relative; |
| 71 | + overflow: hidden; |
| 72 | +} |
| 73 | + |
| 74 | +.qr-flicker::after { |
| 75 | + content: ""; |
| 76 | + position: absolute; |
| 77 | + inset: 0; |
| 78 | + border-radius: inherit; |
| 79 | + background: rgba(255, 255, 255, 0.12); |
| 80 | + opacity: 0; |
| 81 | + animation: qr-flicker 5s steps(1, end) infinite; |
| 82 | + pointer-events: none; |
| 83 | +} |
| 84 | + |
| 85 | +/* Per-module QR flicker */ |
| 86 | +@keyframes qr-cell-flicker { |
| 87 | + 0%, 100% { |
| 88 | + box-shadow: none; |
| 89 | + } |
| 90 | + 50% { |
| 91 | + box-shadow: 0 0 5px rgba(220, 230, 240, 0.28), inset 0 0 5px rgba(220, 230, 240, 0.2); |
| 92 | + } |
| 93 | +} |
| 94 | + |
| 95 | +.qr-cell-flicker { |
| 96 | + animation: |
| 97 | + qr-cell-flicker var(--qr-flicker-duration, 3s) ease-in-out infinite var(--qr-flicker-delay, 0s); |
| 98 | + will-change: box-shadow; |
| 99 | +} |
0 commit comments