
/* v35 living backdrops */
.stage-fx.fx-mist { inset: 0; left: 0; width: auto; height: auto; bottom: 0; opacity: 1; background: none; animation: none; }   /* the mist class belongs to the layers, not the whole box */
.stage-fx .fx-gust, .stage-fx .fx-leaf, .stage-fx .fx-bird, .stage-fx .fx-wisp, .stage-fx .fx-flash, .stage-fx .fx-shimmer, .stage-fx .fx-haze { display: none; }
.fx-gust { left: 0; width: 34%; height: 9%; background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' fill='none' stroke='white' stroke-linecap='round'%3E%3Cpath d='M5 30 C60 22 110 22 160 30 S250 42 290 26 C300 20 290 10 280 16' stroke-width='2.2'/%3E%3Cpath d='M40 44 C90 38 140 40 200 46' stroke-width='1.4'/%3E%3Cpath d='M70 16 C110 12 150 12 190 18' stroke-width='1.2'/%3E%3C/svg%3E") center/100% 100% no-repeat; opacity: 0; animation: fxGust 11s ease-in-out infinite; }
.fx-gust.g1 { top: 24%; } .fx-gust.g2 { top: 46%; animation-duration: 14s; animation-delay: -5s; width: 28%; } .fx-gust.g3 { top: 64%; animation-duration: 9s; animation-delay: -8s; width: 22%; }
@keyframes fxGust { 0% { transform: translateX(-110%); opacity: 0; } 18% { opacity: .5; } 70% { opacity: .35; } 100% { transform: translateX(330%); opacity: 0; } }
.fx-leaf { left: 0; top: 0; background: var(--leaf, #5d4a2a); -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M1 6 C5 0 14 0 19 6 C14 12 5 12 1 6 Z M1 6 L19 6' fill='black' stroke='black' stroke-width='.6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M1 6 C5 0 14 0 19 6 C14 12 5 12 1 6 Z M1 6 L19 6' fill='black' stroke='black' stroke-width='.6'/%3E%3C/svg%3E") center/contain no-repeat; opacity: 0;
  animation: fxLeaf 13s linear infinite; }
.fx-leaf.l1 { top: 18%; animation-delay: -1s; } .fx-leaf.l2 { top: 32%; animation-delay: -4s; animation-duration: 16s; background: var(--leaf2, var(--leaf)); }
.fx-leaf.l3 { top: 8%;  animation-delay: -7s; animation-duration: 11s; } .fx-leaf.l4 { top: 44%; animation-delay: -9.5s; animation-duration: 15s; background: var(--leaf2, var(--leaf)); }
.fx-leaf.l5 { top: 26%; animation-delay: -12s; animation-duration: 12s; width: 10px; height: 6px; } .fx-leaf.l6 { top: 52%; animation-delay: -2.5s; animation-duration: 17s; background: var(--leaf2, var(--leaf)); }
.fx-leaf.l7 { top: 12%; animation-delay: -6s; animation-duration: 14s; width: 9px; height: 6px; } .fx-leaf.l8 { top: 38%; animation-delay: -10.5s; animation-duration: 13s; }
.fx-leaf.l9 { top: 4%; animation-delay: -14s; animation-duration: 18s; background: var(--leaf2, var(--leaf)); }
@keyframes fxLeaf { 0% { transform: translate(-calc(4 * var(--hvw)), 0) rotate(0); opacity: 0; } 6% { opacity: .9; } 25% { transform: translate(calc(24 * var(--hvw)), calc(7 * var(--hvh))) rotate(160deg); }
  50% { transform: translate(calc(48 * var(--hvw)), calc(4 * var(--hvh))) rotate(330deg); } 75% { transform: translate(calc(72 * var(--hvw)), calc(13 * var(--hvh))) rotate(520deg); } 94% { opacity: .85; } 100% { transform: translate(calc(100 * var(--hvw)), calc(18 * var(--hvh))) rotate(700deg); opacity: 0; } }
.fx-bird { left: 0; width: 22px; height: 9px; background: #1e1712; -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 12'%3E%3Cpath d='M1 4 Q8 -1 15 7 Q22 -1 29 4 Q22 2 15 10 Q8 2 1 4 Z' fill='black'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 12'%3E%3Cpath d='M1 4 Q8 -1 15 7 Q22 -1 29 4 Q22 2 15 10 Q8 2 1 4 Z' fill='black'/%3E%3C/svg%3E") center/contain no-repeat; opacity: 0;
  animation: fxBird 34s linear infinite, fxFlap .55s ease-in-out infinite alternate; }
.fx-bird.b1 { top: 14%; } .fx-bird.b2 { top: 19%; animation-delay: -1.4s, -.2s; width: 17px; height: 7px; } .fx-bird.b3 { top: 9%; animation-delay: -16s, -.35s; width: 19px; height: 8px; animation-duration: 41s, .6s; }
@keyframes fxBird { 0% { transform: translate(-calc(6 * var(--hvw)), 0); opacity: 0; } 4% { opacity: .85; } 50% { transform: translate(calc(50 * var(--hvw)), -calc(3 * var(--hvh))); } 96% { opacity: .85; } 100% { transform: translate(calc(106 * var(--hvw)), calc(2 * var(--hvh))); opacity: 0; } }
@keyframes fxFlap { from { scale: 1 1; } to { scale: 1 .35; } }
.fx-wisp { width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle, var(--wisp, #e6f0c0) 0 30%, transparent 70%); box-shadow: 0 0 10px 3px var(--wisp-glow, rgba(200,230,140,.35));
  opacity: 0; animation: fxWisp 7s ease-in-out infinite; }
.fx-wisp.w1 { left: 12%; top: 62%; } .fx-wisp.w2 { left: 31%; top: 70%; animation-delay: -2s; animation-duration: 9s; } .fx-wisp.w3 { left: 49%; top: 58%; animation-delay: -4.5s; }
.fx-wisp.w4 { left: 66%; top: 72%; animation-delay: -1s; animation-duration: 8s; } .fx-wisp.w5 { left: 82%; top: 60%; animation-delay: -5.5s; } .fx-wisp.w6 { left: 92%; top: 74%; animation-delay: -3s; animation-duration: 10s; }
@keyframes fxWisp { 0%, 100% { opacity: 0; transform: translate(0, 0); } 30% { opacity: .9; } 50% { transform: translate(14px, -18px); } 70% { opacity: .7; } 85% { transform: translate(-6px, -30px); } }
.fx-flash { inset: 0; background: radial-gradient(ellipse at 70% 20%, rgba(255,255,255,.85), rgba(220,230,255,.35) 45%, transparent 75%); opacity: 0; animation: fxFlash 9s linear infinite; }
@keyframes fxFlash { 0%, 61%, 63.5%, 65%, 100% { opacity: 0; } 62% { opacity: .8; } 64% { opacity: .5; } }
.fx-shimmer { left: 0; right: 0; top: var(--water-top, 66%); height: var(--water-h, 10%); opacity: .45;
  background-image: repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,.55) 18px 30px, transparent 30px 52px),
                    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255,255,255,.35) 34px 44px, transparent 44px 80px);
  background-size: 100% 2px, 100% 2px; background-position: 0 30%, 0 75%; background-repeat: repeat-x;
  animation: fxShimmer 6s linear infinite; }
