/* Ready-made text effects for the title over a character's head ("1 in N").
   Used by the game and by the admin tools' preview. A title element gets the class "tfx-<name>".
   To add one: write a .tfx-<name> rule here and add the name to TITLE_PRESETS in admin/admin.js. */
.tfx { --edge: #2a1630; }
[class*="tfx-"] { text-shadow: -1px 0 var(--edge, #2a1630), 1px 0 var(--edge, #2a1630), 0 -1px var(--edge, #2a1630), 0 1px var(--edge, #2a1630), 0 2px 2px rgba(0,0,0,.5); }

/* plain colours with a matching glow */
.tfx-emerald { color: #7dffb0; --edge: #0a3d22; filter: drop-shadow(0 0 3px rgba(60,255,150,.55)); }
.tfx-sky { color: #8fd8ff; --edge: #0b2f55; filter: drop-shadow(0 0 3px rgba(90,190,255,.6)); }
.tfx-royal { color: #d7a6ff; --edge: #36105c; filter: drop-shadow(0 0 4px rgba(190,110,255,.65)); }
.tfx-blood { color: #ff6b6b; --edge: #4a0606; filter: drop-shadow(0 0 4px rgba(255,40,40,.6)); }
.tfx-sunset { color: #ffb06a; --edge: #5a1f00; filter: drop-shadow(0 0 3px rgba(255,140,60,.6)); }
.tfx-silver { color: #eef3ff; --edge: #3a4660; filter: drop-shadow(0 0 3px rgba(220,230,255,.7)); }
.tfx-candy { color: #ff9ad5; --edge: #6a1247; filter: drop-shadow(0 0 3px rgba(255,120,200,.6)); }
.tfx-toxic { color: #c8ff3a; --edge: #233d00; filter: drop-shadow(0 0 4px rgba(170,255,40,.7)); }
.tfx-void { color: #b9b0ff; --edge: #0d0626; filter: drop-shadow(0 0 5px rgba(90,60,255,.8)); }

/* moving gradients: the text itself is the picture */
.tfx-gold-shine, .tfx-rainbow, .tfx-fire, .tfx-ice, .tfx-aurora, .tfx-lava, .tfx-galaxy { color: transparent; -webkit-background-clip: text; background-clip: text; text-shadow: none; background-size: 220% 100%; animation: tfx-slide 2.4s linear infinite; }
.tfx-gold-shine { background-image: linear-gradient(100deg, #b8860b 0%, #ffd84a 25%, #fffbe0 42%, #ffd84a 58%, #b8860b 100%); filter: drop-shadow(0 1px 0 #4a2c00) drop-shadow(0 0 4px rgba(255,216,74,.85)); }
.tfx-rainbow { background-image: linear-gradient(90deg, #ff4d4d, #ffb84d, #fff04d, #4dff88, #4dc3ff, #b84dff, #ff4d4d); background-size: 300% 100%; animation-duration: 3s; filter: drop-shadow(0 1px 0 #1b0b2e) drop-shadow(0 0 4px rgba(255,255,255,.6)); }
.tfx-fire { background-image: linear-gradient(0deg, #ff2a00 0%, #ff8a00 45%, #ffe26a 80%, #fff 100%); background-size: 100% 220%; animation: tfx-rise 1.1s ease-in-out infinite alternate; filter: drop-shadow(0 1px 0 #4a0a00) drop-shadow(0 0 5px rgba(255,90,0,.9)); }
.tfx-ice { background-image: linear-gradient(100deg, #7fd6ff 0%, #e8fbff 35%, #ffffff 50%, #a8e6ff 70%, #5fb8ff 100%); filter: drop-shadow(0 1px 0 #0b2f55) drop-shadow(0 0 4px rgba(150,220,255,.8)); }
.tfx-aurora { background-image: linear-gradient(90deg, #4dffb8, #4dc3ff, #b98cff, #4dffb8); background-size: 300% 100%; animation-duration: 4s; filter: drop-shadow(0 1px 0 #062a2a) drop-shadow(0 0 5px rgba(100,255,220,.7)); }
.tfx-lava { background-image: linear-gradient(100deg, #5a0000 0%, #ff3b00 30%, #ffd000 50%, #ff3b00 70%, #5a0000 100%); filter: drop-shadow(0 1px 0 #1f0000) drop-shadow(0 0 5px rgba(255,60,0,.8)); }
.tfx-galaxy { background-image: linear-gradient(100deg, #2b1a6b 0%, #7b5cff 30%, #ffd1ff 50%, #5ce1ff 70%, #2b1a6b 100%); animation-duration: 3.4s; filter: drop-shadow(0 1px 0 #0a0524) drop-shadow(0 0 6px rgba(140,110,255,.85)); }

/* neon tubes */
.tfx-neon-blue { color: #e6fbff; --edge: #0077ff; filter: drop-shadow(0 0 3px #00a2ff) drop-shadow(0 0 8px #0066ff); animation: tfx-flicker 2.6s linear infinite; }
.tfx-neon-pink { color: #fff0fa; --edge: #ff2aa6; filter: drop-shadow(0 0 3px #ff4dc0) drop-shadow(0 0 8px #ff0090); animation: tfx-flicker 3.1s linear infinite; }

/* movement */
.tfx-pulse { color: #ffe36b; --edge: #5a3a00; animation: tfx-pulse 1.1s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(255,220,90,.8)); }
.tfx-float { color: #c9f0ff; --edge: #123a55; animation: tfx-float 1.8s ease-in-out infinite; filter: drop-shadow(0 0 3px rgba(160,220,255,.7)); }
.tfx-shake { color: #ff5a5a; --edge: #3d0000; animation: tfx-shake .28s linear infinite; filter: drop-shadow(0 0 4px rgba(255,0,0,.7)); }
.tfx-glitch { color: #fff; text-shadow: -2px 0 #ff2a6d, 2px 0 #05d9e8, 0 1px 0 #1b0b2e; animation: tfx-glitch 1.6s steps(2, end) infinite; }
.tfx-ghost { color: rgba(235,245,255,.85); --edge: rgba(40,50,90,.6); animation: tfx-ghost 2.4s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(200,220,255,.9)); }

@keyframes tfx-slide { from { background-position: 220% 0; } to { background-position: 0 0; } }
@keyframes tfx-rise { from { background-position: 0 100%; } to { background-position: 0 20%; } }
@keyframes tfx-flicker { 0%, 100% { opacity: 1; } 46% { opacity: 1; } 48% { opacity: .55; } 50% { opacity: 1; } 72% { opacity: .8; } 74% { opacity: 1; } }
@keyframes tfx-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@keyframes tfx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes tfx-shake { 0% { transform: translate(0, 0); } 25% { transform: translate(-1px, 1px); } 50% { transform: translate(1px, -1px); } 75% { transform: translate(-1px, -1px); } 100% { transform: translate(1px, 1px); } }
@keyframes tfx-glitch { 0%, 100% { transform: translate(0, 0); text-shadow: -2px 0 #ff2a6d, 2px 0 #05d9e8, 0 1px 0 #1b0b2e; } 50% { transform: translate(1px, 0); text-shadow: 2px 0 #ff2a6d, -2px 0 #05d9e8, 0 1px 0 #1b0b2e; } }
@keyframes tfx-ghost { 0%, 100% { opacity: .9; } 50% { opacity: .45; } }

/* a title that is a picture (title style with "image"): it stands where the "1 in N" words would, and the moving presets (float, pulse, shake) move it too */
.title-picture { display: block; width: auto; max-width: 260px; pointer-events: none; user-select: none; -webkit-user-drag: none; }