@keyframes fxShimmer { to { background-position: 52px 30%, -80px 75%; } }
.fx-haze { left: 0; right: 0; top: var(--haze-top, 55%); height: 18%; backdrop-filter: blur(1.1px); -webkit-backdrop-filter: blur(1.1px);
  -webkit-mask: linear-gradient(transparent, black 40%, black 60%, transparent); mask: linear-gradient(transparent, black 40%, black 60%, transparent); animation: fxHaze 3.4s ease-in-out infinite alternate; }
@keyframes fxHaze { from { transform: skewX(-1.2deg) translateY(0); } to { transform: skewX(1.2deg) translateY(-3px); } }
/* which motion each map gets */
.map-thornwood .fx-gust, .map-thornwood .fx-leaf { display: block; } .map-thornwood { --leaf: #b4c25c; --leaf2: #d0903e; }
.map-vale .fx-gust, .map-vale .fx-leaf, .map-vale .fx-bird.b1, .map-vale .fx-bird.b2 { display: block; } .map-vale { --leaf: #7a4a26; --leaf2: #a36a2e; }
.map-fen .fx-wisp, .map-fen .fx-leaf.l2, .map-fen .fx-leaf.l5, .map-fen .fx-leaf.l8 { display: block; } .map-fen { --leaf: #a7a457; --wisp: #e2f5a8; --wisp-glow: rgba(190,235,120,.45); }
.map-barrows .fx-wisp, .map-barrows .fx-bird.b3 { display: block; } .map-barrows { --wisp: #dfeef5; --wisp-glow: rgba(170,210,235,.45); }
.map-abbey .fx-shimmer, .map-abbey .fx-bird.b2, .map-abbey .fx-wisp.w2, .map-abbey .fx-wisp.w5 { display: block; } .map-abbey { --water-top: 61%; --water-h: 12%; --wisp: #eef6f4; --wisp-glow: rgba(220,240,240,.35); }
.map-frostmere .fx-gust, .map-frostmere .fx-shimmer { display: block; }

.map-gallows .fx-gust, .map-gallows .fx-bird, .map-gallows .fx-leaf.l1, .map-gallows .fx-leaf.l4, .map-gallows .fx-leaf.l7 { display: block; } .map-gallows { --leaf: #4a3a28; }
.map-ossuary .fx-leaf, .map-ossuary .fx-bird.b1, .map-ossuary .fx-bird.b3 { display: block; } .map-ossuary { --leaf: #d9cdb6; --leaf2: #b8a98e; }
.map-steppe .fx-gust, .map-steppe .fx-leaf { display: block; }

.map-storm .fx-gust, .map-storm .fx-flash { display: block; }
.map-warrens .fx-gust, .map-warrens .fx-haze { display: block; } .map-warrens { --haze-top: 52%; }
.map-glass .fx-gust, .map-glass .fx-haze, .map-glass .fx-wisp { display: block; } .map-glass { --haze-top: 50%; --wisp: #ffffff; --wisp-glow: rgba(190,240,250,.55); }
.map-glass .fx-wisp { animation-name: fxGlint; animation-duration: 4.5s; } .map-glass .fx-wisp.w1 { left: 22%; top: 70%; } .map-glass .fx-wisp.w3 { left: 40%; top: 66%; } .map-glass .fx-wisp.w5 { left: 74%; top: 68%; }
@keyframes fxGlint { 0%, 100% { opacity: 0; transform: scale(.4); } 45% { opacity: 0; } 55% { opacity: 1; transform: scale(1.4); } 70% { opacity: 0; transform: scale(.6); } }
.map-peak .fx-haze, .map-peak .fx-gust.g1 { display: block; } .map-peak { --haze-top: 48%; }
.map-citadel .fx-bird, .map-citadel .fx-gust.g1 { display: block; }
.map-lair .fx-wisp { display: block; animation-name: fxGlint; } .map-lair { --wisp: #fff1b0; --wisp-glow: rgba(255,210,90,.6); }
.map-lair .fx-wisp.w1 { left: 38%; top: 74%; } .map-lair .fx-wisp.w2 { left: 46%; top: 70%; } .map-lair .fx-wisp.w3 { left: 55%; top: 72%; } .map-lair .fx-wisp.w4 { left: 61%; top: 77%; } .map-lair .fx-wisp.w5 { left: 50%; top: 79%; } .map-lair .fx-wisp.w6 { left: 43%; top: 80%; }
@media (prefers-reduced-motion: reduce) { .stage-fx i { animation: none !important; display: none !important; } }
/* v35 armor icons fill their slot: the medallion is the frame, no extra ring */
.gear-slot:has(> img.gi), .gear-row .gear-ico:has(> img.gi) { background: none; border: 0; border-radius: 50%; overflow: visible; }
.gear-slot > img.gi, .gear-row .gear-ico > img.gi { width: 118%; height: 118%; max-width: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)); }
.gear-row .gear-ico > img.gi { width: 112%; height: 112%; }
.arena.stage.gang .pack .mini-top { pointer-events: auto; }
.relic-tile .art:has(> img.gi), .start-row .start-opt .art:has(> img.gi), .big-icon:has(> img.gi) { background: none !important; border: 0 !important; box-shadow: none !important; overflow: visible; }
.big-icon > img.gi { width: 1.3em; height: 1.3em; }
.relic-tile .art > img.gi, .start-row .start-opt .art > img.gi { width: 112%; height: 112%; max-width: none; vertical-align: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.lk-art > img.gi { width: 1.5em; height: 1.5em; }   /* the name plate also picks the target */

/* v38 backdrops: everything inked dark at low opacity so it reads on pale paper skies */
.stage-fx .fx-tw, .stage-fx .fx-wind, .stage-fx .fx-devil, .stage-fx .fx-sleet, .stage-fx .fx-ember { display: none; }
.fx-wind { left: 0; width: 30%; height: 6%; background: var(--wind, #2a2016); -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 40' fill='none' stroke='black' stroke-linecap='round'%3E%3Cpath d='M4 22 C70 14 120 14 170 22 S250 34 282 18 C294 10 282 2 272 8' stroke-width='2.4'/%3E%3Cpath d='M40 32 C100 27 150 28 210 34' stroke-width='1.5'/%3E%3C/svg%3E") center/100% 100% no-repeat; mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 40' fill='none' stroke='black' stroke-linecap='round'%3E%3Cpath d='M4 22 C70 14 120 14 170 22 S250 34 282 18 C294 10 282 2 272 8' stroke-width='2.4'/%3E%3Cpath d='M40 32 C100 27 150 28 210 34' stroke-width='1.5'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  opacity: 0; animation: fxWind 7s ease-in-out infinite; }
.fx-wind.w1 { top: 18%; } .fx-wind.w2 { top: 34%; animation-duration: 9s; animation-delay: -3s; width: 24%; } .fx-wind.w3 { top: 52%; animation-duration: 6.5s; animation-delay: -5s; width: 20%; }
.fx-wind.w4 { top: 66%; animation-duration: 8s; animation-delay: -1.5s; width: 26%; } .fx-wind.w5 { top: 10%; animation-duration: 11s; animation-delay: -7s; width: 18%; }
@keyframes fxWind { 0% { transform: translateX(-110%); opacity: 0; } 15% { opacity: var(--wind-o, .48); } 75% { opacity: calc(var(--wind-o, .48) * .7); } 100% { transform: translateX(380%); opacity: 0; } }
.fx-tw { left: -12%; bottom: var(--tw-floor, 9%); width: var(--tw-size, 46px); height: var(--tw-size, 46px); animation: fxTwX 15s linear infinite; }
.fx-tw.t2 { --tw-size: 32px; animation-duration: 21s; animation-delay: -11s; bottom: calc(var(--tw-floor, 9%) + 3%); }
.fx-tw b { position: absolute; inset: 0; background: var(--tw, #5b4128); -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='black' stroke-linecap='round' stroke-width='2.2'%3E%3Ccircle cx='30' cy='30' r='24'/%3E%3Cpath d='M8 26 Q30 6 52 30 Q30 54 10 36 Q24 20 46 22 Q40 46 18 44 Q14 26 34 14 Q52 36 30 50'/%3E%3Cpath d='M16 16 L44 46 M44 14 L14 44 M30 6 L30 54 M6 30 L54 30' stroke-width='1.2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='black' stroke-linecap='round' stroke-width='2.2'%3E%3Ccircle cx='30' cy='30' r='24'/%3E%3Cpath d='M8 26 Q30 6 52 30 Q30 54 10 36 Q24 20 46 22 Q40 46 18 44 Q14 26 34 14 Q52 36 30 50'/%3E%3Cpath d='M16 16 L44 46 M44 14 L14 44 M30 6 L30 54 M6 30 L54 30' stroke-width='1.2'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: fxTwBounce 1.1s cubic-bezier(.3,0,.7,1) infinite; }
.fx-tw.t2 b { animation-duration: .9s; }
@keyframes fxTwX { 0% { left: -12%; } 100% { left: 112%; } }
@keyframes fxTwBounce { 0% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-38%) rotate(180deg); } 100% { transform: translateY(0) rotate(360deg); } }
.fx-devil { bottom: 8%; left: 0; width: 34px; height: 30%; background: var(--devil, #7a5634); -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 120' fill='none' stroke='black' stroke-linecap='round'%3E%3Cpath d='M30 116 Q24 108 32 102 Q42 94 26 86 Q10 76 34 66 Q56 56 22 44 Q-2 34 32 22 Q64 12 18 4' stroke-width='2'/%3E%3Cpath d='M30 108 Q38 98 26 90 Q16 80 36 72 Q50 62 26 52 Q10 42 36 30' stroke-width='1.2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 120' fill='none' stroke='black' stroke-linecap='round'%3E%3Cpath d='M30 116 Q24 108 32 102 Q42 94 26 86 Q10 76 34 66 Q56 56 22 44 Q-2 34 32 22 Q64 12 18 4' stroke-width='2'/%3E%3Cpath d='M30 108 Q38 98 26 90 Q16 80 36 72 Q50 62 26 52 Q10 42 36 30' stroke-width='1.2'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0; animation: fxDevil 18s ease-in-out infinite, fxDevilSway .5s ease-in-out infinite alternate; }
@keyframes fxDevil { 0% { left: 70%; opacity: 0; } 12% { opacity: .5; } 60% { opacity: .45; } 80% { left: 20%; opacity: 0; } 100% { left: 20%; opacity: 0; } }
@keyframes fxDevilSway { from { transform: skewX(-6deg); } to { transform: skewX(6deg); } }
.fx-sleet { inset: -20% -10%; background-image: linear-gradient(115deg, transparent 47%, rgba(255,255,255,.75) 48.5%, transparent 50%), linear-gradient(115deg, transparent 47%, rgba(210,230,245,.6) 48.5%, transparent 50%);
  background-size: 60px 40px, 38px 26px; animation: fxSleet .55s linear infinite; opacity: .55; }
@keyframes fxSleet { to { background-position: 60px 40px, 38px 26px; } }
.fx-ember { inset: -10% 0; background-image: radial-gradient(circle, rgba(255,150,60,.95) 0 1.8px, transparent 2.8px), radial-gradient(circle, rgba(255,210,120,.85) 0 1.2px, transparent 2.2px);
  background-size: 120px 140px, 80px 100px; animation: fxRise 9s linear infinite, fxFlick 1.2s ease-in-out infinite alternate; opacity: .7; }
/* map choices */
.map-warrens .fx-tw, .map-warrens .fx-wind, .map-warrens .fx-devil { display: block; } .map-warrens { --wind: #5a3a20; --tw: #5a3a20; --tw-floor: 8%; }
.map-steppe .fx-tw, .map-steppe .fx-wind { display: block; } .map-steppe { --wind: #2e3a44; --tw: #6a5a3a; --tw-floor: 9%; --leaf: #b89a5a; --leaf2: #8a7a52; }
.map-glass .fx-tw.t1, .map-glass .fx-devil, .map-glass .fx-wind { display: block; } .map-glass { --wind: #8a6630; --tw: #7a5a2a; --devil: #b08850; }
.map-vale .fx-wind, .map-thornwood .fx-wind, .map-gallows .fx-wind, .map-ossuary .fx-wind.w1, .map-ossuary .fx-wind.w3 { display: block; }
.map-thornwood { --wind: #22301a; } .map-vale { --wind: #3a2a1c; } .map-gallows { --wind: #2a2420; } .map-ossuary { --wind: #3a3030; }
.map-frostmere .fx-wind, .map-frostmere .fx-sleet { display: block; } .map-frostmere { --wind: #3e6478; --wind-o: .5; --water-top: 66%; --water-h: 9%; }
.map-storm .fx-wind, .map-storm .fx-sleet { display: block; } .map-storm { --wind: #1e2a34; }
.map-storm .fx-sleet { background-image: linear-gradient(105deg, transparent 47%, rgba(230,236,245,.8) 48.5%, transparent 50%), linear-gradient(105deg, transparent 47%, rgba(200,210,225,.6) 48.5%, transparent 50%); animation-duration: .4s; }
.map-peak .fx-ember, .map-citadel .fx-ember, .map-lair .fx-ember { display: block; } .map-citadel .fx-ember { opacity: .45; }
.map-fen .fx-wind.w2, .map-fen .fx-wind.w4, .map-barrows .fx-wind.w2, .map-abbey .fx-wind.w4 { display: block; } .map-fen { --wind: #3a4220; } .map-barrows { --wind: #2c3236; } .map-abbey { --wind: #3a4c50; }
/* leaves a touch bigger and inked so they read at a glance */
.fx-leaf { width: 18px !important; height: 11px !important; filter: drop-shadow(0 0 0 #1c140c) drop-shadow(0 1px 0 rgba(28,20,12,.6)); }
.map-steppe .fx-leaf { width: 9px !important; height: 5px !important; }
@media (max-width: 860px) { .fx-tw { --tw-size: 30px; } .fx-tw.t2 { --tw-size: 22px; } }

